On Wed, Jul 20, 2011 at 1:56 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Jul 19, 2011 at 09:49:48AM +0200, Erik Slagter wrote:
>> On 19-07-11 00:27, Rodney Baker wrote:
>>> On Tue, 19 Jul 2011 02:15:04 Erik Slagter wrote:
>>>> There is something very fishy:
>>>>>>>> This triggers the error:
>>>>>>>> /home/erik/src/ffmpeg/ffmpeg -y -probesize 500000000 -threads 16 -i
>>>> 00033.avi -vsync 0 -async 0 -profile high -vcodec libx264 -strict
>>>> experimental -acodec aac -ac 2 -ar 48000 -ab 192k -f mpegts 00033_tmp.ts
>>>>>>>> when I move -profile high to the start like this:
>>>>>>>> /home/erik/src/ffmpeg/ffmpeg -profile high -y -probesize 500000000 -threads
>>>> 16 -i 00033.avi -vsync 0 -async 0 -vcodec libx264 -strict experimental
>>>> -acodec aac -ac 2 -ar 48000 -ab 192k -f mpegts 00033_tmp.ts
>>>>>>>> there is no error.
>>>>>> This probably belongs on the ffmpeg-user mailing list,
>>>> I agree, but this looks like a bug and I am trying to fix it, or at least
>> pinpoint the patch that caused it.
>>>>> but have you tried
>>> putting -profile after -vcodec libx264? The order of command-line options in
>>> ffmpeg is important.
>>>> I know I know. The interesting part is
>>>> - the command line I'm using used to work a few weeks ago
>> - this error message is completely bogus
>>>> Also interesting is that git bisect can't locate the offending patch,
>> I guess that has something to do with the large imports from "qatar".
>>>> Still, my question remains, can anyone try this with a current version
>> of ffmpeg (x86_64), so I know if it's something I borked, although I
>> have an almost clean tree (a few totally unrelated patches, they've been
>> the same for months).
>> I can confirm the issue.
> -vprofile high seems to work.
>> with -profile, one could argue it affects audio too and i think thats
> where it fails.
> but i did not investigate this at all ...
I just happened to run into this too while encoding for Blu-ray and
for web. It does fail, but only when including audio as you mentioned.
My Blu-ray script runs fine because it only generates a video file,
but my web script fails because it includes a separate audio file on
the ffmpeg command line. I get the following error:
[NULL @ 0x101801800] [Eval @ 0x7fff5fbfe140] Undefined constant or
missing '(' in 'baseline'
[NULL @ 0x101801800] Unable to parse option value "baseline"
[NULL @ 0x101801800] Error setting option profile to value baseline.
This is on Mac OS X/darwin x86_64.