[FFmpeg-user] ffmpeg live stream transcoding

radiocm vadim.lungu at radiocom.md
Wed Aug 22 07:36:42 CEST 2012



here is the command :
ffmpeg -re -y \
-loglevel warning  \
-loglevel verbose \
-i rtp://239.0.12.1:5000 \
-bufsize 3000k \
-an \
-filter:v yadif \
-vbsf h264_mp4toannexb \
-maxrate 3000k \
-r 32 \
*-b 512k \*
-s:v 240x320 \
-vcodec libx264 \
-vsync 2 \
-pass 1 \
-f h264 -f rtp rtp://10.0.254.47:5000


In my case the error was  that bitrate was specified as 512000 but should be
512k. 

Now transcoding process has started, but I'm having the following output :

[h264 @ 0x30855c0] reference picture missing during reorder
[h264 @ 0x30855c0] Missing reference picture
[h264 @ 0x30ec640] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x301e540] mmco: unref short failure
RTP: missed 11404 packets0 size=      72kB time=00:00:03.46 bitrate=
169.6kbits/s
RTP: PT=21: bad cseq 4aae expected=1e22
RTP: missed 11405 packets
RTP: missed 59 packets
[rtp @ 0x230a260] PES packet size mismatch
RTP: missed 22 packets
[h264 @ 0x31536c0] Increasing reorder buffer to 16
[h264 @ 0x31536c0] error while decoding MB 43 9, bytestream (-5)
RTP: missed 7 packets=19.0 size=     103kB time=00:00:04.00 bitrate=
210.0kbits/s
RTP: missed 11522 packets
RTP: PT=21: bad cseq 78ac expected=4baa
RTP: missed 11523 packets
[h264 @ 0x30855c0] reference picture missing during reorder
[h264 @ 0x30855c0] Missing reference picture
[h264 @ 0x30855c0] left block unavailable for requested intra4x4 mode -1 at
0 14
[h264 @ 0x30855c0] error while decoding MB 0 14, bytestream (5444)
[h264 @ 0x30ec640] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x30ec640] number of reference frames (0+4) exceeds max (3; probably
corrupt input), discarding one
[h264 @ 0x31536c0] reference picture missing during reorder
[h264 @ 0x31536c0] Missing reference picture
[h264 @ 0x2fd9880] reference picture missing during reorder
[h264 @ 0x2fd9880] Missing reference picture
RTP: missed 11448 packets0 size=     108kB time=00:00:04.09 bitrate=
215.7kbits/s
RTP: PT=21: bad cseq e7b0 expected=baf8
RTP: missed 11449 packets
[h264 @ 0x301e540] Reference 4 >= 2
[h264 @ 0x301e540] error while decoding MB 38 25, bytestream (1883)
RTP: missed 16 packets
RTP: missed 21 packets
RTP: missed -54034 packets size=     114kB time=00:00:04.18 bitrate=
223.4kbits/s
RTP: PT=21: bad cseq 1565 expected=e877
RTP: missed -54033 packets
[h264 @ 0x2fd9880] Cannot combine reference and non-reference fields in the
same frame
[h264 @ 0x2fd9880] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel
mailing list.
[h264 @ 0x2fd9880] decode_slice_header error
[h264 @ 0x301e540] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x301e540] Missing reference picture
    Last message repeated 1 times
[h264 @ 0x301e540] error while decoding MB 23 27, bytestream (-8)
[h264 @ 0x30855c0] mmco: unref short failure
    Last message repeated 2 times
