I have an old script which I ran using Avisynth 2.58 to deinterlace (and reduce to 29.97) an MP4 file that is 59.94 interlaced. I used FFindex, and everything worked fine, including previewing the script in AvsP.
Had to get a newer computer, and downloaded the Avisynth Universal Installer to see if I could use newer versions. I was getting alot of errors in AvsP, and could only bump up to 2.6 with the least problems, until I used the old script for above video. The AvsP video preview for the mp4 59.94 played too slow. I loaded the video with Directshowsource and the video played too fast. I switched to Avisynth 2.58 to process the video, but I'd like to understand how to resolve this in 2.6 or higher. I can set the framerate in FFvideosource and Directshowsource to 29.97, but that wasn't necessary in 2.58.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 12 of 12
Thread
-
-
Hard to say what that is without seeing your scripts and the error messages. But generally, older AviSynth plugins work with AviSynth Plus as long as you have the correct bitness and the plugins in the right folders.
-
DirectShowSource should be used only as a last resort. ffmpeg source and lsmash are much preferred. But since you're using it, try just opening your source with DirectShowSource and just playing it (nothing else in the script). Does it play at the right speed?
Also try using DirectShowSource's convertfps=true option. That will convert a variable frame rate source to constant frame rate.Last edited by jagabo; 19th May 2024 at 06:36.
-
Directshowsource played too fast in both Avisynth versions 2.58 and 2.6, but adding "convertfps=true" fixed that. Thanks!
Btw, if I re-encoded the video (from mp4 to mkv) when it was playing too fast, the new video also played fast (using MPC-HC for playback). What controls the speed of playback? Is there a simple flag one could change?
So the outstanding issue is video playing too slow using FFINDEX in 2.6. And not getting higher versions of Avisynth to run. -
So your source is variable frame rate (VFR). convertfps=true converts it to constant frame rate. Your other option would be to extract the time codes from the source and apply them to your earlier VFR encodings.
-
Not sure what your addressing since I asked several questions. I added a "timecodes" line to my FFindex video, got a text of numbers, not sure what I'd do with that. I was hoping for some equivalent fix when loading the video with FFindex (which works in 2.58 but not 2.6).
-
With VFR video different frames are displayed for different amounts of time, ie, at different frame rates. The frame rate flagged at the container level (and reported by MediaInfo or other programs) is sometimes the max frame rate, sometimes the average frame rate, or sometimes just random. In the end, it's the timecodes (one time code for each frame) that tell the player exactly how long each frame is to be displayed, and hence how long the full video is.
By default, DirectShowSource() returns one frame for each frame in the source video, not compensating for the timecodes. For example, the container may indicate a video is 30 fps. But the timecodes may show some frames displaying for 1/30 second and others for 2/30 second. If you assume every frame is displayed for 1/30 second the total playback will be too fast. If you assume the frame rate is 1/15 second the video will play too slow. So you need to mux the timecodes along with your final video to get the correct playback speed.
If you use convertfps=true and fps=30, DirectShow source will return two copies of each of those 2/30 frames so to maintain the correct playback speed. You won't need the timecodes in your final video. -
Similar Threads
-
How to install DevIL plugin for Avisynth+ 3.7.3 on Windows 11?
By anaconda875 in forum Newbie / General discussionsReplies: 1Last Post: 22nd Jan 2024, 07:43 -
any one got guide on how to install avisynth that don' point to avisynth.nl
By MrKool in forum Newbie / General discussionsReplies: 7Last Post: 9th Aug 2023, 10:57 -
QTGMC, AVISynth+ New PC Install
By dellsam34 in forum EditingReplies: 23Last Post: 28th Jun 2023, 15:39 -
How to install the nnedi3 plugin into Virtualdub2 and Avisynth?
By Guernsey in forum Newbie / General discussionsReplies: 7Last Post: 25th Apr 2020, 04:27 -
Speed up video to restore original playback speed?
By nekrosoft13 in forum Video ConversionReplies: 6Last Post: 30th Nov 2019, 00:16