View Full Version : muxing into mov container
chros
2nd November 2006, 00:08
Is there any util that can do this?
I'm encoding a qt7 compatible x264 video and aac audio stream with megui and I want to mux into mov container (don't ask why ... :) )
QT7 player doesn't want import the encoded h264 stream ... (at least I couldn't manage to do that.)
Thanks
bond
2nd November 2006, 19:39
even if you dont want that we ask, but i am really interested why to use mov with avc and aac?
Hyper Shinchan
3rd November 2006, 18:21
even if you dont want that we ask, but i am really interested why to use mov with avc and aac?
Me too. Anyway you could use ffmpeg:
ffmpeg.exe -i C:\myvideo.264 -i C:\myaudio.aac -vcodec copy -acodec copy -f mov C:\mystupidmov.mov
MOV uses the same sample description of ISO base file format for AVC+AAC, I don't see reason to use it (it makes sense only if you want to use AAC 5.1 and you want to make the file playbacked by QT; QT don't support AAC 5.1 in MP4 yet).
chros
3rd November 2006, 18:27
even if you dont want that we ask, but i am really interested why to use mov with avc and aac?
:)
There's a really good community on movie-list.com (http://www.movie-list.com), they are interested in movie trailers.
I can just recommend them to anybody who are interested in this topic.
The only problem with them that they hold on to the mov container. (And don't ask why they do ! :) I don't understand either... :) )
So that's the cause of my question.
bond
3rd November 2006, 18:38
ok idiotism is indeed a reason ;)
chros
3rd November 2006, 19:01
Anyway you could use ffmpeg:
ffmpeg.exe -i C:\myvideo.264 -i C:\myaudio.aac -vcodec copy -acodec copy -f mov C:\mystupidmov.mov
Thanks!!! I didn't know that.
Unfortunately, with this command line the resulted mov wasn't playable by quicktime, and duration is correct but plays too quick with MPC's built-in mp4 splitter (so I just try to mux the video only):
- original encoded mp4 is playable in QT7 player
- video and audio stream are demuxed with yamb
- *.h264 video is qt7 compatible (created with megui's CE-Quicktime profile)
- the demuxed *.aac is playable in QT7 player, but not the mov if I mux only the audio into mov !!!
- ffmpeg.exe version: which comes with megui
ffmpeg log:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mingw32 --enable-memalign-hack --enable-gpl --enable-
a52 --enable-dts --enable-mp3lame --enable-faac --enable-amr_nb --enable-faad --
enable-amr_wb --enable-pp --enable-x264 --enable-xvid --enable-theora --enable-l
ibogg --enable-vorbis
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on May 13 2006 18:31:30, gcc: 4.1.0 [Sherpya]
Input #0, h264, from 'non-vfr_track1.h264':
Duration: N/A, bitrate: N/A
Stream #0.0, 23.98 fps(r): Video: h264, yuv420p, 640x384
Output #0, mov, to 'qt7video.mov':
Stream #0.0, 23.98 fps(c): Video: h264, yuv420p, 640x384, q=2-31
Stream mapping:
Stream #0.0 -> #0.0
frame= 1993 q=33878.8 Lsize= 6357kB time=79.7 bitrate= 653.6kbits/s
video:6323kB audio:0kB global headers:0kB muxing overhead 0.534883%
QT7 player's movie info:
format: H.264 Decoder, 640 x 384
movie fps: 23.98
data size: 286.60 KB
...
duration: 00:01:23:03
...
So QT7 doesn't recognize correctly the video data...
chros
3rd November 2006, 20:24
ok idiotism is indeed a reason ;)
:) :)
yuvi
4th November 2006, 00:21
If you have it in .mp4, try using ffmpeg to remux to .mov like
ffmpeg -i movie.mp4 -acodec copy -vcodec copy movie.mov
That's worked for me to change some .mp4 files unplayable in QuickTime to playable .mov. If that doesn't work, try seeking out a newer build of ffmpeg, since there's been some big improvements to the .mov muxer since yours was built.
bond
4th November 2006, 12:31
If you have it in .mp4, try using ffmpeg to remux to .mov like
ffmpeg -i movie.mp4 -acodec copy -vcodec copy movie.mov
That's worked for me to change some .mp4 files unplayable in QuickTime to playable .mov. If that doesn't work, try seeking out a newer build of ffmpeg, since there's been some big improvements to the .mov muxer since yours was built.yuvi: didnt you say 6ch aac mp4 files always work for you (mac os)? which ones dont?
setarip_old
4th November 2006, 18:43
@chros
Hi!
The following link MAY provide some additional insight:
http://forum.doom9.org/showthread.php?p=736404#post736404
SeeMoreDigital
4th November 2006, 19:27
QT7Pro allows you to play AVC/AAC in .MP4 files and then save them as .MOV files....
Sharktooth
4th November 2006, 20:25
... not all AVC/AAC streams though ...
SeeMoreDigital
4th November 2006, 20:26
... not all AVC/AAC streams though ...LOL... indeed ;)
yuvi
5th November 2006, 04:55
yuvi: didnt you say 6ch aac mp4 files always work for you (mac os)? which ones dont?
The only aac in mp4 that I've found not to work with Mac OS X QuickTime were those designated as MPEG-2 AAC (objectTypeIndication of 0x66 to 0x68.) In fact, I've found that QuickTime doesn't even attempt to read mp4's with track that has an objectTypeIndication that isn't 0x01, 0x02, 0x20, 0x21, or 0x40 (http://gpac.sourceforge.net/tutorial/mediatypes.htm for a listing of what those are, 0x21 is H.264) with the exception that it ignores text tracks (unless renamed to .3gp, where it will recognize a single text track.)
Hyper Shinchan
6th November 2006, 17:43
[QUOTE=bonddidnt you say 6ch aac mp4 files always work for you (mac os)?[/QUOTE]
Why they don't work with Windows (well, it works, but as 2 ch)?
chros
7th November 2006, 00:28
If you have it in .mp4, try using ffmpeg to remux to .mov like
ffmpeg -i movie.mp4 -acodec copy -vcodec copy movie.mov
I tried with ffmpeg version (2006.05.22) which come with megui (as I said), and this line is really working: the mp4 input did the trick, at least for the video data. Unfortunately the audio doesn't plays in QT7, and with MCP's built-in mov splitter the resulted mov's video is freezing. :(
I tried the above command line with 4 different versions of ffmpeg build by CelticDruid (rev 6375-6830), but they don't even muxed into mov:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'non-vfr_6ch.mp4':
Duration: 00:01:23.1, start: 0.000000, bitrate: 1005 kb/s
Stream #0.0(und): Video: h264, yuv420p, 640x384, 23.98 fps(r)
Stream #0.1(eng): Audio: aac, 48000 Hz, 5:1
Output #0, mov, to '66.mov':
Stream #0.0: Video: h264, yuv420p, 640x384, q=2-31, 23.98 fps(c)
Stream #0.1: Audio: aac, 48000 Hz, 5:1
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mov @ 00A0F544]track 1: sample duration is not set
Could not write header for output file #0 (incorrect codec parameters ?)
What does this error means?
So I have came to this conclusion:
- create the video only mov with ffmpeg rev6830 (thanks to yuvi):
ffmpeg -i movie.mp4 -vcodec copy video.mov
(With 2006.05.22 biuld when I pause the resulted mov in QT7, the picture will be out of color and some blocks appear. When I press play again within a few seconds the picture will be fine again. So ffmpeg's mov muxer creates something wrong.)
- open video.mov in quicktime
- open another player window and drag-and-drop the demuxed aac file (2ch or 6ch :) )
- in the "audio player": Edit -> Select all , then Edit -> Copy
- in the "video vindow": Edit -> Add to movie, then File -> Save As ... :)
This will create a 1 white frame at the end (I don't know why), but you can trim it with QT7pro.
So it's not the easiest process (and with no free software :( ), but it's working.
The following link MAY provide some additional insight:
http://forum.doom9.org/showthread.php?p=736404#post736404
Thanks, I will look into it ...
QT7Pro allows you to play AVC/AAC in .MP4 files and then save them as .MOV files....
How?
- for me QT7 player doesn't save the mov file (File -> Save -> Save as self contained movie)
- the File -> Export command can encode into mov, but no video pass-trough ... :(
Why they don't work with Windows (well, it works, but as 2 ch)?
2ch ???? It doesn't working for me at all.
SeeMoreDigital
7th November 2006, 13:12
How?
- for me QT7 player doesn't save the mov file (File -> Save -> Save as self contained movie)
- the File -> Export command can encode into mov, but no video pass-trough ... :(
2ch ???? It doesn't working for me at all.Play your AVC+2Ch AAC in QT7. And then: -
http://img240.imageshack.us/img240/1389/avcaacinmp4nl0.png
QT7 will re-mux it into .MOV. Like this: -
http://img240.imageshack.us/img240/9051/avc2chaacinmovfs1.png
It must be noted however, QT7 does not like: -
NeroDigital MPEG-4 AVC video streams at all (with or without B-VOPs).
x264 MPEG-4 AVC video streams, unless they've been generated using the "QuickTime profile" - with B-VOPs disabled.
MPEG-4 AVC video with 6Ch AAC in MP4
Cheers
chros
7th November 2006, 16:51
Play your AVC+2Ch AAC in QT7.
File -> Save -> Self contained movie (size: 1.79 MB)
x264 MPEG-4 AVC video streams, unless they've been generated using the "QuickTime profile" - with B-VOPs disabled.
Thanks for this detailed guide! But it wasn't necessary. :)
It doesn't working for me (as I said): at the save panel for me the size is: 21.12 KB (KB and not MB !!!), and I choosed Self contained movie. And it doesn't save any file at all ... Interesting :)
My QT7pro version is the latest: 7.1.3 on WinXP.
chros
7th November 2006, 17:21
The following link MAY provide some additional insight:
http://forum.doom9.org/showthread.php?p=736404#post736404
I have checked it, but no useful info about muxing into mov.
SeeMoreDigital
7th November 2006, 17:33
Well I've been creating .MOV's using this method (for my clients) for well over a year now, so I assure you it does work.
I can only assume the MPEG-4 AVC streams you've generated are those QT7 is not happy with (as I described in my previous post).
Check your streams.... QT7 is very fussy about what it likes. And even more fussy about what it "saves" :eek:
giandrea
8th November 2006, 01:44
yuvi: didnt you say 6ch aac mp4 files always work for you (mac os)? which ones dont?
No, QuickTime on Mac OS X won't play 6ch AAC files in MP4. (At least not on my Mac). It will only play 6ch AAC in MOV. Same behaviour as on Windows.
chros
8th November 2006, 18:12
Well I've been creating .MOV's using this method (for my clients) for well over a year now, so I assure you it does work.
Can you try this (after demuxing the video stream into mp4) ? 6ch.mp4 (http://www.megaupload.com/?d=R8MZQ33H)
It's created with one of the latest ST CE-Quicktime profile in megui .
And thanks for your effort...
SeeMoreDigital
8th November 2006, 18:45
Here you go! (http://www.mytempdir.com/1047159)
http://img479.imageshack.us/img479/1959/6chaaclcnt9.png
However, as I mentioned before, QT7 wont allow you to re-mux AVC video with 6Ch AAC audio .MP4 streams into .MOV :eek:
Hyper Shinchan
10th November 2006, 17:51
No, QuickTime on Mac OS X won't play 6ch AAC files in MP4. (At least not on my Mac). It will only play 6ch AAC in MOV. Same behaviour as on Windows.
Ah, as I thought! However QT7 is really impressive with 5.1 contents if you use VBR encoding, I think that it compress very well the LFE coz it give bitrate that are a lot smaller than the CBR equivalent.
bond
10th November 2006, 23:00
apple's aac encoder was always one of the best
SeeMoreDigital
10th November 2006, 23:08
apple's aac encoder was always one of the bestIndeed...
Pretty good at generating 2Ch AAC-LC encodings but could do better at generating 6Ch AAC-LC encodes
Kurtnoise
11th November 2006, 09:51
Pretty good at generating 2Ch AAC-LC encodings but could do better at generating 6Ch AAC-LC encodes
:confused:
Hyper Shinchan
11th November 2006, 10:08
Indeed...
Pretty good at generating 2Ch AAC-LC encodings but could do better at generating 6Ch AAC-LC encodes
Why? I love it, I generate each time that I make a back-up a 4 GB wav (5.1) to encode it with QT7.
EDIT: the stupid thing is that we have to manually reorder the file... why it doesn't assume a 6 channels wav order?
giandrea
12th November 2006, 13:44
Why? I love it, I generate each time that I make a back-up a 4 GB wav (5.1) to encode it with QT7.
EDIT: the stupid thing is that we have to manually reorder the file... why it doesn't assume a 6 channels wav order?
If you have a Mac you can install the A52 component (http://trac.cod3r.com/a52codec/) for QuickTime, and you will be able to open .ac3 files in QuickTime. They will be recognized as 5:1 and you will be able to export them as AAC 5:1 (in Mov). I suggest VBR AAC, 52-55 kbps per channel.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.