[MEncoder-users] avi h264 to mp4 (without transcoding)

Phil Sturges Pssturges at gmail.com
Mon Jul 25 04:31:24 CEST 2011


Andrew Berg <bahamutzero8825 <at> gmail.com> writes:

> 
> On 2011.07.24 07:46 PM, Phil Sturges wrote:
> > Andrew Berg <bahamutzero8825 <at> gmail.com> 
> >> I doubt you need to demux the audio before converting it. You can put
> >> the audio in a container during the conversion too.
> > According to the mp4box documentation direct importing of h264 in avi
> > containers is not supported. That has been my experience also.  Is your
> > suggestion here to create a file video.m4a instead of video.aac?
> The video needs to be demuxed to a raw stream, but the audio doesn't.
> You can feed the AVI to FFmpeg and have it output AAC to an MP4
> container (video.m4a).
> 
> > This works great for my purposes, so
> > whether or not or how it is supported doesn't matter too much to me as
> >  long as I can get to work, and at this stage it "works", 
> > just having audio sync issues.
> I suppose if it works, it's not really an issue. I find it surprising
> that a hardware player supports it, though.
> 

So if I understand correctly, your suggesting something like:
1) demux h264 from avi with mp4box
2) use ffmpeg to encode ac3 to aac and put it into m4a
3) use mp4box to mux
    -h264 demuxed from avi
    -aac from created m4a
    -ac3 directly from avi
Does all that seem feasible?
Thanks again
Phil




More information about the MEncoder-users mailing list