[FFmpeg-user] why in the world does WMV ignore the bitrate

Reindl Harald h.reindl at thelounge.net
Tue Oct 29 14:29:38 CET 2013


ffmpeg version N-57443-ge0b2bdd Copyright (c) 2000-2013 the FFmpeg developers
____________________________________________

usr/local/bin/ffmpeg -i 'input.mp4' -y -vb '768k' -ab '128k' -ar '44100' -ac '2' -r '25' -async '1' -vcodec 'wmv2'
-acodec 'wmav2' 'output.wmv'

the result is a lousy quality WMV with 4,2MB which radly has 768 kb/s nor the statet 1715 kb/s
the same result with the uncpmressed 3 GB input file in output size and quality as WMV

4,2M 2013-10-29 14:21 output.wmv
71M 2013-10-29 10:19 input.mp4

ffmpeg -i output.wmv:
Input #0, asf, from 'output.wmv':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2013-10-29T14:21:35
    encoder         : Lavf55.19.104
  Duration: 00:00:20.13, start: 0.000000, bitrate: 1715 kb/s
    Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 1080x1920, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 128 kb/s
____________________________________________

ffmpeg version N-57443-ge0b2bdd Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 26 2013 17:55:54 with gcc 4.8.2 (GCC) 20131017 (Red Hat 4.8.2-1)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --mandir=/usr/local/man --arch=x86_64
--extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx -msse2 -msse3 -msse4.1
-msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=8 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --disable-shared --disable-libxvid --disable-libvorbis --disable-libfaac
--disable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopenjpeg
--disable-libopencv --disable-libschroedinger --disable-libgsm --disable-librtmp --disable-libopus
--disable-libfreetype --disable-hwaccels --disable-libdc1394 --disable-devices --disable-amd3dnow
--disable-protocol=gopher --disable-ffplay --disable-ffprobe --disable-avdevice --disable-debug --disable-htmlpages
--disable-podpages --disable-txtpages --shlibdir=/usr/local/lib64
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 38.101 / 55. 38.101
  libavformat    55. 19.104 / 55. 19.104
  libavfilter     3. 89.100 /  3. 89.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2013-10-29 09:19:36
  Duration: 00:00:20.01, start: 0.000000, bitrate: 29691 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1080x1920 [SAR 1:1 DAR 9:16], 29572
kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : ?Mainconcept Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : #Mainconcept MP4 Sound Media Handler
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
Output #0, asf, to 'output.wmv':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2013-10-29T14:21:35
    WM/EncodingSettings: Lavf55.19.104
    Stream #0:0(eng): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 1080x1920 [SAR 1:1 DAR 9:16], q=2-31, 768 kb/s, 1k
tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : ?Mainconcept Video Media Handler
    Stream #0:1(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : #Mainconcept MP4 Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> wmv2)
  Stream #0:1 -> #0:1 (aac -> wmav2)
Press [q] to stop, [?] for help
frame=   49 fps=0.0 q=24.8 size=     745kB time=00:00:01.96 bitrate=3112.3kbits/s dup=1 drop=0
frame=   99 fps= 99 q=31.0 size=    1160kB time=00:00:03.96 bitrate=2400.2kbits/s dup=1 drop=0
frame=  152 fps=100 q=31.0 size=    1535kB time=00:00:06.08 bitrate=2068.6kbits/s dup=1 drop=0
frame=  202 fps=100 q=31.0 size=    1923kB time=00:00:08.21 bitrate=1916.4kbits/s dup=1 drop=0
frame=  252 fps=100 q=31.0 size=    2276kB time=00:00:10.08 bitrate=1849.6kbits/s dup=1 drop=0
frame=  302 fps= 99 q=31.0 size=    2645kB time=00:00:12.08 bitrate=1793.5kbits/s dup=1 drop=0
frame=  352 fps= 99 q=31.0 size=    3023kB time=00:00:14.08 bitrate=1758.7kbits/s dup=1 drop=0
frame=  407 fps=100 q=31.0 size=    3479kB time=00:00:16.34 bitrate=1743.6kbits/s dup=1 drop=0
frame=  457 fps=100 q=24.8 size=    3898kB time=00:00:18.34 bitrate=1740.7kbits/s dup=1 drop=0
frame=  501 fps=100 q=31.0 Lsize=    4217kB time=00:00:20.04 bitrate=1723.7kbits/s dup=2 drop=0
video:3808kB audio:313kB subtitle:0 global headers:0kB muxing overhead 2.320599%
ffmpeg version N-57443-ge0b2bdd Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 26 2013 17:55:54 with gcc 4.8.2 (GCC) 20131017 (Red Hat 4.8.2-1)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --mandir=/usr/local/man --arch=x86_64
--extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx -msse2 -msse3 -msse4.1
-msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=8 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --disable-shared --disable-libxvid --disable-libvorbis --disable-libfaac
--disable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopenjpeg
--disable-libopencv --disable-libschroedinger --disable-libgsm --disable-librtmp --disable-libopus
--disable-libfreetype --disable-hwaccels --disable-libdc1394 --disable-devices --disable-amd3dnow
--disable-protocol=gopher --disable-ffplay --disable-ffprobe --disable-avdevice --disable-debug --disable-htmlpages
--disable-podpages --disable-txtpages --shlibdir=/usr/local/lib64
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 38.101 / 55. 38.101
  libavformat    55. 19.104 / 55. 19.104
  libavfilter     3. 89.100 /  3. 89.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2013-10-29 09:19:36
  Duration: 00:00:20.01, start: 0.000000, bitrate: 29691 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1080x1920 [SAR 1:1 DAR 9:16], 29572
kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : ?Mainconcept Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2013-10-29 09:19:36
      handler_name    : #Mainconcept MP4 Sound Media Handler
[swscaler @ 0x19a6880] deprecated pixel format used, make sure you did set range correctly

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20131029/716ffae5/attachment.asc>


More information about the ffmpeg-user mailing list