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 2007, 23:51 | #1 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
opening an .MP4 in Avisynth ?
Hi looking for suggestions or a link for opening an .MP4 file in avisynth ...
Saw neuron2's thread "AVC/H.264 Avisynth source filter released" http://forum.doom9.org/showthread.php?t=122598&page=4 however its closed for some patching (really looking forward to it). Wonder if this'd work - 1. demux using AVIdemux2 http://avidemux.sourceforge.net/ (can it demux .MP4 I wonder?) 2. mux into an AVI using avc2avi http://forum.doom9.org/showthread.ph...495#post610495 3. use AVISource in Avisynth on the .avi from step 2 (have xvid and ffdshow installed, so one of these codecs should pick it up ?) ... cleanup in avisynth and feed into HC 4. use ffmpeggiu http://www.videohelp.com/tools?tool=ffmpegGUI to convert the audio from step 1 into .mp2 or something together with the .mpv file from step 3, as input to a DVD authoring tool. Also, wondering does .MP4 have a framerate and if so how do I tell what it is ? AVIcodec doesn't seem to tell me about .MP4's. Do you reckon I'll have audio sync issues with the above approach ? You may have suggestions which work better (ps not really wanting to install haali). |
3rd March 2007, 00:10 | #3 | Link |
insane college undergrad
Join Date: Jun 2006
Location: middle of nowhere
Posts: 405
|
I think MP4, like MKV, supports variable framerate. I'm also very much looking forward to neuron2's AVC filter. In the meantime, though, why not just install Haali Media Splitter and use DirectShowSource()?
|
3rd March 2007, 00:20 | #5 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
OK DirectshowSource seems like the go, since I have xvid and ffdshow...
does DirectshowSource depend on haali ? Not really wanting to install it - happy to demux the .mp4 first if I have to, assuming the demuxed video ES will go into DirectShowSource. Also, sort of a gspot/avicoded tool type of question, how could I find out the .MP4's framerate and other info, since I'll need it for "with fps and convertfps=true" ... "MP4, like MKV, supports variable framerate" doesn't sound promising... Last edited by halsboss; 3rd March 2007 at 00:26. |
3rd March 2007, 00:39 | #6 | Link |
insane college undergrad
Join Date: Jun 2006
Location: middle of nowhere
Posts: 405
|
You'll need an MP4 splitter on your PC for DirectShowSource to be able to play. My desktop PC was able to do it without my needing to install Haali Splitter but I think it might be either Nero or QuickTime which provided the splitter. Try creating a script with
Code:
DirectShowSource("file.mp4") The latest version of GSpot supports MP4, I believe. There's also MediaInfo. You can extract the video as AVI using mp4box but AVI doesn't really play nice with variable frame rate that's why it's better to use DirectShowSource in this instance. |
3rd March 2007, 00:48 | #7 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Ah. ilovejedd, that makes it a bit clearer. I have a new full Nero7 so I hope that'll do the splitting... will give the script a try, and download gspot too. Pity avi and vfr don't mix. Oh well. Roll on, neuron2's AVC filter...
Any reason I should prefer either of Gspot or MediaInfo (eg no "phone-home" or some such... mediainfo appears to be a Sourceforge project which could be "safer" maybe) ? Last edited by halsboss; 3rd March 2007 at 00:52. |
3rd March 2007, 01:21 | #8 | Link |
insane college undergrad
Join Date: Jun 2006
Location: middle of nowhere
Posts: 405
|
I use both but I use MediaInfo more frequently purely because there's a command line version. No spyware or adware in either. Although, GSpot seems to be more accurate and fault tolerant. I've had several files that were reported incorrectly with MediaInfo that GSpot handled correctly.
|
3rd March 2007, 05:17 | #9 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Oh Dear. This
Code:
DirectShowSource("D:\DVD\file.mp4",fps=25,convertfps=true) converttoyv12() Code:
Directshowsource. Could not open as video or audio. Last edited by halsboss; 3rd March 2007 at 09:26. |
3rd March 2007, 09:33 | #11 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Confirmed. This
Code:
DirectShowSource("D:\DVD\file.mp4",fps=25,convertfps=true) converttoyv12() 1. HC which shows the Avisynth error message Code:
Directshowsource. Could not open as video or audio. Code:
Avisynth open failure DirectShowSource: Could not open as video or audio. Video returned: "DirectShowSource: couldn't open file D:\DVD\file.mp4: Cannot play back the file. The format is not supported." Audio returned: "DirectShowSource: the filter graph manager won't talk to me" Last edited by halsboss; 3rd March 2007 at 09:36. |
23rd March 2007, 17:17 | #13 | Link |
Registered User
Join Date: Oct 2004
Posts: 60
|
hi,
you've given me the key to get right framerate with variable framerate! fps=25,convertfps=true that's it! by the way, can you explain an avisynth newbie the need for: converttoyv12() even when virtualdub will output 24bit RGB? my post covers 3gp > xvid conversion. you might find something useful there: http://forum.doom9.org/showthread.ph...818#post973818 greetings, |
23rd March 2007, 20:35 | #14 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
The only reason for it is if you're opening it directly into a command-line codec, or want to feed it from virtualdub with fast recompress. Vdub can read just about any colorspace format.
|
9th May 2007, 07:31 | #16 | Link | |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Quote:
Oh, fyi, Firefox printing of http://gpac.sourceforge.net/doc_mp4box.php is problematic per http://forums.mozillazine.org/viewtopic.php?p=2876382 ... Regards |
|
25th February 2008, 13:05 | #17 | Link | |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Hi, any new news on "opening an .mp4 in avisynth" front ?
eg, not knowing much about DGAVCDec ... would that do it ? I note its help file says Quote:
Last edited by halsboss; 25th February 2008 at 13:09. |
|
25th February 2008, 13:36 | #18 | Link | ||
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Ah, found this wiki entry http://avisynth.org/mediawiki/FAQ_lo...to_AviSynth.3F which says
Quote:
Quote:
Last edited by halsboss; 25th February 2008 at 13:49. |
||
26th February 2008, 10:20 | #20 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Thankyou. This link http://forum.videohelp.com/topic346811.html#1818343 provides some pictorial detail on how to demux including program version info...
However also note the post underneath it which indicates an error message and what versions did download and work with the newer .mp4 AVC input file. |
|
|