VBR setting is unsupported in libfdk_aac

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

VBR setting is unsupported in libfdk_aac

Ashish Jha
Hi,

I am trying to encode audio file .wav into HE-AAC. I am able to encode, However, when trying to encode in VBR, I am getting an error stating "[libfdk_aac @ 0x29c5c00] Note, the VBR setting is unsupported and only works with some parameter combinations" and its encoding into CBR.

How can I encode into vbr for HE-AAC. I am using the below mentioned command.

ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -vbr 3 -ar 48000 output.m4a

Error I am getting is: ffmpeg -i Bera_Jaal.wav -c:a libfdk_aac -profile:a aac_he -vbr 2 Bera_vbr.m4a
ffmpeg version N-95890-gdf62505 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/home/ashish/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ashish/ffmpeg_build/include --extra-ldflags=-L/home/ashish/ffmpeg_build/lib --bindir=/home/ashish/bin --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-nonfree --enable-gpl
  libavutil      56. 36.101 / 56. 36.101
  libavcodec     58. 64.101 / 58. 64.101
  libavformat    58. 35.100 / 58. 35.100
  libavdevice    58.  9.101 / 58.  9.101
  libavfilter     7. 67.100 /  7. 67.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'Bera_Jaal.wav':
  Duration: 00:02:44.04, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
File 'Bera_vbr.m4a' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libfdk_aac @ 0x2345c00] Note, the VBR setting is unsupported and only works with some parameter combinations
Output #0, ipod, to 'Bera_vbr.m4a':
  Metadata:
    encoder         : Lavf58.35.100
    Stream #0:0: Audio: aac (libfdk_aac) (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, s16
    Metadata:
      encoder         : Lavc58.64.101 libfdk_aac
size=    1415kB time=00:02:44.05 bitrate=  70.7kbits/s speed=  27x
video:0kB audio:1401kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.043005%

Please help me on this.

--
Ashish
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: VBR setting is unsupported in libfdk_aac

kumowoon1025
> [libfdk_aac @ 0x29c5c00] Note, the VBR setting is unsupported and only works with some parameter combinations" and its encoding into CBR.
>
> How can I encode into vbr for HE-AAC. I am using the below mentioned command.

According to the man page:

        Currently only the aac_low profile supports VBR encoding.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: VBR setting is unsupported in libfdk_aac

Ashish Jha
for aac_low profile as well, I am getting the same error. PFB error

ffmpeg -i Bera_Jaal.wav -codec:a libfdk_aac -vbr 3 output.m4a
ffmpeg version N-95890-gdf62505 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/home/ashish/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ashish/ffmpeg_build/include --extra-ldflags=-L/home/ashish/ffmpeg_build/lib --bindir=/home/ashish/bin --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-nonfree --enable-gpl
  libavutil      56. 36.101 / 56. 36.101
  libavcodec     58. 64.101 / 58. 64.101
  libavformat    58. 35.100 / 58. 35.100
  libavdevice    58.  9.101 / 58.  9.101
  libavfilter     7. 67.100 /  7. 67.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'Bera_Jaal.wav':
  Duration: 00:02:44.04, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
File 'output.m4a' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libfdk_aac @ 0x356eb40] Note, the VBR setting is unsupported and only works with some parameter combinations
Output #0, ipod, to 'output.m4a':
  Metadata:
    encoder         : Lavf58.35.100
    Stream #0:0: Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 44100 Hz, stereo, s16
    Metadata:
      encoder         : Lavc58.64.101 libfdk_aac
size=    2169kB time=00:02:44.04 bitrate= 108.3kbits/s speed=37.6x
video:0kB audio:2141kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.327570%

________________________________
From: ffmpeg-user <[hidden email]> on behalf of Ted Park <[hidden email]>
Sent: Thursday, December 26, 2019 2:32 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] VBR setting is unsupported in libfdk_aac

> [libfdk_aac @ 0x29c5c00] Note, the VBR setting is unsupported and only works with some parameter combinations" and its encoding into CBR.
>
> How can I encode into vbr for HE-AAC. I am using the below mentioned command.

According to the man page:

        Currently only the aac_low profile supports VBR encoding.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: VBR setting is unsupported in libfdk_aac

Gyan
On 26-12-2019 03:11 pm, Ashish Jha wrote:
> for aac_low profile as well, I am getting the same error. PFB error

It's a warning, not an error. It is *always* printed when ffmpeg detects
the use of -vbr or -qscale:a / -q:a with libfdk-aac.

fdk-aac is an external encoder, so it, not ffmpeg, makes the decision on
which rate control mode to ultimately use. Unfortunately, ffmpeg can't
detect whether VBR mode was chosen, hence the warning is always printed.

However, in your 2nd command, the output does look to be VBR.

FTR, these are the target bitrates and accepted profiles for VBR as per
its value:

1:        32 kbps mono   AAC-LC + SBR + PS
2:        64 kbps stereo AAC-LC + SBR
3:        80 - 96 kbps stereo AAC-LC
4:        128 kbps stereo AAC-LC
5:        192 kbps stereo AAC-LC

VBR looks to be unsupported with HE-AAC.

Gyan

(Avoid top-posting; see https://trac.ffmpeg.org/wiki/MailingListEtiquette)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".