[MEncoder-users] Invalid fourcc (tag) in x264 in newer versions

Renato Rodrigues renato.sp at gmail.com
Thu Mar 3 05:15:39 CET 2011


Thanks for your reply.

Maybe there is a problem with the rest of my line, but if I don't add the
-ffourcc option the video doesn't play in any player.

About the bframes, i copied it from somewhere, but I will remove it then.

[]'s
Renato


On Wed, Mar 2, 2011 at 11:27 PM, James Hastings-Trew <jimht at shaw.ca> wrote:

> On 11-03-02 7:28 PM, Renato Rodrigues wrote:
>
>> Hi guys
>>
>> I built my own mencoder frontend some years ago to encode videos for my
>> gadgets (PSP, iPhone, etc) . This worked great but the mencoder version
>> was
>> a bit old (for example no libass) so I decided to update to a newer
>> version.
>> But now the line that I always used refuses to work. The error is [mp4 @
>> 00fdb898]Tag H264/0x34363248 incompatible with output codec id '28'
>>
>> I saw somewhere that it is due to the new strict verifications in FFmpeg
>> but
>> I can't find how to skip this verification in mencoder or wich -ffourcc
>> option I need to use in order it to work.
>>
>> I tried -ffourcc h264, x264, avc1, mp4v and none of them worked.
>>
>> This is the line I'm using:
>>
>> mencoder -of lavf -lavfopts format=mp4 -sws 9 -srate 48000 -channels 2
>> -vf-add scale=480:272,harddup -oac faac -faacopts
>> br=96:mpeg=4:object=2:raw
>> -ovc x264 -ffourcc H264 -x264encopts
>>
>> crf=22:level_idc=30:bframes=3:frameref=2:global_header:partitions=all:threads=auto
>> -subfont-text-scale 3.5 -subpos 96 -subcp ISO8859-1 -sub
>> "Fringe.S03E15.HDTV.XviD-LOL.srt" "Fringe.S03E15.HDTV.XviD-LOL.avi" -o
>> "Fringe.S03E15.HDTV.XviD-LOL_pspwide.mp4"
>>
>> and this is the mencoder version
>>
>> MEncoder Sherpya-SVN-r32848-4.2.5
>>
>> Forgive me if this is a newbie question, but I swear, I searched
>> everywhere
>> before posting here.
>>
>> Thanks in advance
>>
>> Renato Rodrigues, Brazil
>>
> I could be wrong but I am pretty sure ffourcc is an option for .avi files.
>
> Also, lose the bframes - they won't work in a lavf muxer.
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>


More information about the MEncoder-users mailing list