[FFmpeg-cvslog] FAQ: add an entry for common error when using -profile

Anton Khirnov git at videolan.org
Mon Dec 26 04:14:00 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Dec 25 13:48:06 2011 +0100| [2bbb472016f52c5e282c83a988a5179f1079557a] | committer: Anton Khirnov

FAQ: add an entry for common error when using -profile

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2bbb472016f52c5e282c83a988a5179f1079557a
---

 doc/faq.texi |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/doc/faq.texi b/doc/faq.texi
index f3ddbbe..8044200 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -266,6 +266,26 @@ avconv -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -i all.a \
 rm temp[12].[av] all.[av]
 @end example
 
+ at section -profile option fails when encoding H.264 video with AAC audio
+
+ at command{avconv} prints an error like
+
+ at example
+Undefined constant or missing '(' in 'baseline'
+Unable to parse option value "baseline"
+Error setting option profile to value baseline.
+ at end example
+
+Short answer: write @option{-profile:v} instead of @option{-profile}.
+
+Long answer: this happens because the @option{-profile} option can apply to both
+video and audio.  Specifically the AAC encoder also defines some profiles, none
+of which are named @var{baseline}.
+
+The solution is to apply the @option{-profile} option to the video stream only
+by using @url{http://libav.org/avconv.html#Stream-specifiers-1, Stream specifiers}.
+Appending @code{:v} to it will do exactly that.
+
 @chapter Development
 
 @section Are there examples illustrating how to use the Libav libraries, particularly libavcodec and libavformat?



More information about the ffmpeg-cvslog mailing list