Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AviSynth source load
#1
What kind of filter do you use to load compressed sources?

These are what I use:

Video
Code:
#MPEG-2

#DGindex - d2v file needs to be prepared with DGindex
LoadPlugin("your actual path to avisynth plugins folder\dgdecode.dll")
temp=mpeg2source("filename.d2v")
TFM(d2v = "filename.d2v")
#if source is NTSC film, then add the following
TDecimate.assumefps(24000,1001)

#AVC (h264)

#DGAindex - dga file needs to be prepared with DCAVCindex
LoadPlugin("your actual path to avisynth plugins folder\DGAVCDecode.dll")
AVCSource("filename.dga")

#AVC (h264) and VC-1

#Directshow
DSS2("filename.mkv")

#or
DirectShowSource("filename.mkv")

#or
FFVideoSource("filename.mkv")
#used usually for the video track, when I need to load audio track as well

#then at the end
TFM
#if source is NTSC film, add the following line
TDecimate.assumefps(24000,1001)

Audio
Code:
nicac3audio("filename.ac3")
nicdtsaudio("filename.dts")
OR
FFAudioSource("filename.ac3")
#remember to join audio and video!
audiodub(yourvideofile,youraudiofile)

If there are better ways, I'm all ears! Big Grin
Reply
Thanks given by:
#2
I've been using lsmashsource because it will index and display almost any codec or container I throw at it.  Here's a link with much better description than I can provide Smile.


http://avisynth.nl/index.php/LSMASHSource

Basically i just use it like this:

Code:
LWlibavvideosource("C:\myfile.mkv")

If you refresh or load this script it will begin to index the file. When it's done you can then point it at the auto-generated index file in the same folder instead of the actual video file. Like this:

Code:
LWlibavvideosource("C:\myfile.mkv.lwi")

If you want to index on-the-fly without creating an index file use lsmashvideosource instead. I don't recommend this however.  

Apparently it works well with audio stuff too but I only ever need it for indexing mkv video.
Reply
Thanks given by:
#3
Still can't find a way to let LWlibavvideosource to work...

I tried to load BD->MKV files with DGAVCindex with no luck as well...

Using DirectShowSource and DSS2, sometimes frames are not in the same positions, so I loose some here or there!

EDIT: FFvideosource seems better!
Reply
Thanks given by:
#4
(2017-02-16, 01:14 AM)spoRv Wrote: Still can't find a way to let LWlibavvideosource to work...

Using DirectShowSource and DSS2, sometimes frames are not in the same positions, so I loose some here or there!

This is a great reason to use lsmashsource. It indexes properly and you never get the missing frames like directshowsource. Aside from using avisynth 2.6.0 or greater you must also install some microsoft thing. The link for the install is on the wiki page.
Reply
Thanks given by:
#5
Isn't FFvideosource frame perfect as well?
Reply
Thanks given by:
#6
It seems like it indexes on-the-fly like directshowsource so probably can suffer from the same frame inconsistencies. lsmash indexes the whole film beforehand like dgindex or dgavcindex to provide stable frame playback.
Reply
Thanks given by:
#7
I love the indexing that dgindex provides which I have used for many years in my projects, so I have to agree that one of these "index beforehand" methods is the BEST way to achieve the stable frame rate playback...
Reply
Thanks given by:
#8
Actually, ffvideosource does index the video file... indeed, it take few minutes (on my system) when called the first time, to write the index file.
Reply
Thanks given by:
#9
Ah. I didn't realize that. It just seemed from reading the wiki page that it didn't create an index file. In that case, it probably works just as well.
Reply
Thanks given by:
#10
FFMS2/FFVideoSource is frame-accurate, as is DGIndex, DGIndexNV, LSMASHSource, and (only with any non-25 fps, muxed-to-MKV footage) DSS2.

DirectShowSource shouldn't ever be used.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Question AviSynth loading a source divided in several files spoRv 0 2,609 2017-06-03, 01:35 AM
Last Post: spoRv

Forum Jump:


Users browsing this thread: 1 Guest(s)