Simple line of code

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
TriGGiT
Joined: Fri Apr 16, 2004 9:51 pm
Location: Spain
Org Profile

Simple line of code

Post by TriGGiT » Mon Dec 06, 2010 5:22 am

Simple single line of avisynth code that loads a video file into virtualdub!
which was it?

help

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Simple line of code

Post by mirkosp » Mon Dec 06, 2010 6:17 am

You just drag the avs into virtualdub?
If you mean the avisynth code to load the file into the avs, it depends on your file:

Code: Select all

AVISource("bla.avi")
for avi

Code: Select all

FFVideoSource("bla.mkv")
for .mkv (for .mp4 too and actually should work with most given containers and codecs aside for the .mov container and idk which codecs, can't find the list atm)

Code: Select all

MPEG2Source("bla.d2v")
for .vob/.ts/.m2ts/.mpg that have mpeg-2 video and that you indexed through dgindex (or dvd2avi if they were dvd)

Code: Select all

DGSource("bla.dgi")
for .ts/.m2ts that have AVC (also known as H.264) video that you indexed through dgavcindex/dgindexnv/dgavcindexdi (this also works for VC-1 if you used dgdecnv)

Code: Select all

QTSource("bla.mov")
for .mov, duh.

That should cover most of 'em... they aren't all internal so depending on which you'll need to use you'll want to download the proper .dll and put it in the avisynth's plugins folder (google will help). Please note that not all of the listed plugins are free. Specifically, DGDecNV and DGAVCDecDi require a neuron2 license that you can obtain by donating him 15 usd. DGAVCDecDi also requires you to own the Di-AVC decoder, which atm costs about 10eur.
Image

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Simple line of code

Post by Mister Hatt » Tue Dec 14, 2010 7:18 pm

Actually for mov you are better off using ffvideosource most of the time. It is faster, and you don't lose the alpha channel. Also reverse seeking doesn't fuck up nearly as much.

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: Simple line of code

Post by TheRyuu » Wed Dec 15, 2010 2:26 am

Mister Hatt wrote:Actually for mov you are better off using ffvideosource most of the time. It is faster, and you don't lose the alpha channel. Also reverse seeking doesn't fuck up nearly as much.
mov is basically mp4 so yea, you're probably alright with ffms2.

User avatar
Jemm54
Joined: Fri Oct 12, 2007 9:43 am
Status: Cow
Location: Argentina!!
Contact:
Org Profile

Re: Simple line of code

Post by Jemm54 » Fri Feb 04, 2011 5:52 pm

mirkosp wrote:

Code: Select all

FFVideoSource("bla.mkv")
for .mkv (for .mp4 too and actually should work with most given containers and codecs aside for the .mov container and idk which codecs, can't find the list atm)
Why always recomend FFvideosource instead Directshow?, DSS is worst?, i dont have idea, DDs never crashme or something like that... :?:

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Simple line of code

Post by mirkosp » Fri Feb 04, 2011 6:08 pm

DirectShowSource is not frame accurate at all... and frame accuracy is important. FFMS2 is supposedly frame accurate, although it might have a one or two frame shift with .m2ts perhaps (it still keeps the order properly, though), but with most other containers it should be 100% frame accurate.
Image

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Simple line of code

Post by Mister Hatt » Fri Feb 04, 2011 6:33 pm

There is also the STRANGE effect of seeking on frame accuracy. Like where it decodes linearly accurate, but as soon as you seek, it throws the entire thing out of whack. You need a special override in FFMS2 to deal with this in the ogg/ogm/ogv containers.

User avatar
Jemm54
Joined: Fri Oct 12, 2007 9:43 am
Status: Cow
Location: Argentina!!
Contact:
Org Profile

Re: Simple line of code

Post by Jemm54 » Fri Feb 04, 2011 6:43 pm

mirkosp wrote:DirectShowSource is not frame accurate at all... but with most other containers it should be 100% frame accurate.
Oh, good to know, thanks, but that make me think :lol: in mkv variable fps FFVS detects that or allways have to define by myself fpsnum and fpsden, for use sure or not in batch scripting in a lot of openings for example..., thanks

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Simple line of code

Post by Mister Hatt » Mon Feb 07, 2011 4:58 am

You don't understand VFR then. Avisynth is STRICTLY CFR, there is no work around for it. What you do though is have your source plugin assume a specific framerate and play it constantly. I don't see the point of this as I set my framerate at the container/codec level anyway, when you merge clips they are matched frame by frame regardless of framerate, so it isn't even useful for overlaying.

Locked

Return to “AviSynth Help”