[FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working?

Orlando Rivera oriv at timeview.com
Wed Feb 20 21:13:18 CET 2013


I left out output once I quit -

ffmpeg -f flv -i rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX -f flv -strict -2 -acodec aac -ar 32000 -vcodec h264 rtmp://ec2-50xxxxx/iosstream1361390373734.sdp
ffmpeg version 1.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 20 2013 23:17:33 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --disable-ffserver --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[flv @ 0x102006a00] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt
[libx264 @ 0x1020b0800] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x1020b0800] profile High, level 4.2
[libx264 @ 0x1020b0800] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://ec2-50xxxxxx/iosstream1361390373734.sdp':
  Metadata:
    encoder         : Lavf54.59.106
    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240, q=-1--1, 1k tbn, 1k tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 32000 Hz, mono, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (flv -> libx264)
  Stream #0:1 -> #0:1 (nellymoser -> aac)
Press [q] to stop, [?] for help
Failed to update header with correct duration.e=00:04:40.38 bitrate= 203.2kbits/s    
[flv @ 0x1020a5400] Failed to update header with correct filesize.
frame= 4128 fps= 15 q=32766.0 Lsize=    7037kB time=00:04:40.67 bitrate= 205.4kbits/s    
video:3050kB audio:3761kB subtitle:0 global headers:0kB muxing overhead 3.327457%
[libx264 @ 0x1020b0800] frame I:17    Avg QP:15.57  size:  7475
[libx264 @ 0x1020b0800] frame P:1101  Avg QP:19.03  size:  1992
[libx264 @ 0x1020b0800] frame B:3010  Avg QP:24.64  size:   267
[libx264 @ 0x1020b0800] consecutive B-frames:  2.1%  1.2%  2.3% 94.4%
[libx264 @ 0x1020b0800] mb I  I16..4: 16.6% 79.1%  4.2%
[libx264 @ 0x1020b0800] mb P  I16..4:  1.5% 11.7%  0.8%  P16..4: 29.6% 16.1% 21.0%  0.0%  0.0%    skip:19.3%
[libx264 @ 0x1020b0800] mb B  I16..4:  0.3%  1.7%  0.0%  B16..8: 34.7%  3.7%  0.8%  direct: 1.2%  skip:57.6%  L0:36.0% L1:60.2% BI: 3.8%
[libx264 @ 0x1020b0800] 8x8 transform intra:83.6% inter:89.9%
[libx264 @ 0x1020b0800] coded y,uvDC,uvAC intra: 70.4% 56.2% 3.8% inter: 10.8% 9.1% 0.5%
[libx264 @ 0x1020b0800] i16 v,h,dc,p: 13% 66% 19%  2%
[libx264 @ 0x1020b0800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 50%  3%  1%  2%  1%  2%  4%
[libx264 @ 0x1020b0800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 39% 12%  3%  3%  3%  2%  2%  2%
[libx264 @ 0x1020b0800] i8c dc,h,v,p: 44% 28% 25%  3%
[libx264 @ 0x1020b0800] Weighted P-Frames: Y:8.1% UV:0.2%
[libx264 @ 0x1020b0800] ref P L0: 53.0% 10.6% 13.8% 21.7%  0.9%
[libx264 @ 0x1020b0800] ref B L0: 69.1% 20.7% 10.1%
[libx264 @ 0x1020b0800] ref B L1: 76.7% 23.3%
[libx264 @ 0x1020b0800] kb/s:89.01

On Feb 20, 2013, at 2:55 PM, bat guano <batguano999 at hotmail.com> wrote:

> 
> 
> 
> ----------------------------------------
>  My used combination LC-AAC 2ch 48000 1,2,3,4,5
>> is also in the table. After the transcoding the result is flagged as 'CBR',
>> in stead of VBR...
> 
> Hi
> Maybe that's a problem with how FFmpeg uses fdk_aac.
> 
> 
> @ubuntu:~$ fdkaac -m 3 -o test1.m4a foo.wav
> [100%] 00:30.071/00:30.071 (6x), ETA 00:00.000   
> 1443389/1443389 samples processed in 00:04.709
> 
> @ubuntu:~$ mediainfo test1.m4a
> General
> Complete name                            : test1.m4a
> Format                                   : MPEG-4
> Format profile                           : Apple audio with iTunes info
> Codec ID                                 : M4A 
> File size                                : 562 KiB
> Duration                                 : 30s 123ms
> Overall bit rate mode                    : Variable
> Overall bit rate                         : 153 Kbps
> Encoded date                             : UTC 2013-02-20 19:49:47
> Tagged date                              : UTC 2013-02-20 19:49:47
> Writing application                      : fdkaac 0.1.5, libfdk-aac 3.3.3, VBR mode 3
> 
> Audio
> ID                                       : 1
> Format                                   : AAC
> Format/Info                              : Advanced Audio Codec
> Format profile                           : LC
> Codec ID                                 : 40
> Duration                                 : 30s 123ms
> Bit rate mode                            : Variable
> Bit rate                                 : 151 Kbps
> Maximum bit rate                         : 213 Kbps
> Channel(s)                               : 2 channels
> Channel positions                        : Front: L R
> Sampling rate                            : 48.0 KHz
> Compression mode                         : Lossy
> Stream size                              : 555 KiB (99%)
> Encoded date                             : UTC 2013-02-20 19:49:47
> Tagged date                              : UTC 2013-02-20 19:49:47
> 
> 
> @ubuntu:~$ ffmpeg -i foo.wav -c:a libfdk_aac -vbr 3 test2.m4a
> ffmpeg version git-2013-01-22-766f055 Copyright (c) 2000-2013 the FFmpeg developers
>   built on Jan 22 2013 14:16:03 with gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
>   configuration: --enable-gpl --enable-libaacplus --enable-libfaac --enable-libfdk-aac --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-x11grab
>   libavutil      52. 15.100 / 52. 15.100
>   libavcodec     54. 90.100 / 54. 90.100
>   libavformat    54. 61.102 / 54. 61.102
>   libavdevice    54.  3.102 / 54.  3.102
>   libavfilter     3. 33.100 /  3. 33.100
>   libswscale      2.  2.100 /  2.  2.100
>   libswresample   0. 17.102 /  0. 17.102
>   libpostproc    52.  2.100 / 52.  2.100
> [wav @ 0xb3c7320] max_analyze_duration 5000000 reached at 5013333 microseconds
> Guessed Channel Layout for  Input Stream #0.0 : stereo
> Input #0, wav, from 'foo.wav':
>   Metadata:
>     artist          : Jody Marie Gnant
>     copyright       : 1995 Sirius Publishing
>     title           : Lucky Night
>     encoder         : Lavf54.61.102
>   Duration: 00:00:30.07, bitrate: 1536 kb/s
>     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
> [libfdk_aac @ 0xb4be580] Note, the VBR setting is unsupported and only works with some parameter combinations
> Output #0, ipod, to 'test2.m4a':
>   Metadata:
>     artist          : Jody Marie Gnant
>     copyright       : 1995 Sirius Publishing
>     title           : Lucky Night
>     encoder         : Lavf54.61.102
>     Stream #0:0: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16
> Stream mapping:
>   Stream #0:0 -> #0:0 (pcm_s16le -> libfdk_aac)
> Press [q] to stop, [?] for help
> size=     561kB time=00:00:30.08 bitrate= 152.8kbits/s    
> video:0kB audio:555kB subtitle:0 global headers:0kB muxing overhead 1.146276%
> 
> @ubuntu:~$ mediainfo test2.m4a
> General
> Complete name                            : test2.m4a
> Format                                   : MPEG-4
> Format profile                           : Apple audio with iTunes info
> Codec ID                                 : M4A 
> File size                                : 561 KiB
> Duration                                 : 30s 114ms
> Overall bit rate mode                    : Constant
> Overall bit rate                         : 153 Kbps
> Track name                               : Lucky Night
> Performer                                : Jody Marie Gnant
> Writing application                      : Lavf54.61.102
> Copyright                                : 1995 Sirius Publishing
> 
> Audio
> ID                                       : 1
> Format                                   : AAC
> Format/Info                              : Advanced Audio Codec
> Format profile                           : LC
> Codec ID                                 : 40
> Duration                                 : 30s 114ms
> Duration_LastFrame                       : -9ms
> Bit rate mode                            : Constant
> Bit rate                                 : 151 Kbps
> Channel(s)                               : 2 channels
> Channel positions                        : Front: L R
> Sampling rate                            : 48.0 KHz
> Compression mode                         : Lossy
> Stream size                              : 555 KiB (99%)
> 
> 
> 
> 		 	   		  
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 



More information about the ffmpeg-user mailing list