[FFmpeg-user] ffmpeg mp4 encoding with cfr is not working

Sangsu Baek sangsu.baek at gmail.com
Wed Jun 19 10:53:22 CEST 2013


Below is console output:

/tmp # ffmpeg -f v4l2 -input_format yuyv422 -r 15 -s 320x240 -i /dev/video0 -t 30 -y -vcodec mpeg4 -filter:v fps=15  /tmp/record.mp4
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 19 2013 15:18:50 with gcc 4.5.2 (Sourcery G++ Lite 2011.03-41)
  configuration: --enable-cross-compile --cross-prefix=/home/ssbaek/lbsp/trunk/build/../build/toolchain/bin/arm-none-linux-gnueabi- --arch=arm --cc=/home/ssbaek/lbsp/trunk/build/../build/toolchain/bin/arm-none-linux-gnueabi-gcc --disable-mmx --target-os=linux --enable-small --sysinclude=/home/ssbaek/lbsp/trunk/build/../build/toolchain/arm-none-linux-gnueabi/libc/usr/include --disable-debug --disable-filters --disable-bsfs --disable-outdevs --disable-parsers --disable-muxers --disable-demuxers --extra-ldflags=-L/home/ssbaek/lbsp/trunk/build/../build/toolchain/arm-none-linux-gnueai/lib --disable-encoders --enable-encoder=mpeg4 --disable-network --disable-decoders --enable-decoder=yuv4 --disable-static --enable-shared --prefix=./output --disable-doc --enable-decoder=h264 --extra-cflags=-I/home/ssbaek/lbsp/trunk/build/../build/toolchain/arm-none-linux-gnueabi/libc/usr/include --enable-decoder=rawvideo --enable-encoder=libx264 --enable-encoder=libx264rgb --enable-gpl --enable-muxer=mp4 --enable-filter=scale --ena  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[video4linux2,v4l2 @ 0x46550] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 0.000000, bitrate: 18432 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
transcode_init:s:ost->frame_rate.num = [15]
Output #0, mp4, to '/tmp/record.mp4':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 320x240, q=2-31, 200 kb/s, 15360 tbn, 15 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
Press [q] to stop, [?] for help
frame=  194 fps= 17 q=5.3 Lsize=     401kB time=00:00:12.93 bitrate= 254.0kbits/s    
video:399kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.405465%
Received signal 2: terminating.

Thank you.

On Jun 19, 2013, at 5:26 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Sangsu Baek <sangsu.baek <at> gmail.com> writes:
> 
>> ffmpeg -f v4l2 -input_format yuyv422 -r 15 -s 320x240 
>> -i /dev/video0 -t 30 -y -vcodec mpeg4 -filter:v
>> fps=15  /tmp/record.mp4
> 
> Complete, uncut console output missing, the video filter 
> looks superfluous.
> 
>> Problem is output fps is varying.
> 
> That is surprising because FFmpeg's mp4 muxer only 
> supports cfr.
> 
> Carl Eugen
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list