Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd March 2005, 20:48 | #1 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
AVC in AVI vs. Mp4 wrapper?
I used Nero Recode for the first time recently for AVC compression, which of course output an Mp4 file.
I decided to give the open-source x264 codec a shot, so I installed and created a short sample file using the same procedures I use to create XviDs (i.e. I did it with VirtualDub). VirtualDub of course puts out an AVI file. I can't play back my file, basically. I've installed ffdshow, but I think I read somewhere in the forum about an installer flaw that doesn't register the codec. Regardless, my question is: do AVC files have to be in an MP4 file ... or can they be in an AVI? -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
2nd March 2005, 20:52 | #2 | Link | |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
Quote:
eg .avi cant handle arbitrary coding orders of avc
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
|
2nd March 2005, 21:22 | #3 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
Ok, thanks
So now my question(s) is (are): -What do I use for a front end in order to output AVC in an MP4 wrapper? (I don't use AutoGK or other one-click tools). -I did see a tutorial that mentioned "MP4UI" for multiplexing. Can I just create the video through VirtualDub (into an AVI), and then use MP4UI to import the video from the AVI? -Can I have an AVC Mp4 without any audio? -Am I right about ffdshow not being registered? I prefer to watch everything in Media Player Classic. -Lastly, as a matter of curiosity, can Nero Showtime play back open-source x264 files? Sorry to revert to newb status .... -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
2nd March 2005, 21:32 | #4 | Link | |
Registered User
Join Date: Jun 2002
Posts: 186
|
Quote:
-If you use virtualdub and avi you have to convert the avi into a raw stream first to mux it into an MP4. -Yes you can have an AVC MP4 without audio. -In FFDSHOW you must configure it to decode h264 video streams(make sure you have the latest build first). -Yes Nero Showtime can play open-source x264 files. But you can also use mplayer or Osmo4. |
|
2nd March 2005, 21:45 | #5 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
mp4ui cant handle avc!
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
2nd March 2005, 22:41 | #6 | Link |
Registered User
Join Date: Jun 2002
Posts: 186
|
Use mp4muxer for AVC.
http://forum.doom9.org/showthread.php?s=&threadid=89803 |
3rd March 2005, 02:01 | #7 | Link | |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
Ok, so I've grabbed mp4muxer and its needed tools, but I still can't create anything playable. I'm inputting mp3 audio and an AVI file containing AVC that was output by VirtualDub. I assume the output file is this "tmpf4.mp4," but for some reason the proggie also outputs the files "dummysub.srt," "tmpf3.h264," "tmpf5.xvid," and "vdummy.mp4.," all of which appear to be basically empty or dummy files.
I can't play the file in MPC, Osmo, or Nero Showtime. ffdshow is installed, but I don't see anywhere in its config where I can set it up for mp4/AVC decoding. Here's the log from mp4muxer: Quote:
-abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
|
3rd March 2005, 10:30 | #9 | Link | |
H.264 is the Future
Join Date: Dec 2001
Location: UK
Posts: 210
|
Quote:
A simple way is to use mencoder and MeGui from Doom9 here That will output in avi for now, although mp4 support is planned I believe. Also, have you tried Gknot? The recent betas support x264. (again in avi) Your method in Virtualdub should also work just fine - it sounds like playback is the problem here. To play it back you just need a recent version of ffdshow that has been configured to decode h264. (its just an option in the properties of the decoder) then you should be ableto play it in media player classic. Alternatively have you tried a recent build of videolan for playback? Or perhaps mplayer, that will also playback x264, most likely ffplay will too. Videolan builds (and even possibly for transcoding/encoding if its fixed now.. I've not checked) Stick with it! Ivan |
|
3rd March 2005, 14:01 | #10 | Link | |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
Quote:
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose |
|
3rd March 2005, 14:25 | #11 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
3rd March 2005, 15:08 | #13 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
So is MeGui something I can use to feed in an AviSynth script, config the codec, and output in an Mp4?
I really don't like 1-clickish tools. I gave a quick look at AutoAC, but it doesn't seem to allow enough configuration. I.e., I tried a DVD of TV episodes. AutoAC just asks for the IFO file, so I pointed it to that, and it seemed to indicate it was only 43 minutes long. But that's just one of the episodes on the disc (they're all in one titleset). -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
3rd March 2005, 15:41 | #14 | Link | ||
gone
Join Date: Apr 2004
Posts: 1,706
|
Quote:
Quote:
|
||
3rd March 2005, 15:58 | #15 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
And you can have your own profiles for video and audio encoding (as many as you like.. just select input, output, load profile and you're set to go), and there's a flexible queueing system like you know it from VDub (with imho some improvements over it like a more accurate start/end time, indication of the average FPS and codec and encoding mode for each job).
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
3rd March 2005, 16:09 | #16 | Link | |
Registered User
Join Date: Jun 2002
Posts: 186
|
Quote:
|
|
4th March 2005, 02:35 | #17 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
Ok, I was able to create a short, 1-minute sample mp4 that did in fact play in MPC. Odd, though, that MPC said was it 5 min 27 sec long, when it fact it was only 1 min 10 sec long.
Anyway, that was just video. Now I guess I need a way to mux in audio, until MeGui can do that. Do I need to learn command lines for mp4creator?? -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
4th March 2005, 05:22 | #18 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
Ok, this is taking a great deal of playing around ... but anyway, I've managed to encode with x264 via MeGUI. I had to play around with the mp4creator command line, but I was able to mux audio into the file.
I'm not sure the mp4 guide here at doom9 is accurate insofar as the letter c in the command line doesn't seem to work; I had to replace it with "create" ... ala Code:
mp4creator -create=myaudio.mp3 -H -I rate=29.97 meGuiOutput.mp4 There just has to be a better reference to the command lines somewhere. There's so much else to be done. What if, for instance, I wanted to strip the audio OUT of the file, or the video, or mux in other items, etc.? ... -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
4th March 2005, 08:37 | #19 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
launching mp4creator without parameters will give you a list of what you can do And with reasonable settings (15 reference frames is NOT! reasonable.. if you look at the codec comparison ateme suggested 3 ref frames and would've fared much worse if they went for insane reference frame settings), x264's speed is quite okay on a decent box (>3GHz is decent these days It should be around real-time on my box, so 4h for a 2h movie.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
4th March 2005, 20:07 | #20 | Link |
Registered User
Join Date: Aug 2004
Location: North Carolina, USA
Posts: 270
|
Well, I'm definitely going to have to hurry along with that next upgrade, cuz my Athlon 1600 XP took about an hour to do 2 passes on a 2-and-a-half minute sample file! Whoa! I thought I'd read that AVC compression was faster. I'm sure that was in reference to the Nero product, but I've used that too and it took quite some time to encode a whole 2-hour movie. I'd say at least 50% longer than XviD.
Anyway, as a test I've ripped the trailer from the DVD of one of my favorite movies, the 'Mothman Prophecies.' It has a lot of dark colors, is progressive and anamorphic, and even has a 6-channel soundtrack. I haven't examined the output that closely yet, but the skin tones in it are definitely blue! I've reencoded the AC3 to AAC with BeLight, and now my query is: how to mux the AAC in with the video. The procedure I outlined above (with mp3) won't work as BeSweet outputs AAC in an Mp4 container, but Mp4creator won't accept mp4 as an input type. It wants an *.aac file. How can I strip the AAC out of the MP4 container? I've looked at the mp4creator command list, but I don't see anything about it. There really oughta be a better reference ... Thanks! -abs
__________________
The perfect browser is now completely free: Opera. Get it. Love it. |
|
|