[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ffmpeg v3:20070719-0.0 from debian-multimedia can't set audio bitrate



Package: ffmpeg
Version: 3:20070719-0.0
Severity: normal

Hi, 

The current version of ffmpeg from debian-multimedia testing repo
(v3:20070719-0.0) doesn't allow me to set audio bitrate:

  $ ffmpeg -i test.avi -vn -acodec ac3 -ac 2 -ar 48000 -ab 192 -y test.ac3
  FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-pp --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libogg --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscaler
    libavutil version: 49.4.1
    libavcodec version: 51.40.4
    libavformat version: 51.12.1
    built on Jul 19 2007 10:55:35, gcc: 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)

  Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
  Input #0, avi, from 'test.avi':
    Duration: 01:25:05.4, start: 0.000000, bitrate: 1147 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 656x272, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 32 kb/s
  Output #0, ac3, to 'test.ac3':
    Stream #0.0: Audio: ac3, 48000 Hz, stereo, 0 kb/s
					       ^^^^^^
  Stream mapping:
    Stream #0.1 -> #0.0
  Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

I've been using the ffmpeg's -ab option for several years without
problem, and the option is still there:

  $ ffmpeg | grep -2 -- -ab
  AVCodecContext AVOptions:
  -b                 <int>   E.V.. set bitrate (in bits/s)
  -ab                <int>   E..A. set bitrate (in bits/s)
  -bt                <int>   E.V.. set video bitrate tolerance (in bits/s)
  -flags             <flags> EDVA.

If I omit the -ab option, then it works:

  $ ffmpeg -i test.avi -vn -acodec ac3 -ac 2 -ar 48000 -y test.ac3
  [...]
  Input #0, avi, from 'test.avi':
    Duration: 01:25:05.4, start: 0.000000, bitrate: 1147 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 656x272, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 32 kb/s
  Output #0, ac3, to 'test.ac3':
    Stream #0.0: Audio: ac3, 48000 Hz, stereo, 64 kb/s
					       ^^^^^^^
  Stream mapping:
    Stream #0.1 -> #0.0
  Press [q] to stop encoding
  size=     785kB time=100.5 bitrate=  64.0kbits/s    
  video:0kB audio:785kB global headers:0kB muxing overhead 0.000000%
  Received signal 2: terminating.

However, it will fail even if I set the -ab option to its default value:

  $ ffmpeg -i test.avi -vn -acodec ac3 -ac 2 -ar 48000 -ab 64 -y test.ac3
  [...]
  Output #0, ac3, to 'test.ac3':
    Stream #0.0: Audio: ac3, 48000 Hz, stereo, 0 kb/s
  Stream mapping:
    Stream #0.1 -> #0.0
  Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

  $ apt-cache policy ffmpeg
  ffmpeg:
    Installed: 3:20070719-0.0
    Candidate: 3:20070719-0.0
    Version table:
   *** 3:20070719-0.0 0
	  600 http://debian-multimedia.gnali.org testing/main Packages
	  100 /var/lib/dpkg/status

Thanks

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (600, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-grml
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ffmpeg depends on:
ii  libavcodeccvs51         3:20070719-0.0   library to encode decode multimedi
ii  libavformatcvs51        3:20070719-0.0   ffmpeg file format library
ii  libavutilcvs49          3:20070719-0.0   avutil shared libraries
ii  libc6                   2.6-2            GNU C Library: Shared libraries
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libimlib2               1.3.0.0debian1-4 powerful image loading and renderi
ii  libsdl1.2debian         1.2.11-8         Simple DirectMedia Layer
ii  libswscalecvs0          3:20070719-0.0   ffmpeg software scaler

ffmpeg recommends no packages.

-- no debconf information



Reply to: