Log in

View Full Version : FDecimate causing problems on frame range selection (I think)


lectric
2nd December 2006, 20:54
I ain't no video guru, so maybe I am completly wrong on this. I also apologize if I choose the wrong forum for this issue.
I want to pull our certain frame ranges from a VFR MKV. I am using Tmpgenc and AviSynth with the average script :
LoadPlugin("C:\Program Files\AviSynth 2.5\Plugins\FDecimate.dll")
video=DirectshowSource("C:\1.mkv",fps=119.88,convertfps=true,audio=false)
audio=WavSource("C:\1.WAV")
audiodub(video,audio)
FDecimate(23.976, threshold=1.2)
Prog versions : AviSynth 2.5.6 ; ffdshow Dec 8 2005 ; fdecimate 1.0.1 ; Tmpgenc 2.5

I choose the range I want in Tmpgenc, but when it encodes, I get the frames before and after the selected range included in the encode. I removed the fdecimate function from the avs and retried, got the exact frames I chose. I tried a few things to fix this, did a bit a research, and, well, here I am.

Has anyone else had this, and is there a way to fix it? I have been on this for a little while, so any suggestions are appeciated.

Guest
2nd December 2006, 22:12
FDecimate removes frames so the numbering of them must change. Use the frame numbers as they are AFTER applying FDecimate. You can serve the script into VirtualDub to determine the frame numbers you want. Also, you can try using Trim() in your script to select a range instead of doing it in TMPGEnc.