RTP: missed 31 packets
[h264 @ 0x2fd9880] Cannot combine reference and non-reference fields in the
same frame
[h264 @ 0x2fd9880] If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel
mailing list.
[h264 @ 0x2fd9880] decode_slice_header error
[h264 @ 0x301e540] reference picture missing during reorder
[h264 @ 0x301e540] Missing reference picture
[h264 @ 0x30ec640] mmco: unref short failure
[h264 @ 0x30ec640] reference picture missing during reorder
[h264 @ 0x30ec640] Missing reference picture
[h264 @ 0x31536c0] mmco: unref short failure
[h264 @ 0x30855c0] mmco: unref short failure
RTP: missed 11849 packets0 size=     119kB time=00:00:04.28 bitrate=
227.4kbits/s
RTP: PT=21: bad cseq 7b81 expected=4d38
RTP: missed 11850 packets
[h264 @ 0x30ec640] reference picture missing during reorder
[h264 @ 0x30ec640] Missing reference picture
[h264 @ 0x31536c0] reference picture missing during reorder
[h264 @ 0x31536c0] Missing reference picture
RTP: missed 11561 packets0 size=     120kB time=00:00:04.31 bitrate=
227.7kbits/s
RTP: PT=21: bad cseq c77f expected=9a56
RTP: missed 11562 packets
[h264 @ 0x30ec640] Reference 2 >= 2
[h264 @ 0x30ec640] error while decoding MB 29 32, bytestream (9698)
[h264 @ 0x31536c0] mmco: unref short failure
[h264 @ 0x31536c0] reference picture missing during reorder
[h264 @ 0x31536c0] Missing reference picture
[h264 @ 0x301e540] mmco: unref short failure
[h264 @ 0x301e540] reference picture missing during reorder
[h264 @ 0x301e540] Missing reference picture
[h264 @ 0x30855c0] mmco: unref short failure
[h264 @ 0x2fd9880] mmco: unref short failure
RTP: missed -53959 packets size=     121kB time=00:00:04.37 bitrate=
226.8kbits/s
RTP: PT=21: bad cseq 137b expected=e642
RTP: missed -53958 packets
[h264 @ 0x30ec640] reference picture missing during reorder
[h264 @ 0x30ec640] Missing reference picture
[h264 @ 0x31536c0] reference picture missing during reorder
[h264 @ 0x31536c0] Missing reference picture
*** drop!13 fps=1.6 q=20.0 size=     121kB time=00:00:04.37 bitrate=
226.8kbits/s
    Last message repeated 3 times
frame=  127 fps=1.6 q=-1.0 Lsize=     665kB time=00:01:18.15 bitrate= 
69.7kbits/s dup=0 drop=4
video:658kB audio:0kB subtitle:0 global headers:0kB muxing overhead
1.019477%
[libx264 @ 0x2352fc0] frame I:1     Avg QP:27.50  size:  8441
[libx264 @ 0x2352fc0] frame P:58    Avg QP:15.91  size: 10014
[libx264 @ 0x2352fc0] frame B:68    Avg QP:23.21  size:  1243
[libx264 @ 0x2352fc0] consecutive B-frames: 12.6% 28.3% 59.1%  0.0%
[libx264 @ 0x2352fc0] mb I  I16..4: 40.0%  0.0% 60.0%
[libx264 @ 0x2352fc0] mb P  I16..4: 12.6%  0.0%  0.0%  P16..4: 73.1%  0.0% 
0.0%  0.0%  0.0%    skip:14.2%
[libx264 @ 0x2352fc0] mb B  I16..4:  1.5%  0.0%  0.0%  B16..8: 17.0%  0.0% 
0.0%  direct:19.6%  skip:61.8%  L0:13.4% L1:45.9% BI:40.7%
[libx264 @ 0x2352fc0] final ratefactor: -2.98
[libx264 @ 0x2352fc0] coded y,uvDC,uvAC intra: 78.6% 94.2% 85.1% inter:
34.0% 41.0% 18.0%
[libx264 @ 0x2352fc0] i16 v,h,dc,p: 44% 25% 20% 11%
[libx264 @ 0x2352fc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 29% 13%  2% 10%  4% 
7%  4%  6%
[libx264 @ 0x2352fc0] i8c dc,h,v,p: 33% 21% 37% 10%
[libx264 @ 0x2352fc0] Weighted P-Frames: Y:0.0% UV:0.0%


Can anyone help me to fix this ?



-----
Best regards, Vadim.
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-live-stream-transcoding-tp4652003p4652816.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list