| 
		
	
	
	
		
	Posts: 7,151 
	Threads: 601 
	Joined: 2015 Jan
	
 Thanks: 1081Given 1490 thank(s) in 969 post(s)
 
 Country:    
	
	
		What kind of filter do you use to load compressed sources? 
These are what I use:
Video AudioCode: #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)
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!    
	
	
	
		
	Posts: 139 
	Threads: 8 
	Joined: 2015 Mar
	
 Thanks: 37Given 73 thank(s) in 34 post(s)
 
 Country:    
	
		
		
		2017-02-12, 04:03 PM 
(This post was last modified: 2017-02-12, 04:04 PM by althor1138.)
	
	 
		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   .
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.
	 
	
	
	
		
	Posts: 7,151 
	Threads: 601 
	Joined: 2015 Jan
	
 Thanks: 1081Given 1490 thank(s) in 969 post(s)
 
 Country:    
	
	
		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!
 
	
	
	
		
	Posts: 139 
	Threads: 8 
	Joined: 2015 Mar
	
 Thanks: 37Given 73 thank(s) in 34 post(s)
 
 Country:    
	
	
		 (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.
	 
	
	
	
		
	Posts: 7,151 
	Threads: 601 
	Joined: 2015 Jan
	
 Thanks: 1081Given 1490 thank(s) in 969 post(s)
 
 Country:    
	
	
		Isn't FFvideosource frame perfect as well?
	 
	
	
	
		
	Posts: 139 
	Threads: 8 
	Joined: 2015 Mar
	
 Thanks: 37Given 73 thank(s) in 34 post(s)
 
 Country:    
	
	
		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.
	 
	
	
	
		
	Posts: 2,289 
	Threads: 39 
	Joined: 2015 Jan
	
 Thanks: 177Given 192 thank(s) in 134 post(s)
 
 
	
	
		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...
	 
	
	
	
		
	Posts: 7,151 
	Threads: 601 
	Joined: 2015 Jan
	
 Thanks: 1081Given 1490 thank(s) in 969 post(s)
 
 Country:    
	
	
		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.
	 
	
	
	
		
	Posts: 139 
	Threads: 8 
	Joined: 2015 Mar
	
 Thanks: 37Given 73 thank(s) in 34 post(s)
 
 Country:    
	
	
		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.
	 
	
	
	
		
	Posts: 130 
	Threads: 5 
	Joined: 2015 Feb
	
 Thanks: 76Given 529 thank(s) in 156 post(s)
 
 Country:    
	
	
		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.
 |