saloromer / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

ffmbc 0.6-rc2 -vb parameter is ignored #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I set the video bit-rate with -b then FFmbc 0.6-rc2 adheres to that command.

If I set the video bit-rate with -vb then FFmbc 0.6-rc3 doesn't.

See the two examples below:

$ ~/src/ffmbc/FFmbc-0.6-rc2/ffmbc -y -loglevel debug -i Clock10tone.mov -aspect 
16:9 -r 25 -an -vcodec mpeg2video -b 1000k -qmin 2 -qmax 50 out1.vob
FFmpeg version FFmbc-0.6-rc2, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar  1 2011 16:11:58 with gcc 4.4.3
  configuration: --cpu=i686 --enable-static --extra-cflags='--static -I$PREFIX/include' --extra-libs='-static -L$PREFIX/lib' --prefix=/usr/local/ --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-pthreads --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libfaac --enable-libgsm --enable-libdirac --enable-libmp3lame --enable-libx264 --enable-libschroedinger --enable-libvpx
  libavutil    50. 37. 0 / 50. 37. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.112. 1 / 52.112. 1
  libavformat  52. 99. 0 / 52. 99. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
[NULL @ 0x9bbc8a0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9bbc8a0] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9bbc8a0] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Clock10tone.mov':
  Metadata:
    major_brand: qt
    minor_version: 537199360
    compatible_brands: qt
    creation_time: 2009-07-16 17:23:31
  Duration: 00:00:10.00, start: 0.000000, bitrate: 30334 kb/s
    Stream #0.0(eng), 1, 1/25: Video: dvvideo, yuv420p, 720x576p [PAR 64:45 DAR 16:9], 28800 kb/s, tbc 1/25, tbr 25/1, 25.000 fps
    Stream #0.1(eng), 0, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[svcd @ 0x9bbe430] VBV buffer size not set, muxing may fail
Output #0, svcd, to 'out1.vob':
  Metadata:
    encoder: FFmbc 0.6
    Stream #0.0(und), 0, 1/90000: Video: mpeg2video, yuv420p, 720x576p [PAR 64:45 DAR 16:9], 1000 kb/s, tbc 1/25, 25.000 fps
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=  250 fps=228 q=3.1 Lsize=    1386kB time=00:00:09.96 
bitrate=1140.0kbits/s
video:1365kB audio:0kB global headers:0kB muxing overhead 1.557134%

Note the 1000 kb/s in the encoder's stream #0.0 output line above.

$ ~/src/ffmbc/FFmbc-0.6-rc2/ffmbc -y -loglevel debug -i Clock10tone.mov -aspect 
16:9 -r 25 -an -vcodec mpeg2video -vb 1000k -qmin 2 -qmax 50 out1.vob
FFmpeg version FFmbc-0.6-rc2, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar  1 2011 16:11:58 with gcc 4.4.3
  configuration: --cpu=i686 --enable-static --extra-cflags='--static -I$PREFIX/include' --extra-libs='-static -L$PREFIX/lib' --prefix=/usr/local/ --enable-ffplay --enable-ffprobe --enable-ffserver --enable-gpl --enable-nonfree --enable-pthreads --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libfaac --enable-libgsm --enable-libdirac --enable-libmp3lame --enable-libx264 --enable-libschroedinger --enable-libvpx
  libavutil    50. 37. 0 / 50. 37. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.112. 1 / 52.112. 1
  libavformat  52. 99. 0 / 52. 99. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
[NULL @ 0x95f68a0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x95f68a0] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x95f68a0] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Clock10tone.mov':
  Metadata:
    major_brand: qt
    minor_version: 537199360
    compatible_brands: qt
    creation_time: 2009-07-16 17:23:31
  Duration: 00:00:10.00, start: 0.000000, bitrate: 30334 kb/s
    Stream #0.0(eng), 1, 1/25: Video: dvvideo, yuv420p, 720x576p [PAR 64:45 DAR 16:9], 28800 kb/s, tbc 1/25, tbr 25/1, 25.000 fps
    Stream #0.1(eng), 0, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[svcd @ 0x95f8430] VBV buffer size not set, muxing may fail
Output #0, svcd, to 'out1.vob':
  Metadata:
    encoder: FFmbc 0.6
    Stream #0.0(und), 0, 1/90000: Video: mpeg2video, yuv420p, 720x576p [PAR 64:45 DAR 16:9], 200 kb/s, tbc 1/25, 25.000 fps
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=  250 fps=237 q=31.0 Lsize=     490kB time=00:00:09.96 bitrate= 
403.0kbits/s
video:481kB audio:0kB global headers:0kB muxing overhead 1.951828%

Note how this time the encoder has defaulted to 200 kb/s.

Original issue reported on code.google.com by mark.him...@gmail.com on 1 Mar 2011 at 4:58

GoogleCodeExporter commented 8 years ago
Fixed in 0.6-rc3

Original comment by baptiste...@gmail.com on 9 Mar 2011 at 2:54

GoogleCodeExporter commented 8 years ago
Confirmed fixed in 0.6-rc3 and rc4. Thanks.

Original comment by mark.him...@gmail.com on 3 May 2011 at 4:02