[FFmpeg-trac] #3053(avcodec:open): 2-pass wmv2 fails with "requested bitrate is too low"

FFmpeg trac at avcodec.org
Sat Oct 19 13:55:29 CEST 2013


#3053: 2-pass wmv2 fails with "requested bitrate is too low"
------------------------------------+-----------------------------------
             Reporter:  terran      |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  wmv2        |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Changes (by cehoyos):

 * status:  new => open
 * version:  2.0.1 => git-master
 * reproduced:  0 => 1


Comment:

 A bitrate of 300kb is impossible for the given sample and encoder afaict
 (so the error message is correct) but I can reproduce the issue with a
 higher bitrate (that can be reached with a sufficiently high quantiser):
 {{{
 $ ffmpeg -i bbb.mp4 -an -qscale 90 -vcodec wmv2 out.wmv
 ffmpeg version N-57252-gfec6d54 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct 19 2013 13:03:29 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libx264
   libavutil      52. 47.100 / 52. 47.100
   libavcodec     55. 37.101 / 55. 37.101
   libavformat    55. 19.102 / 55. 19.102
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.101 /  3. 88.101
   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 'bbb.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
   Duration: 00:00:15.02, start: 0.000333, bitrate: 835 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], 703 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 3.0, fltp,
 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Please use -q:a or -q:v, -qscale is ambiguous
 Output #0, asf, to 'out.wmv':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     WM/EncodingSettings: Lavf55.19.102
     Stream #0:0(und): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 1280x720
 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 24 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> wmv2)
 Press [q] to stop, [?] for help
 frame=  360 fps=259 q=90.0 Lsize=    1188kB time=00:00:15.00 bitrate=
 649.0kbits/s
 video:1170kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 1.524118%
 }}}
 {{{
 $ ffmpeg -i bbb.mp4 -an -vb 1000k -pass 1 -vcodec wmv2 out.wmv
 ffmpeg version N-57252-gfec6d54 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct 19 2013 13:03:29 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libx264
   libavutil      52. 47.100 / 52. 47.100
   libavcodec     55. 37.101 / 55. 37.101
   libavformat    55. 19.102 / 55. 19.102
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.101 /  3. 88.101
   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 'bbb.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
   Duration: 00:00:15.02, start: 0.000333, bitrate: 835 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], 703 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 3.0, fltp,
 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Output #0, asf, to 'out.wmv':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     WM/EncodingSettings: Lavf55.19.102
     Stream #0:0(und): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 1280x720
 [SAR 1:1 DAR 16:9], q=2-31, pass 1, 1000 kb/s, 1k tbn, 24 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> wmv2)
 Press [q] to stop, [?] for help
 frame=  360 fps=212 q=21.3 Lsize=    2123kB time=00:00:15.00
 bitrate=1159.3kbits/s
 video:2096kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 1.284990%
 }}}
 {{{
 $ ffmpeg -i bbb.mp4 -an -vb 1000k -pass 2 -vcodec wmv2 -y out.wmv
 ffmpeg version N-57252-gfec6d54 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct 19 2013 13:03:29 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libx264
   libavutil      52. 47.100 / 52. 47.100
   libavcodec     55. 37.101 / 55. 37.101
   libavformat    55. 19.102 / 55. 19.102
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.101 /  3. 88.101
   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 'bbb.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
   Duration: 00:00:15.02, start: 0.000333, bitrate: 835 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], 703 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 3.0, fltp,
 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 [wmv2 @ 0x194bee0] requested bitrate is too low
 Output #0, asf, to 'out.wmv':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
     Stream #0:0(und): Video: wmv2, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
 q=2-31, pass 2, 1000 kb/s, 90k tbn, 24 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> wmv2)
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3053#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list