H.264 : Change FourCC

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
Frisbee
Amateur
Amateur
Posts: 33
Joined: Tue Jan 27, 2009 11:17 pm

H.264 : Change FourCC

Post by Frisbee » Sat May 15, 2010 11:05 pm

Hi,
How would you encode H.264 video with fourcc 'H264'?
Or
How would you change H.264 fourcc to AVC1, H264, h264 or other valid ones while transcoding using Mediacoder?

-I think Mediacoder used to encode H.264 with H264 fourcc and currently it gives 'avc1'
-Overriding fourcc doesn't work.

A clear answer please...

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: H.264 : Change FourCC

Post by meRobs » Fri May 28, 2010 1:43 pm

It is difficult to give a clear answer in your case because of the limited info.
For example, are you aiming for an AVI container? What Video format and Encoder are you using? What build of MediaCoder?

I have a Preset that uses Video Format = Xvid, Source = MEncoder and Encoder = FFmpeg into an AVI container with fourCC set at dx50.
I just tried it in build 4640 and it works, ie, in MediaInfo the Format and Codec ID is given as 'dx50'.
(Encoder = MEncoder gives same result but takes 3x as long)

Using Settings > Overall > Video Options, I set override FoourCC to 'h264', all else as above, and I got Codec ID = h264 in MediaInfo.
I then changed the Video Format from Xvid to H264 and the resultant AVI had Codec ID = 'h264'.

I assume here that Codec ID refers to the FourCC
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: H.264 : Change FourCC

Post by meRobs » Fri May 28, 2010 3:04 pm

By the way, it is possible to change the FourCC code in an AVI by using the small Standalone App, "AVI FourCC Chnager"", a ZIP.
As a check on my assumption that the Codec ID, as read by MediaInfo, is the FourCC code, I opened the above two files.
It was!

Of course, using this App to change the code is a poor alternative to getting it right in the first place!
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

Frisbee
Amateur
Amateur
Posts: 33
Joined: Tue Jan 27, 2009 11:17 pm

Re: H.264 : Change FourCC

Post by Frisbee » Fri May 28, 2010 3:38 pm

Hi,

I had been trying it on MP4, 3GP, MOV etc and didn't get it right.

I hadn't tried AVI, having read here

http://en.wikipedia.org/wiki/Comparison ... er_formats

that H.264 may be problematic in AVI and haven't really tried to get that combination working.

Can we do it in MP4 or 3GP?

I couldn't get the command line options for x264 encoder

Sorry for incomplete information earlier

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: H.264 : Change FourCC

Post by meRobs » Fri May 28, 2010 4:07 pm

I wasn't suggesting that H264 in AVI is a good combo.
I chose this because it was convenient and to test whether MediaCoder could feed the 'h264' fourCC code to a file.
Also, AVI is the most common use for FourCC.

Suggest you experiment. I have never tried to feed FourCC to MP4 or 3GP, etc.
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

Frisbee
Amateur
Amateur
Posts: 33
Joined: Tue Jan 27, 2009 11:17 pm

Re: H.264 : Change FourCC

Post by Frisbee » Fri May 28, 2010 4:32 pm

Hi,
I had your idea clear.
I think Override fourCC currently doesn't work with MP4 or 3GP.
I think I'll learn more about FourCC's and their significance and control in various containers. Looks like AVI allows nice control over FourCC's.
I shall experiment more or else let us look out for it in future.
Thanks for your replies
Best wishes

Post Reply