INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
How to open MP4,MKV,WMV,RM,MOV,OGM with any editor,encoder

Forum Index -> How to's -> User guides Printer-friendly version
Goto page 1, 2, 3  Next
Reply to topic
Author Message
Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

Post Posted: Nov 11, 2005 13:39 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 18, 2005 08:11 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 18, 2005 18:22 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 19, 2005 13:41 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 19, 2005 14:46 Posts View users profile Send private message Reply with quote

Quote:
doesnt seem to work with premiere


Would something like this work? (i'm not a Premiere user)
http://videoeditorskit.sourceforge.net/

It appears to be an attempt to update this project;
http://neuron2.net/www.math.berkeley.edu/benrg/avisynth-premiere.html
.


Gi-Ma-Mi
Member


Joined: 03 Oct 2005
Location: usa

Post Posted: Nov 19, 2005 15:22 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 19, 2005 15:31 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 19, 2005 16:23 Posts Comp View users profile Send private message Reply with quote

do i need to install vfapi reader?

BJ_M
Patron


Joined: 30 Jul 2002
Location: Canada

Post Posted: Nov 20, 2005 16:10 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Nov 20, 2005 18:06 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 26, 2005 02:27 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 26, 2005 03:17 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 26, 2005 03:45 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 27, 2005 01:51 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 27, 2005 03:45 Posts Comp View users profile Send private message Reply with quote

you can try asfbin if you want to cut wmv.

tbfl
Member


Joined: 06 Jun 2002

Post Posted: Dec 27, 2005 19:25 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 28, 2005 03:31 Posts Comp View users profile Send private message Reply with quote

If you let VDUB do the full render to a file the file should play fine.

tbfl
Member


Joined: 06 Jun 2002

Post Posted: Dec 28, 2005 20:15 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 29, 2005 04:02 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 30, 2005 11:48 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Dec 31, 2005 23:58 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Jan 11, 2006 21:08 Posts Comp View users profile Send private message Reply with quote

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

Post Posted: Jan 12, 2006 18:25 Posts Comp View users profile Send private message Reply with quote

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.

Post Posted: Jan 17, 2006 02:19 Posts Comp View users profile Send private message Reply with quote

Good guide. thumbs_up.gif
_________________
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

Post Posted: Jan 18, 2006 01:23 Posts Comp View users profile Send private message Reply with quote

I have a MKV video file that plays back A-OK with MEDIA PLAYER CLASSIC but it will not play with WMP 10 or BSPlayer or anything else.

I tried this (rather simple) AviSynth script but I get a "no-go" trying to open it up in VirtualDubMod as well as TMPGEnc Plus.

Any ideas?

- John "FulciLives" Coleman
_________________
"The eyes are the first thing that you have to destroy ... because they have seen too many bad things" - Lucio Fulci
EXPLORE THE FILMS OF LUCIO FULCI - THE MAESTRO OF GORE


gastorgrab
Member


Joined: 29 May 2004

Post Posted: Jan 18, 2006 04:51 Posts