View Full Version : How to use a Nero mp4 video file with avisynth?
digidragon
22nd December 2004, 14:50
I have an mp4 video which plays fine with WMP, MPC, etc. but I cannot open it with avisynth using either AVISource or DirectShowSource. I get "directshowsource: unable to determine the duration of the video/audio".
Any ideas please?
Manao
22nd December 2004, 18:57
You can't. You'll need to wait for a new version of Recode, or for another parser / decoder able to read the mp4 produced by Recode.
Wilbert
22nd December 2004, 20:23
Can you play it with dshow filters in graphedit? If that's the case you can save the graph (grf) and open this with DirectShowSource in AviSynth.
digidragon
22nd December 2004, 20:44
Thanks for the suggestion, but although graphedit will display the video, avisynth complains that "The Filter Graph won't talk to me".
bond
22nd December 2004, 22:22
:search:
http://forum.doom9.org/showthread.php?s=&threadid=86689
Wilbert
22nd December 2004, 22:40
Thanks for the suggestion, but although graphedit will display the video, avisynth complains that "The Filter Graph won't talk to me".
1) Remove the video renderer and try again.
2) Instead, add one of those overlay mixers (no. 2 I think) and try again.
digidragon
23rd December 2004, 00:44
Originally posted by Wilbert
1) Remove the video renderer and try again.
2) Instead, add one of those overlay mixers (no. 2 I think) and try again.
I have no overlay mixers listed that I can see. There are only two VMR renderers. And neither of those will talk to avisynth.
Leak
23rd December 2004, 08:32
Originally posted by digidragon
I have no overlay mixers listed that I can see. There are only two VMR renderers. And neither of those will talk to avisynth.
Remove the VMR renderers from the graph so there will be open pins left for AviSynth to connect to...
digidragon
23rd December 2004, 10:31
Originally posted by Leak
Remove the VMR renderers from the graph so there will be open pins left for AviSynth to connect to...
Thanks for the suggestion, but I removed the video renderer from the graph, but I still get an error in avisynth.
This is the screenshot (http://img.photobucket.com/albums/v258/digidragon/nero_graph.png) of graphedit, and this is the error (http://img.photobucket.com/albums/v258/digidragon/mpc_error.png) when trying to open the avs script in media player classic.
Leak
24th December 2004, 09:23
Originally posted by digidragon
Thanks for the suggestion, but I removed the video renderer from the graph, but I still get an error in avisynth.
This is the screenshot (http://img.photobucket.com/albums/v258/digidragon/nero_graph.png) of graphedit, and this is the error (http://img.photobucket.com/albums/v258/digidragon/mpc_error.png) when trying to open the avs script in media player classic.
Well, throw out the "Default DirectSound Device" as well to solve the audio problem, and try specifying the frame rate in your DirectShowSource line using "fps=23.976" (or whatever) and see if it fixes the other problem.
np: Aesop Rock - 9-5ers Anthem (Labor Days)
digidragon
24th December 2004, 13:44
Originally posted by Leak
Well, throw out the "Default DirectSound Device" as well to solve the audio problem, and try specifying the frame rate in your DirectShowSource line using "fps=23.976" (or whatever) and see if it fixes the other problem.
I tried your suggestion. The video duration could not be determined, and the graph wouldn't talk to avisynth.
eb
24th December 2004, 16:25
Try to build graph as on picture:
http://img30.exs.cx/img30/6682/doom9mp4toavi4fr.jpg
eb
digidragon
24th December 2004, 20:05
Thanks for the suggestion, but although I have ffdshow installed, I can't find the ffdshow video encoder, the AVI mux, the ffdshow audio decoder, nor the mp$2avi filters in the list. The closest I can find is the ffdshow mpeg-4 encoder.
digidragon
26th December 2004, 15:10
Well I downloaded the latest ffdshow alpha and now I have all the filters apart from the mp$2avi filter.
Where do I get that one from?
Leak
26th December 2004, 15:18
Originally posted by digidragon
Well I downloaded the latest ffdshow alpha and now I have all the filters apart from the mp$2avi filter.
Where do I get that one from?
I'd guess it's the "File Writer" DirectShow filter with a filename of "mp$2avi" - at least that's what you'd want to use to get a file out of this all.
np: Frankie Goes To Hollywood - Warriors Of The Wasteland (Attack Mix ft. Gary Moore) (Twelve Inches (Disc 1))
stephanV
26th December 2004, 15:26
what eb is suggesting doesnt make a lot of sense, you are re-encoding the video then. that would really be the last thing youd wanna do to open the file in AVIsynth.
why do you wanna do so anyway?
digidragon
26th December 2004, 20:54
Basically, I just want to convert the mp4 file into an mpeg. I thought it would be simple, as directshow players will play the file no problem, but tmpgenc's directshow reader won't read it, nor will mainconcept's directshow import, and nor will avisynth's directshow source.
Ghost2004
1st January 2005, 02:46
There is a way to open Nero AVC mp4 in AviSynth - you can use File Source (Async.), then Moonlight MP4 Demultiplexer http://www.elecard.com/download/, then Nero Decoder. Here's the graph, which works like a charme.
http://hosted.yourimg.com/04/365/18/Graph.gif
IgorC
1st January 2005, 04:51
i have a rare bug. and itīs only with one DVD source : musical Catupecu Machu (Argentina). may be the source is very noisy. i have a lot of blocks from differnet frames.
avisynth 2.5.5 GK 0.33.1 . i think itīs problem with tomsmocrob deinterlace.
has anybody this bug?
digidragon
2nd January 2005, 02:27
Thanks to Ghost2004. It worked!
The moonlight demultiplexer seems a bit buggy (well it is a beta) as it crashed fairly often. But it works.
Thanks again.
guardedthought
13th January 2005, 19:16
I know it might be considered low tech and cheating, but I just renamed my Nero MP4 to "temp.avi", and then created an AVS script using "directshowsource("d:\temp.avi"). I think AVISynth uses the 3IVX decoder and demuxer when it detects the mpeg4 video/audio in an avi file. I used this method to open an MP4 file in Vdubmod that I had previously encoded in Nero so I could recompress it to playback on my phone. It worked just fine. A little on the slow side (9-12 fps), but it got the job done.
stephanV
13th January 2005, 19:22
in principle, directshow doesnt look at the extension for file detection. it should construct the same graph for a file whether the extension is .avi, .mp4 or .crap. :)
but if worked for you, it worked.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.