[MEncoder-users] Encoded file doesn't sync with iPhone

Christian Ebert blacktrash at gmx.net
Mon Mar 15 15:34:20 CET 2010


* Jörgen Isaksson on Monday, March 15, 2010 at 15:16:33 +0100
> On 15 mar 2010, at 12.46, Grozdan wrote:
>> Encode as usual to an AVI with mencoder (make sure you add -vf harddup to
                         ^^^
>> your video filters chain)
>> 
>> After done, use MP4Box to dump the video and audio, then mux it together
>> 
>> MP4Box -aviraw video file.avi
>> MP4Box -aviraw audio file.avi
>> 
>> if your audio is AAC, you have to rename the dumped MP4Box audio file to
>> have the .aac extension or else, MP4Box won't accept files with the .raw
>> extension. Then, mux it together like this
>> 
>> MP4Box -fps <fps-of-video> -add video.h264 -add audio.aac -ipod -mpeg4 -new
>> output.mp4
> 
> I'm sorry, but I still can't get it to work???

You're still using the lavf muxer (-of lavf) which is broken. As
Grozdan stated, you have to go the avi route.

> It just doesn't sync with the iPhone.
> 
> This is what I tried. First I encode the video to mp4 like this. The avi suggestion didn't work.
> 
> mencoder movie.mov -o output.mp4 -vf scale=480:-10,harddup -lavfopts format=mp4 -faacopts mpeg=4:object=2:raw:br=128 -oac faac -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:global_header:threads=auto:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:bitrate=500 -of lavf

mencoder -of avi -o output.avi ...

And then the MP4Box commands Grozdan gave you.

c
-- 
theatre - books - texts - movies
Black Trash Productions at home: <http://www.blacktrash.org/>
Black Trash Productions on Facebook:
<http://www.facebook.com/pages/Black-Trash-Productions/277569157339>


More information about the MEncoder-users mailing list