Hello everyone,

I have a project which is based on some real time transcoding. The stream is coming through the rtp protocol,
source stream look like rtp://239.0.12.1:5000. The source is real time incoming setream.

Stream parameters:
-----------------video---------------
type: Video
Original ID:403
Codec: H264 -MPEG-4 AVC (part 10) (h264)
Resolution: 720x576
Frame rate:50

------------------audio----------------
Tyoe:Audio
Original ID : 404
Codec: MPEG Audio layer 1/2/3 (mpga)
Language: English
Channels: Stereo
Bitrate:128 kb/s

the following stream i want to transmit to some streaming server, in such a way that i will have a real time transcoding.

The server that I'm using is having the following parameters:
http://pastebin.com/DLVL85hX

Server OS:

Linux stream 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.1 (squeeze)
Release: 6.0.1
Codename: squeeze

At the moment I'm using the following version of ffmpeg:
http://pastebin.com/b5gS0c5g

ffmpeg command line look as follows:
http://pastebin.com/ubZHGXCg

There is what I get during transcoding process:
http://pastebin.com/Ee9hxPxz

Thank you in advance.
Best regards, Vadim


Help me please to understand why the following errors has appeared and how to fix such kind of errors?
1. non-existing SPS 1 referenced in buffering period
[h264 @ 0x25f2ea0] non-existing PPS referenced
[h264 @ 0x25f2ea0] non-existing SPS 1 referenced in buffering period
[h264 @ 0x25f2ea0] non-existing PPS 0 referenced
[h264 @ 0x25f2ea0] decode_slice_header error
[h264 @ 0x25f2ea0] no frame!

How i understand this errors appears until the stream is buffered.

2. Missing reference picture , decode_slice_header error - at the moment have no idea why this kind of error are appearing, may be something wrong in ffmpeg configuration ?

here is the ffmpeg configuration command that i was using :

./configure --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-libfaac --enable-libgsm --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-gpl --enable-nonfree --enable-librtmp

3. mmco: unref short failure

4. Reference 2 >= 2
[h264 @ 0x35aa4a0] error while decoding MB 1 18, bytestream (2367)

I understand that the 3-rd and 4-th are related in to the libx264 , but what to do to avoid this ?

5. RTP: missed -1 packets - and why I'm losing packet, maybe they are getting lost because buffer size are to small , or the decoding process are to fast or to slow ?

Thank you all for your attention ,
best regards Vadim