[FFmpeg-trac] #3053(avcodec:new): 2-pass wmv2 fails with "requested bitrate is too low"
FFmpeg
trac at avcodec.org
Thu Oct 17 15:55:34 CEST 2013
#3053: 2-pass wmv2 fails with "requested bitrate is too low"
-------------------------------------+-------------------------------------
Reporter: terran | Type: defect
Status: new | Priority: important
Component: avcodec | Version: 2.0.1
Keywords: wmv2 2-pass | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
We've run into a number of files that when encoded to wmv2 using 2-pass,
fail with this:
[wmv2 @ 0x7fe5e281fe00] requested bitrate is too low
and then the always helpful:
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
Occasionally, changing the bitrate of the first pass is a workaround. The
bitrate of the source video does not seem to have any relationship with
the error. Similarly, using a range of target bitrates from 20% to %120
doesn't seem to consistently affect the outcome.
How to reproduce:
Sample file here: http://www1.datafilehost.com/d/8c31dc74
{{{
% ffmpeg -i bbb.mp4 -pass 1 -c:v wmv2 -b:v 300k -f null -y /dev/null &&
ffmpeg -i bbb.mp4 -pass 2 -c:v wmv2 -b:v 300k -y out.wmv
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 16 2013 16:22:18 with Apple LLVM version 4.2
(clang-425.0.27) (based on LLVM 3.2svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0.1 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-
libmp3lame --enable-libxvid
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
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
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 3.0, fltp,
127 kb/s
Metadata:
handler_name : SoundHandler
Output #0, null, to '/dev/null':
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 1, 200 kb/s, 90k tbn, 24 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: pcm_s16le, 48000 Hz, 3.0, s16, 2304 kb/s
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> wmv2)
Stream #0:1 -> #0:1 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
frame= 360 fps=208 q=31.0 Lsize=N/A time=00:00:15.01 bitrate=N/A
video:1399kB audio:4218kB subtitle:0 global headers:0kB muxing overhead
-100.000382%
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 16 2013 16:22:18 with Apple LLVM version 4.2
(clang-425.0.27) (based on LLVM 3.2svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0.1 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-
libmp3lame --enable-libxvid
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
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
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 3.0, fltp,
127 kb/s
Metadata:
handler_name : SoundHandler
[wmv2 @ 0x7fe5e281fe00] 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, 300 kb/s, 90k tbn, 24 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: wmav2, 48000 Hz, 3.0, fltp, 128 kb/s
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> wmv2)
Stream #0:1 -> #0:1 (aac -> wmav2)
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>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list