How to convert video through a directshow script in vdub

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

How to convert video through a directshow script in vdub

Post by Phantasmagoriat » Thu May 24, 2007 12:37 am

Since this subforum deals with video format conversion, I think there should be a simple way that always works with common tools used by people here at the org. [from the <a href="http://www.animemusicvideos.org/guides/ ... >AMVapp</a>]
The following has always worked for me:


How to open almost any type of file in Virtualdubmod for format conversion:
1.-------->create a New Folder* [...anywhere is fine...]
2.-------->put your sourcefile.xxx in it.
3.-------->in the New Folder, create a new text file*
4.-------->in the text file write this on the first line: [...including the ""]

Code: Select all

directshowsource("filenameofyoursource.xxx")
5.-------->save, and change the file extension from .txt to .avs**>>open .avs file in VirtualDubMod***

Once you get the file open in vdub, recompress/save with the codec you want; For editing, preferably something big and lossless like Lagarith**** or HuffYUV


*--------> Right click anywhere>>New>>
**------->show file extensions in windows explorer:Tools>>Folder Options...>>View>>uncheck Hide Extensions for known file types.
***------>If it doesn't open, make sure you have <a href="http://www.doom9.org/">avisynth</a> [included in the <a href="http://www.animemusicvideos.org/guides/ ... >AMVapp</a>], install <a href="http://www.afterdawn.com/software/video ... 1">ffdshow </a>and the <a href="http://haali.cs.msu.ru/mkv/">Haali Media Splitter</a>, then try again.
****----->no Lagarith in WMM [windows movie maker]-->and NO DivX or XviD .avi's for that matter [=<a href="http://www.animemusicvideos.org/phpBB/v ... 39&start=0"> headache</a>]



I tried to keep this simple, yet still cover all bases. Also, I don't want to be dishing out bad advise, so if anyone has something else they want to address, go right ahead... and if it is found to be useful, maybe this can be Stickied or something...
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

User avatar
Keeper of Hellfire
Joined: Sun Jan 09, 2005 6:13 am
Location: Germany
Org Profile

Post by Keeper of Hellfire » Thu May 24, 2007 11:30 am

Why making it easy if it can be done complicated? Make steps 1 and 2 if necessary, but
3.---------> in VDM "Open video file", change "use Avisynth template" from "none" to "Directshowsource" and doubleclick your file. Done. (In case of wmv you have of course to change the file type to "all files" first before you can see it).

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Thu May 24, 2007 2:37 pm

Well, yes I realize that. And this is part of the reason why I'm asking for suggestions, so this is good to discuss :)

I chose to explain it this way since it will work in all cases [to my knowledge].

It gets around the 'exotic' formats like the wmv you mentioned. As well, some older versions of Virtualdub/VirtualdubMod/vdub/VDM [same thing...] don't have the directshowsource template located in the same way. For example, for the one included with the non-beta AMVapp you need to click File>> Open video file via AviSynth...>> then select the template.

Plus, using a template creates an extra .avs file which the user might be unaware of... which might lead to confusion; these steps illustrate that the .avs is being used and is very important. It also illustrates that the location of the files is also important.

Nevertheless, you are correct-- and I'm sure people reading your post will find that to be a good shortcut.
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

Locked

Return to “AviSynth Help”