2008-08-18 15:04:37 |
Adam Buchbinder |
description |
Create a wav file:
$ ecasound -i null -t:20 -o test.wav
Attempt to encode it to ac3:
$ ffmpeg -y -i test.wav test.ac3
This works. But attempt to specify bitrate--even the default bitrate--and this happens:
$ ffmpeg -y -i test.wav -ab 64 test.ac3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Jul 29 2008 18:21:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Input #0, wav, from 'test.wav':
Duration: 00:00:20.0, start: 0.000000, bitrate: 1411 kb/s
Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Output #0, ac3, to 'test.ac3':
Stream #0.0: Audio: ac3, 44100 Hz, stereo, 0 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
This bug breaks the any2dvd script; removing the -ab options in menu_audio() fixes it, but this also fixes the audio bitrate to the default, 64 kbps.
I'm running 3:0.cvs20070307-5ubuntu7.1+medibuntu1 on Hardy. |
ffmpeg 0.cvs20070307-5ubuntu7.1's man page documents the -ab switch as taking a value in kbits/s; new versions take bits/s. So "-ab 64" in old versions should read "-ab 64k" or "-ab 64000" in new ones. |
|