Hi, im newbie with ffmpeg, i'made the encoding below, but i haven't clear the relation between the parameter -b for the bitrate, and the bitrate information in the output, 651.9kbits/s in this case, how this last value is calculated? thanks chaparro:~# *ffmpeg -s cif -vcodec mpeg4 -r 30 -b 64000 -bt 3200 -g 30 -i akiyo_cif.yuv test.m4v* FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr libavutil version: 0d.49.0.0 libavcodec version: 0d.51.11.0 libavformat version: 0d.50.5.0 built on Mar 26 2007 15:50:40, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Input #0, rawvideo, from 'akiyo_cif.yuv': Duration: N/A, bitrate: N/A Stream #0.0: Video: rawvideo, yuv420p, 352x288, 30.00 fps(r) Output #0, m4v, to 'test.m4v': Stream #0.0: Video: mpeg4, yuv420p, 352x288, q=2-31, 64000 kb/s, 30.00 fps(c) Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 300 q=2.0 Lsize= 796kB time=10.0 bitrate= 651.9kbits/s video:796kB audio:0kB global headers:0kB muxing overhead 0.000000% -- Pedro Alonso Chaparro Valero PhD student Technique University of Catalonia Barcelona - Spain
Hello Pedro, Le 25 nov. 08 ? 16:39, pedro chaparro a ?crit :
Hi, im newbie with ffmpeg, i'made the encoding below, but i haven't clear the relation between the parameter -b for the bitrate, and the bitrate information in the output, 651.9kbits/s in this case, how this last value is calculated? thanks
-b is a "target" bitrate, i.e. the bitrate you want to obtain. What ffmpeg prints for the output is the actual bitrate it manage to get.
chaparro:~# *ffmpeg -s cif -vcodec mpeg4 -r 30 -b 64000 -bt 3200 -g 30 -i akiyo_cif.yuv test.m4v* [...]
frame= 300 q=2.0 Lsize= 796kB time=10.0 bitrate= 651.9kbits/s
participants (2)
-
david.geldreich@free.fr -
pdro07@gmail.com