[FFmpeg-user] ffmpeg frame loss on Linux

Tadas Ramanauskis celsyum at gmail.com
Mon Mar 18 09:42:42 CET 2013


Hi, im stuck with ffmepg for two weeks and I need some help. Im using 
AIR 2.0 to send rawdata to ffmpeg and everything is working nice on 
Windows , but on Linux video fails to render. In 6 seconds of streaming 
ffmpeg just renders 8-10 frames on Linux, thougth I set 30 fps and on 
Windows rendered file is perfect. Here is Command:

ffmpeg -an -threads 0 -f rawvideo -pix_fmt argb -s 640x320 -framerate 30 
-i - -q 10 -r 30 -y -f flv demo2013.flv

http://pastebin.com/UQirYCxF .

Windows output http://pastebin.com/s0zJmcAX :

Data: ffmpeg version N-50442-g4f0d4ac Copyright (c) 2000-2013 the FFmpeg 
developers
   built on Mar  2 2013 15:30:48 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-libass --enable-libbluray --enable-libcaca 
--enable-libfreetype --enable-libgsm --enable-libilbc 
--enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --enable-libschroedinger --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame 
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis 
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid 
--enable-zlib
   libavutil      52. 17.103 / 52. 17.103
   libavcodec     54. 92.100 / 54. 92.100
   libavformat    54. 63.102 / 54. 63.102
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 41.100 /  3. 41.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
[rawvideo @ 00000000002fb600] Estimating duration from bitrate, this may 
be inaccurate
Input #0, rawvideo, from 'pipe:':
   Duration: N/A, start: 0.000000, bitrate: 196608 kb/s
     Stream #0:0: Video: rawvideo (ARGB / 0x42475241), argb, 640x320, 
196608 kb/s, 30 tbr, 30 tbn, 30 tbc
Data: Output #0, flv, to 'demo2013.flv':
   Metadata:
     encoder         : Lavf54.63.102
     Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x320, 
q=2-31, 200 kb/s, 1k tbn, 30 tbc
Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo -> flv)
Data: frame=   19 fps=0.0 q=10.0 size=     164kB time=00:00:00.63 
bitrate=2119.8kbits/s
Data: frame=   34 fps= 33 q=10.0 size=     286kB time=00:00:01.13 
bitrate=2064.4kbits/s
Data: frame=   50 fps= 32 q=10.0 size=     424kB time=00:00:01.66 
bitrate=2085.3kbits/s
Data: frame=   65 fps= 32 q=10.0 size=     546kB time=00:00:02.16 
bitrate=2065.2kbits/s
Data: frame=   80 fps= 31 q=10.0 size=     668kB time=00:00:02.66 
bitrate=2052.6kbits/s
Data: frame=   95 fps= 31 q=10.0 size=     790kB time=00:00:03.16 
bitrate=2044.6kbits/s
Data: frame=  110 fps= 31 q=10.0 size=     923kB time=00:00:03.66 
bitrate=2062.5kbits/s
Data: frame=  125 fps= 31 q=10.0 size=    1047kB time=00:00:04.16 
bitrate=2058.8kbits/s
Data: frame=  140 fps= 31 q=10.0 size=    1170kB time=00:00:04.66 
bitrate=2053.9kbits/s


  Linux output http://pastebin.com/qU0y69wX :
to hide [swscaler @ 0xa899060] Warning , i can use "-vf format=rgb24" , 
but same frame drop remains.

Data: ffmpeg version N-37504-gfeccf2f Copyright (c) 2000-2013 the FFmpeg 
developers
   built on Mar 13 2013 13:34:13 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
   configuration: --enable-gpl --enable-libass --enable-libfdk-aac 
--enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libspeex --enable-librtmp 
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab 
--enable-libx264 --enable-nonfree --enable-version3
Data:   libavutil      52. 19.100 / 52. 19.100
   libavcodec     55.  0.100 / 55.  0.100
   libavformat    55.  0.100 / 55.  0.100
   libavdevice    54.  4.100 / 54.  4.100
   libavfilter     3. 45.101 /  3. 45.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
Data: [rawvideo @ 0xa8aa660] Estimating duration from bitrate, this may 
be inaccurate
Input #0, rawvideo, from 'pipe:':
   Duration: N/A, start: 0.000000, bitrate: 196608 kb/s
     Stream #0:0: Video: rawvideo (ARGB / 0x42475241), argb, 640x320, 
196608 kb/s, 30 tbr, 30 tbn, 30 tbc
Data: Output #0, flv, to 'demo2013.flv':
   Metadata:
     encoder         : Lavf55.0.100
     Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x320, 
q=2-31, 200 kb/s, 1k tbn, 30 tbc
Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo -> flv)
[swscaler @ 0xa899060] Warning: data is not aligned! This can lead to a 
speedloss
Data: frame=    3 fps=0.0 q=10.0 size=      49kB time=00:00:00.10 
bitrate=4043.4kbits/s
Data: frame=    4 fps=2.4 q=10.0 size=      65kB time=00:00:00.13 
bitrate=4000.1kbits/s
Data: frame=    5 fps=1.9 q=10.0 size=      82kB time=00:00:00.16 
bitrate=4045.3kbits/s
Data: frame=    6 fps=1.8 q=10.0 size=      99kB time=00:00:00.20 
bitrate=4061.1kbits/s
Data: frame=    7 fps=1.7 q=10.0 size=     115kB time=00:00:00.23 
bitrate=4051.1kbits/s
Data: frame=    8 fps=1.7 q=10.0 size=     132kB time=00:00:00.26 
bitrate=4058.5kbits/s
Data: frame=    9 fps=1.6 q=10.0 size=     149kB time=00:00:00.30 
bitrate=4056.8kbits/s
Data: frame=   10 fps=1.6 q=10.0 size=     165kB time=00:00:00.33 
bitrate=4058.5kbits/s
Data: frame=   11 fps=1.6 q=10.0 size=     184kB time=00:00:00.36 
bitrate=4109.0kbits/s

Thanks for response, Tadas



More information about the ffmpeg-user mailing list