Hi. I have an mp4 file which, to my eyes, plays OK but I've just realised that there are 2 identical frames for each image throughout. Presumably, it would be better to reduce the file to 25fps by removing the duplicate frames. Is TDecimate() my best option here? And, if so, is the command simply this:
last.TDecimate()
Thank you.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
You need to set the cycle.
TDecimate(cycle=2)
https://avisynth.org.ru/docs/english/externalfilters/tivtc_tdecimate.htm
If the pattern is constant something simple like SelectEven() should also do the trick.
Note: if the frames are exact duplicates they usually compress to almost zero anyways. So if your goal is just to reduce the file size I would not do this because you will lose quality, waste time and achieve nothing. -
Thanks, sneaker. File size isn't an issue, just the possiblity of getting a better video. I said at the beginning that it plays OK as far as I can see - that must be your 'compress to almost zero' kicking in. I'll probably just leave it, then.
-
Decompressing the source and compressing it again (with a lossy codec) can only make the picture quality worse.
-
I wouldn't bother unless you need to re-encode for some other reason. If you're using a 50Hz TV you'll get one screen refresh per frame at 50fps, or two screen refreshes per frame at 25fps, so it should look exactly the same if every frame is repeated for 50fps.
-
I did a re-encode simply because the original vid was so large. SelectEven() did a fine job so thanks to you all for the advice.
Similar Threads
-
Convert 5 individual 1080i m2ts with Dolby AC3 to MP4 1080p 50fps
By bloodhand in forum Video ConversionReplies: 61Last Post: 11th Feb 2017, 13:16 -
I have a mp4 file that is 720p @ 50fps I want to convert it to a PAL DVD
By jjcinema1 in forum Newbie / General discussionsReplies: 6Last Post: 20th Apr 2016, 06:52 -
removing duplicated frames from YT video
By adom in forum EditingReplies: 7Last Post: 23rd Aug 2014, 11:19 -
Purple stripe on last frame of .MP4?
By CrVMo in forum Newbie / General discussionsReplies: 2Last Post: 12th Aug 2014, 12:19 -
How to - Repair B-Frame corruption in Mp4 video
By ABBrittain in forum Video ConversionReplies: 2Last Post: 28th Mar 2013, 12:41