Simple line of code
- TriGGiT
- Joined: Fri Apr 16, 2004 9:51 pm
- Location: Spain
Simple line of code
Simple single line of avisynth code that loads a video file into virtualdub!
which was it?
help
which was it?
help
- mirkosp
- The Absolute Mudman
- Joined: Mon Apr 24, 2006 6:24 am
- Status: (」・ワ・)」(⊃・ワ・)⊃
- Location: Gallarate (VA), Italy
- Contact:
Re: Simple line of code
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:
for avi
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)
for .vob/.ts/.m2ts/.mpg that have mpeg-2 video and that you indexed through dgindex (or dvd2avi if they were dvd)
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)
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.
If you mean the avisynth code to load the file into the avs, it depends on your file:
Code: Select all
AVISource("bla.avi")
Code: Select all
FFVideoSource("bla.mkv")
Code: Select all
MPEG2Source("bla.d2v")
Code: Select all
DGSource("bla.dgi")
Code: Select all
QTSource("bla.mov")
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.
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Simple line of code
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.
-
- Joined: Wed May 19, 2010 5:33 pm
Re: Simple line of code
mov is basically mp4 so yea, you're probably alright with ffms2.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.
- Jemm54
- Joined: Fri Oct 12, 2007 9:43 am
- Status: Cow
- Location: Argentina!!
- Contact:
Re: Simple line of code
Why always recomend FFvideosource instead Directshow?, DSS is worst?, i dont have idea, DDs never crashme or something like that...mirkosp wrote: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
FFVideoSource("bla.mkv")
- mirkosp
- The Absolute Mudman
- Joined: Mon Apr 24, 2006 6:24 am
- Status: (」・ワ・)」(⊃・ワ・)⊃
- Location: Gallarate (VA), Italy
- Contact:
Re: Simple line of code
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.
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Simple line of code
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.
- Jemm54
- Joined: Fri Oct 12, 2007 9:43 am
- Status: Cow
- Location: Argentina!!
- Contact:
Re: Simple line of code
Oh, good to know, thanks, but that make me think 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..., thanksmirkosp wrote:DirectShowSource is not frame accurate at all... but with most other containers it should be 100% frame accurate.
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Simple line of code
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.