[MEncoder-users] trouble creating a mp4 file

Alex Samad alex at samad.com.au
Tue Jan 22 10:01:18 CET 2008


On Tue, Jan 22, 2008 at 09:43:07AM +0100, Grozdan Nikolov (openSUSE Linux) wrote:
> On Tuesday 22 January 2008 09:14, Alex Samad wrote:
> > Hi
> >
> > I am trying to encode some mpeg src files (from a panasonic video camera)
> >
[snip]
> >
> >
> > ID_DEMUXER=avi worries me ?
> 
> of course it will. you are just changing the file extension of the output file 
> to mp4 but mencoder still outputs to avi. You either have to use the lavf 
> muxer with mencoder (but forget about using B-Frames with it as it is broken)
> 
> -of lavf -lavfopts format=mp4
> 
> or you can just encode it to avi and after that use MP4Box to remux this avi 
> to the mp4 container, eg
so I can change the output to .avi
> 
> MP4Box -aviraw video file.avi
> MP4Box -aviraw audio file.avi
these 2 commands will extract the video and the audio files

> 
> mv *audio.raw audio.aac
filename change
> 
> MP4Box -add file.h264 -add audio.aac -fps 25 output.mp4 
I am presuming ext is important here


Thanks I will give this a go, I have to track down MP4Box (for debian)

> 
> >
> > Also I can't hear any audio when played on a windows box, with media player
> > or vlc - I have the ffdshow codecs install
> 
> this is probably because you are using AAC Main profile. Try using LC-AAC with 
> object=2 in oyur audio settings, eg
> 
> -oac faac -faacopts quality=300:object=2:mpeg=4:tns
> 
> >
> > I remember reading (here I think) that aac + H264 in avi can have problems
> > in audio such that only mplayer can play it.  And mplayer plays the output
> > okay.
> >
> > I can work around by using mp3, but I thought I would ask the list first
> >
> > I will see if I can find a newer version of mencoder as well
> >
> > Thanks
> >
> > Alex
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> 

-- 
Yes, we will be going to OSI, Mars, and Pluto, but not necessarily in
that order.
		-- George Michaelson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20080122/4bbb5860/attachment.pgp>


More information about the MEncoder-users mailing list