[FFmpeg-cvslog] libfdk-aac: Warn the user that the VBR modes are unsupported
Martin Storsjö
git at videolan.org
Wed Sep 26 13:52:01 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 25 08:31:44 2012 +0300| [a10190dcd8e4f357119676510bd182699b61cf36] | committer: Martin Storsjö
libfdk-aac: Warn the user that the VBR modes are unsupported
These modes were not originally exposed by the library at all.
In practice, only a few of them work for each sample rate/profile
combination, and they don't work at all for the more uncommon
sample rates.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a10190dcd8e4f357119676510bd182699b61cf36
---
libavcodec/libfdk-aacenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index 289c7ac..362a17c 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -180,6 +180,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
"VBR quality %d out of range, should be 1-5\n", mode);
mode = av_clip(mode, 1, 5);
}
+ av_log(avctx, AV_LOG_WARNING,
+ "Note, the VBR setting is unsupported and only works with "
+ "some parameter combinations\n");
if ((err = aacEncoder_SetParam(s->handle, AACENC_BITRATEMODE,
mode)) != AACENC_OK) {
av_log(avctx, AV_LOG_ERROR, "Unable to set the VBR bitrate mode %d: %s\n",
More information about the ffmpeg-cvslog
mailing list