Simple line of code

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Simple line of code

Postby 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
TriGGiT
 
Joined: 16 Apr 2004
Location: Spain

Re: Simple line of code

Postby 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
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Simple line of code

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: Simple line of code

Postby 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.
TheRyuu
 
Joined: 19 May 2010

Re: Simple line of code

Postby 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
Jemm54
 
Joined: 12 Oct 2007
Location: Argentina!!
Status: Cow

Re: Simple line of code

Postby 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
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Simple line of code

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: Simple line of code

Postby 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
User avatar
Jemm54
 
Joined: 12 Oct 2007
Location: Argentina!!
Status: Cow

Re: Simple line of code

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 0 guests