| Author |
Message |
Baldrick Administrator
Joined: 09 Aug 2000 Location: Sweden
|
|
How to open/import MP4,MKV,WMV,RM,MOV,OGM with any editor,encoder like Virtualdub, Tmpgenc, Windows Media Encoder, etc using Avisynth. It may not work for all above formats, it depends what kind of audio and video codec that is used.
Be sure that you can play the video in Windows Media Player.
Install Windows Media Player 10 for WMV9.
Install haali media splitter for MP4, OGM, MKV.
Install xvid codec or divx codec for MP4,MKV with divx,xvid.
Install ffdshow for MP4,MKV with h264/x264.
Install Real Alternative for RM,RMVB,RAM video.
Install Quicktime Alternative for MOV video.
Install avisynth, http://prdownloads.sourceforge.net/avisynth2/Avisynth_256.exe?download
Start notepad.
Type
DirectShowSource("c:\locationto\video.mp4")
replace c:\locationto\video.mp4 with the location to your video file.
File>Save as
Select Save as type: All files
Save as video.avs
Open the video.avs with Windows Media Player and it should play.
You can now import the video.avs file in for example Virtualdub, Tmpgenc, Windows Media Encoder or most other editors. When you import the file in your tool select All files under Files of type to see the .avs file.
Last edited by Baldrick on Aug 06, 2006 05:18, edited 5 times in total
|
|
dipstick ACE in the hole
Joined: 30 Jan 2005 Location: Dark side of the Moon
|
|
Great!
And it works for the MOV out of my Digital Camera in conjunction with Quicktime Alternative. Now I can finaly edit them in Virtualdub.
_________________ I stand up next a mountain and chop it down with the ledge of my hand........ I'm a Voodoo child.... Jimi Hendrix,
|
|
BJ_M Patron
Joined: 30 Jul 2002 Location: Canada
|
|
doesnt seem to work with premiere, vegas, avid ....
_________________ "Each problem that I solved became a rule which served afterwards to solve other problems." - Rene Descartes (1596-1650)
|
|
dipstick ACE in the hole
Joined: 30 Jan 2005 Location: Dark side of the Moon
|
|
Probably because they don't support AVS. I know Premiere Pro does'nt.
Wax2 handles AVS just fine.
_________________ I stand up next a mountain and chop it down with the ledge of my hand........ I'm a Voodoo child.... Jimi Hendrix,
|
|
gastorgrab Member
Joined: 29 May 2004
|
|
Gi-Ma-Mi Member
Joined: 03 Oct 2005 Location: usa
|
|
if it said: I can't determine the frame rate of the video, you must use the "fps" parameter...
what should i do?
|
|
Baldrick Administrator
Joined: 09 Aug 2000 Location: Sweden
|
|
vfapi reader ->open avs -> premiere?
gimami: try DirectShowSource("F:\test.rmvb", fps=24, convertfps=true)
|
|
Gi-Ma-Mi Member
Joined: 03 Oct 2005 Location: usa
|
|
BJ_M Patron
Joined: 30 Jul 2002 Location: Canada
|
|
yes vfapi works always with premiere and vegas - BUT it really cripples speed and also also forces a color conversion in most cases ...
but it is a worthwhile option in many cases ...
_________________ "Each problem that I solved became a rule which served afterwards to solve other problems." - Rene Descartes (1596-1650)
|
|
Safesurfer Member
Joined: 18 Mar 2004 Location: United States
|
|
FFDSHOW also comes with a program called MakeAVIS for creating dummy AVI files, but it's dependent on using FFDSHOW for decoding.
_________________ "Just another sheep boy, duck call, swan
song, idiot son of donkey kong - Julian Cope"
|
|
veloslacker Member
Joined: 25 Dec 2005 Location: United States
|
|
I'm a relative newbie at this, so maybe someone could answer a question for me. I tried this out on a wmv HD file. I could open up the file and edit it fine with virtualbub. The problem comes when I try to save the edited file. I go to "Save as AVI" and then change the file type to "All files", then specify the file name as ****.wmv. It proceeds to save but starts creating a huge file... many times bigger than the original. I have the video options in virtual dub set to "direct stream copy" that normally works fine for avi files. I tried other video options too, but couldn't get it to work.
Can anyone tell me the procedure to save the wmv file without creating an enormous file?
Thanks
|
|
Baldrick Administrator
Joined: 09 Aug 2000 Location: Sweden
|
|
you can't use direct stream copy(no reencoding) for wmv files or avisynth frameserved files. use a compression under video->compression.
|
|
kschang Member
Joined: 08 Nov 2002 Location: United States
|
|
| veloslacker wrote: |
| I'm a relative newbie at this, so maybe someone could answer a question for me. I tried this out on a wmv HD file. I could open up the file and edit it fine with virtualbub. The problem comes when I try to save the edited file. I go to "Save as AVI" and then change the file type to "All files", then specify the file name as ****.wmv... |
Wow, hold it.
Your mistake is trying to 'force" a filetype by renaming the extension. AVI is NOT WMV, so that by itself would have already messed you up, as the result will NOT be readable.
| Quote: |
It proceeds to save but starts creating a huge file... many times bigger than the original. I have the video options in virtual dub set to "direct stream copy" that normally works fine for avi files.
Thanks[
|
VDub by default saves an AVI file as "Uncompressed RGB" which results in a huge file size. Direct Stream Copy only works when you are NOT using AVISynth to trick VDub into accepting other formats. If you are using AVISynth, you pretty much HAVE to use full processing and select a codec for compression. I've found that the Microsoft MPEG4 V3 codec seems to work well enogh, as well as DIVX5.1 codec. Of course, generating those files through codecs will take time.
|
|
veloslacker Member
Joined: 25 Dec 2005 Location: United States
|
|
Thank you everyone for the replies to my question. Ok I think I sort of understand you... the virtualdub/avisynth method won't work for editing wmv files without compressing/re-encoding, right? Is there another tool that can be used for editing wmv that is reasonably user-friendly, and does it in as few steps as possible. I usually just need to remove a few sections from the files.
Thanks in advance
|
|
Baldrick Administrator
Joined: 09 Aug 2000 Location: Sweden
|
|
you can try asfbin if you want to cut wmv.
|
|
tbfl Member
Joined: 06 Jun 2002
|
|
This method worked to get Virtualdub to play the file, but the video has a severe delay behind the audio.....
|
|
kschang Member
Joined: 08 Nov 2002 Location: United States
|
|
If you let VDUB do the full render to a file the file should play fine.
|
|
tbfl Member
Joined: 06 Jun 2002
|
|
Still no luck with MP4 video (Diggnation epsidoes in m4v to be exact)....I've tried Graphedit, Virtual Dub, and Canopus - all process with the audio way out of sync - evn though they all show the total time of the audio and video to be the same. I tried doing the cideo seperate from the audio - they both show the same time...but both end up wildly out of sync.....
|
|
kschang Member
Joined: 08 Nov 2002 Location: United States
|
|
M4V? That thing may be using AAC audio codec. You may need to turn that back into MP3 or even PCM, then mux them back. Use VideoDetective on the file first...
|
|
baconharvester Member
Joined: 13 Nov 2005 Location: United States
|
|
I've tried doing this with a real media file but it doesn't seem to work, I keep getting an error that says Avi synth open failure: Script error: (C:\Documents and Settings\baconharvester\Desktop\video.avs, line 1, column 1) Someone also recommended that I add in the frame rate, but how would I find it? And is it ok if I use wordpad instead of notepad, because I don't have notepad on this computer anymore.
|
|
kschang Member
Joined: 08 Nov 2002 Location: United States
|
|
| baconharvester wrote: |
| I've tried doing this with a real media file but it doesn't seem to work, I keep getting an error that says Avi synth open failure: Script error: (C:\Documents and Settings\baconharvester\Desktop\video.avs, line 1, column 1) Someone also recommended that I add in the frame rate, but how would I find it? And is it ok if I use wordpad instead of notepad, because I don't have notepad on this computer anymore. |
Here's my version, replace the bolded section with your own filename
| Quote: |
#ASYNTHER DirectShow_NTSC, just a comment
DirectShowSource("C:\My Documents\SomeVideoName.rmvb", fps=29.97, convertfps=true)
|
Note the fps parameter, and the convertfps parameter. This is for NTSC 29.97 fps, so that's why the setting. If you are outputing to some other fps then you'll need to change it.
As long as you use TEXT/ASCII format you're fine, but how can you NOT have Notepad on your machine? Download a replacement like EDITPAD or something. You can't live without it!
|
|
jimmalenko VH Veteran
Joined: 27 Aug 2003 Location: Down under
|
|
| kschang wrote: |
| ... but how can you NOT have Notepad on your machine? |
I'm sure I've seen a number of apps of similar ilk to TweakXP that allow you to uninstall a lot of Windows "optional" features and accessories. Heck, even Add/Remove Programs > Windows Components would probably let you uninstall it too.
| kschang wrote: |
| You can't live without it! |
... the minute you start doing any scripting/coding, that's for sure !
_________________ If in doubt, google it.
Click Here
|
|
BJ_M Patron
Joined: 30 Jul 2002 Location: Canada
|
|
freeware version of notepad
http://www.flos-freeware.ch/notepad2.html
_________________ "Each problem that I solved became a rule which served afterwards to solve other problems." - Rene Descartes (1596-1650)
|
|
lordsmurf Video Restorer
Joined: 10 Jun 2003 Location: Want my advice? PM me.
|
|
Good guide.
_________________ digitalFAQ.com -- Help with VHS to DVD, DVD recorders, other video/photo issues.
NoMoreCoasters.com -- How to avoid bad burns, how to find the best blank DVDs.
|
|
FulciLives UNDEAD OVERLORD
Joined: 09 May 2003 Location: Pittsburgh, PA in the USA
|
|
gastorgrab Member
Joined: 29 May 2004
|
|