PDA

View Full Version : x264 and Quicktime 7 (how to mux?)


plonk420
29th May 2005, 21:42
how does one mux an x264 encode (CLI-output mp4) to an MP4 file Quicktime 7 will accept? (has anyone even done it successfully?) i'm having difficulties and Search didn't pull up anything useful...

the main program i tried was MP4box. i'm trying to avoid Ateme's MP4Muxer but now that i think about it (as i type this) that's the only way i've ever muxed an AVC MP4, i think.

bond
30th May 2005, 02:25
there shouldnt be any problem with playing main profile avc encodes in .mp4 in quicktime (like produced by nero, x264cli, mp4box or mp4creator)

what problem do you have exactly?

plonk420
30th May 2005, 02:57
Originally posted by bond
there shouldnt be any problem with playing main profile avc encodes in .mp4 in quicktime (like produced by nero, x264cli, mp4box or mp4creator)

what problem do you have exactly?

quicktime says something to the effect that there's some info it can't read in the file. i just used a simple -merge file-audio.mp4 file-video.mp4 -output (or something) file-output.mp4.

i looked at the header in a hex editor and even tried changing whatever was different in them to avc1. no go. now that i think about it, all i had to look at were the nero high profile files but they shouldn't vary TOO terribly much in the way of a standard h264-in-mp4 header...

bond
30th May 2005, 22:08
well quicktime doesnt support high profile, therefore its understandable that you can play/open these files

and not there is no way you can change the headers or anything like that so you can make it playable in qt

Stacey Melissa
30th May 2005, 22:18
I've been able to play back almost all my short x264 test clips in Quicktime when muxing raw .264 to .mp4 in mp4box, no matter the encoding params used. However, I have yet to get a full length x264 movie to play back in QT7. It plays the sound, but just shows a white screen instead of video. It's rather aggravating.

SeeMoreDigital
30th May 2005, 23:04
For those of you with QuickTime 7, can you tell me whether it's possible to use it to re-mux .MP4 files to .MOV files... like you can with QuickTime 6: -

http://img200.echo.cx/img200/6941/qt6muxes9iw.png

And can you do it with Mpeg4 AVC muxes too?


Cheers

plonk420
1st June 2005, 20:50
well quicktime doesnt support high profile, therefore its understandable that you can play/open these files

and not there is no way you can change the headers or anything like that so you can make it playable in qt

i was just using the standard profile, i'm ASSuming that's what x264 uses...?


there shouldnt be any problem with playing main profile avc encodes in .mp4 in quicktime (like produced by nero, x264cli, mp4box or mp4creator)

what problem do you have exactly?

the QT7 error is "Movie contains invalid data (-2010)"

when i play what is the video-only mp4 x264 outputs, i get a videoless window. and obviously no audio.

bond
1st June 2005, 21:37
hm no idea, can you test more precisely if there are any options that cause this reaction of qt7?

plonk420
2nd June 2005, 21:07
hm no idea, can you test more precisely if there are any options that cause this reaction of qt7?

what do you mean? i was using x264 build 239, no options other than doing first pass, followed by second pass. muxed with -merge using mp4box

bond
2nd June 2005, 21:39
what do you mean? i was using x264 build 239, no options other than doing first pass, followed by second pass. muxed with -merge using mp4box
-merge was only available in old mp4box versions, make sure to get a recent compile from celtic_druid

plonk420
3rd June 2005, 01:43
For those of you with QuickTime 7, can you tell me whether it's possible to use it to re-mux .MP4 files to .MOV files... like you can with QuickTime 6: -

And can you do it with Mpeg4 AVC muxes too?


Cheers

yes you can... you just Save As / Save As self contained movie. as for MP4, you export to mp4 with Pass Thru setting for Video and Audio.

http://img172.echo.cx/img172/742/h264mux2zj.th.png (http://img172.echo.cx/my.php?image=h264mux2zj.png)

edit: hrm, i'll figure out this imageshack thing sometime... >_>

plonk420
3rd June 2005, 01:55
-merge was only available in old mp4box versions, make sure to get a recent compile from celtic_druid

i am using the latest version i can find... 0.2.4 DEV from rarewares.

the way i finally got it to work (but not something i want to have to do in the future) was use MP4Creator to convert the x264cli-output .264 file to .mp4, open the mp4 audio and video file in QT7 and copy/paste the audio from the mp4 into the video file and export as MP4.

but, like i said, i do NOT want to have to do this in the future.

it looks like the step that messes it all up is the mp4box -merge (which has worked in the past for xvid-to-mp4 muxes). it seems to see the video as 0x0 pixels.

what programs and what command line switch sets do you all use to mux to AVC-in-MP4?


edit: just used mp4box -add video.264#video -add audio.mp4#audio output.mp4 and it still saw the video as 0x0 pixels. i even tried the mp4 x264cli output. problem #2 that popped up was that mp4box saw the mp4 audio file as being 1 frame long...

Stacey Melissa
3rd June 2005, 03:39
celtic_druid has much newer builds (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)

plonk420
3rd June 2005, 21:44
celtic_druid has much newer builds (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)

ah, so there's where it's kept :D