[libav-tools] Windows avconv `error while opening encoder for output stream`

Luca Barbato lu_zero at gentoo.org
Fri Feb 8 22:11:54 CET 2013


On 2/8/13 4:33 AM, Dave Lasley wrote:
> Hello,
> 
>  
> 
> I am getting the error 
> 
>  
> 
>     error while opening encoder for output stream #0:0 - 
> 
>       maybe incorrect parameters such as bit_rate, rate, width, or height
> 
>  
> 
> When I run the below command on Windows Avconv v9-406-ga1d3673
> 
>  
> 
>     Z:Programs\\Windows\\libav-win64-20130207\\usr\\bin\\avconv.exe -i ^
> 
>     "Z:\\2-renamed\\Abduction.mkv" -passlogfile "Abduction.mkv.log" -b:v
> 13845000 ^
> 
>     -level 41 -vcodec libx264 -an -preset veryslow -sn -y -tune film -pass 1
> ^
> 
>     -f rawvideo -y NUL
> 
>  
> 
> I have searched around, and the universal solution is that you have to
> specify the audio/video bit rates along with the audio/video codecs when
> using two pass encoding. Unfortunately, I am already doing this with the
> `-an` (no audio), `-b:v 13845000`, and `-vcodec libx264`. 
> 
>  
> 
> From the stream number, I am thinking that this is the video stream that is
> failing. I figured that avconv wasn't able to find my x264 binary, but the
> command works if I remove `-pass 1`. 
> 
>  
> 
> An additional note - this command works with no issues on my Ubuntu box
> (avconv version 0.8.5-6:0.8.5-0ubuntu0.12.10.1), and the failure is
> consistent between files. 

I'm afraid you are mixing a bit your command line.

try to reorder it so video codec options do not get mixed up with audio
options.

lu


More information about the libav-tools mailing list