[FFmpeg-user] AAC with bit rate >160k

wtfux wtfux.dev at googlemail.com
Mon Jun 11 17:53:01 CEST 2012


Command line with console output below. (I actually want to creating a
video file. I omitted the video part as it's unrelated)

As you can see `-b:a 224k` does not work with audio codec libfaac. It
will not go further than 160-170k. (first output)
With audio codec aac it works, it'll use bit rates between 200k and
230k. (second output)
I just found out that it's actually possible with libfaac when I use
`-q:a` instead of `-b:a`. (The third output).

Should I use libfaac with `-q:a`? I'm looking for a variable bitrate
around 220k.

Thanks.

#ffmpeg -y -i "input 01.mkv" -vn -sn -codec:a libfaac -b:a 224k
-threads 8 -t 00:10:00 test.mka

ffmpeg version N-34955-g234d42f Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 10 2012 20:05:35 with gcc 4.4.7
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-version3
  libavutil      51. 56.100 / 51. 56.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 78.101 /  2. 78.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'input 01.mkv':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
  Duration: 00:23:43.92, start: 0.000000, bitrate: 4654 kb/s
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 649.607000
    Metadata:
      title           : Part A
    Chapter #0.3: start 649.649000, end 660.118000
    Metadata:
      title           : Eyecatch
    Chapter #0.4: start 660.159000, end 1316.774000
    Metadata:
      title           : Part B
    Chapter #0.5: start 1316.815000, end 1406.864000
    Metadata:
      title           : Ending
    Chapter #0.6: start 1406.905000, end 1423.881000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le, 1920x1080,
SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : 10bit H.264 - 1080p
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)
    Metadata:
      title           : 2.0 FLAC
    Stream #0:2(eng): Subtitle: ssa (default)
    Metadata:
      title           : Hiryuu
    Stream #0:3: Attachment: ttf
    Metadata:
      filename        : baars.ttf
      mimetype        : application/x-truetype-font
    Stream #0:4: Attachment: ttf
    Metadata:
      filename        : boopee_regular.ttf
      mimetype        : application/x-truetype-font
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : elmer.ttf
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : Go Boom!.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : JacksFont.ttf
      mimetype        : application/x-truetype-font
    Stream #0:8: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-Semibold.otf
      mimetype        : application/x-truetype-font
    Stream #0:9: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-SemiboldItalic.otf
      mimetype        : application/x-truetype-font
    Stream #0:10: Attachment: ttf
    Metadata:
      filename        : ariblk.ttf
      mimetype        : application/x-truetype-font
    Stream #0:11: Attachment: ttf
    Metadata:
      filename        : AurulentSans-Regular.otf
      mimetype        : application/x-truetype-font
Output #0, matroska, to 'test.mka':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
    encoder         : Lavf54.6.101
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 600.000000
    Metadata:
      title           : Part A
    Stream #0:0(jpn): Audio: aac, 48000 Hz, stereo, s16, 224 kb/s (default)
    Metadata:
      title           : 2.0 FLAC
Stream mapping:
  Stream #0:1 -> #0:0 (flac -> libfaac)
Press [q] to stop, [?] for help
size=   12314kB time=00:10:00.06 bitrate= 168.1kbits/s
video:0kB audio:12119kB global headers:0kB muxing overhead 1.610186%



#ffmpeg -y -i "input 01.mkv" -vn -sn -codec:a aac -b:a 224k -strict
experimental -threads 8 -t 00:10:00 test.mka

ffmpeg version N-34955-g234d42f Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 10 2012 20:05:35 with gcc 4.4.7
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-version3
  libavutil      51. 56.100 / 51. 56.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 78.101 /  2. 78.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'input 01.mkv':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
  Duration: 00:23:43.92, start: 0.000000, bitrate: 4654 kb/s
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 649.607000
    Metadata:
      title           : Part A
    Chapter #0.3: start 649.649000, end 660.118000
    Metadata:
      title           : Eyecatch
    Chapter #0.4: start 660.159000, end 1316.774000
    Metadata:
      title           : Part B
    Chapter #0.5: start 1316.815000, end 1406.864000
    Metadata:
      title           : Ending
    Chapter #0.6: start 1406.905000, end 1423.881000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le, 1920x1080,
SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : 10bit H.264 - 1080p
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)
    Metadata:
      title           : 2.0 FLAC
	Stream #0:2(eng): Subtitle: ssa (default)
    Metadata:
      title           : Hiryuu
    Stream #0:3: Attachment: ttf
    Metadata:
      filename        : baars.ttf
      mimetype        : application/x-truetype-font
    Stream #0:4: Attachment: ttf
    Metadata:
      filename        : boopee_regular.ttf
      mimetype        : application/x-truetype-font
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : elmer.ttf
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : Go Boom!.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : JacksFont.ttf
      mimetype        : application/x-truetype-font
    Stream #0:8: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-Semibold.otf
      mimetype        : application/x-truetype-font
    Stream #0:9: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-SemiboldItalic.otf
      mimetype        : application/x-truetype-font
    Stream #0:10: Attachment: ttf
    Metadata:
      filename        : ariblk.ttf
      mimetype        : application/x-truetype-font
    Stream #0:11: Attachment: ttf
    Metadata:
      filename        : AurulentSans-Regular.otf
      mimetype        : application/x-truetype-font
[aformat @ 0x1d639e0] auto-inserting filter 'auto-inserted resampler
0' between the filter 'Parsed_anull_0' and the filter 'aformat'
[auto-inserted resampler 0 @ 0x1d418e0] chl:stereo fmt:s16 r:48000Hz
-> chl:stereo fmt:flt r:48000Hz
Output #0, matroska, to 'test.mka':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
    encoder         : Lavf54.6.101
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 600.000000
    Metadata:
      title           : Part A
    Stream #0:0(jpn): Audio: aac, 48000 Hz, stereo, flt, 224 kb/s (default)
    Metadata:
      title           : 2.0 FLAC
Stream mapping:
  Stream #0:1 -> #0:0 (flac -> aac)
Press [q] to stop, [?] for help
size=   15440kB time=00:10:00.06 bitrate= 210.8kbits/s
video:0kB audio:15244kB global headers:0kB muxing overhead 1.280078%



#ffmpeg -y -i "input 01.mkv" -vn -sn -codec:a libfaac -q:a 200
-threads 8 -t 00:10:00 test.mka

ffmpeg version N-34955-g234d42f Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 10 2012 20:05:35 with gcc 4.4.7
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-version3
  libavutil      51. 56.100 / 51. 56.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 78.101 /  2. 78.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'input 01.mkv':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
  Duration: 00:23:43.92, start: 0.000000, bitrate: 4654 kb/s
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 649.607000
    Metadata:
      title           : Part A
    Chapter #0.3: start 649.649000, end 660.118000
    Metadata:
      title           : Eyecatch
    Chapter #0.4: start 660.159000, end 1316.774000
    Metadata:
      title           : Part B
    Chapter #0.5: start 1316.815000, end 1406.864000
    Metadata:
      title           : Ending
    Chapter #0.6: start 1406.905000, end 1423.881000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le, 1920x1080,
SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : 10bit H.264 - 1080p
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)
    Metadata:
      title           : 2.0 FLAC
    Stream #0:2(eng): Subtitle: ssa (default)
    Metadata:
      title           : Hiryuu
    Stream #0:3: Attachment: ttf
    Metadata:
      filename        : baars.ttf
      mimetype        : application/x-truetype-font
    Stream #0:4: Attachment: ttf
    Metadata:
      filename        : boopee_regular.ttf
      mimetype        : application/x-truetype-font
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : elmer.ttf
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : Go Boom!.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : JacksFont.ttf
      mimetype        : application/x-truetype-font
    Stream #0:8: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-Semibold.otf
      mimetype        : application/x-truetype-font
    Stream #0:9: Attachment: ttf
    Metadata:
      filename        : StoneSansStd-SemiboldItalic.otf
      mimetype        : application/x-truetype-font
    Stream #0:10: Attachment: ttf
    Metadata:
      filename        : ariblk.ttf
      mimetype        : application/x-truetype-font
    Stream #0:11: Attachment: ttf
    Metadata:
      filename        : AurulentSans-Regular.otf
      mimetype        : application/x-truetype-font
Output #0, matroska, to 'test.mka':
  Metadata:
    creation_time   : 2012-05-27 14:11:31
    encoder         : Lavf54.6.101
    Chapter #0.0: start 0.000000, end 84.042000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 84.084000, end 174.132000
    Metadata:
      title           : Opening
    Chapter #0.2: start 174.174000, end 600.000000
    Metadata:
      title           : Part A
    Stream #0:0(jpn): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s (default)
    Metadata:
      title           : 2.0 FLAC
Stream mapping:
  Stream #0:1 -> #0:0 (flac -> libfaac)
Press [q] to stop, [?] for help
size=   16963kB time=00:10:00.06 bitrate= 231.6kbits/s
video:0kB audio:16768kB global headers:0kB muxing overhead 1.163716%


More information about the ffmpeg-user mailing list