View Full Version : remove dupes
mathmax
21st March 2012, 13:45
Hello
I recorded a video but sometimes the sound jumps and the image gets slow. I uploaded a sample here:
http://www.mediafire.com/?5qgyg5dr2m4kaa1
I would like to remove the dupes in order to recover a normal speed. Is there any filter to do that ?
And how will the sound be synchronized after the duplicates frames are removed?
Also, if anyone knows what was the problem during recording, I'm interested to know what happened.
Thank you in advance for any advices.
mastrboy
21st March 2012, 14:18
http://akuvian.org/src/avisynth/dedup/
mathmax
21st March 2012, 14:53
http://akuvian.org/src/avisynth/dedup/
thank you.. should I play the video in real time in virtualdub to generate the log file?
mastrboy
21st March 2012, 15:33
Just use "run video analysis pass" from the menu...
Bloax
21st March 2012, 17:58
You might be interested in the stuff in this thread (http://forum.doom9.org/showthread.php?t=164372), too.
LexSfX
21st March 2012, 20:05
I find ExactDedup (http://tasvideos.org/forum/viewtopic.php?t=12065) to be better and easier to use (takes only 1 pass to generate duplication info), not to mention there's also a 64-bit build.
To simply generate duplication info and timecodes, simply use avs2pipemod like this with ExactDedup with firstpass=true:avs2pipemod -benchmark script.avs
After that, you can encode your video with x264 using "--tcfile-in times.txt" somewhere in the command line. Make sure ExactDedup's firstpass=false when feeding the script to x264.
Chikuzen
22nd March 2012, 12:18
To simply generate duplication info and timecodes, simply use avs2pipemod like this with ExactDedup with firstpass=true:avs2pipemod -rawvideo script.avs > nul
avs2pipemod -benchmark script.avs
this will be more suitable on your purpose.
LexSfX
22nd March 2012, 18:06
Ah, thank you, Chizuken. :)
mathmax
22nd March 2012, 20:09
Thank you for your answers.
I just wonder if removing the dupes will solve the problem I posted in the first post. Please have a look at the problem: the sound gets cut and the image slows down for a few seconds... will I recover a normal speed by just removing the dupes?
@LexSfX, dedup also need 1 pass for generating duplication info. Since the dupes aren't exactly the same frames (compression might differ), do you still think ExactDedup would be better in my case?
Another issue is that the image is stretched horizontally (due to the black strip at the top and the bottom). In your opinion, to what aspect ration should I resize?
LexSfX
22nd March 2012, 21:04
@LexSfX, dedup also need 1 pass for generating duplication info. Since the dupes aren't exactly the same frames (compression might differ), do you still think ExactDedup would be better in my case?I should have said "ExactDedup takes only 1 pass to generate dupinfo.txt and times.txt." Plain old Dedup doesn't generate timecodes on the first pass. Those require an extra pass for it.
Also, if the "duplicate" frames aren't actually duplicates (not exactly the same), neither of these plugins will work, afaik. I might be wrong. I've only worked with lossless video game sources which have exact duplicates.
Edit: Yes, it seems I am wrong. Plain old Dedup has a "threshold" value which is defaulted at 0.3 out of 100. I guess Dedup would work for you then, while ExactDedup would not.
By the way, if, between 2 frames such as a keyframe and a null frame, compression differs but the output image is pixel-for-pixel identical, ExactDedup will consider those duplicates and throw out that null frame. The frames don't have to be identical in the file; just in the output.
mathmax
22nd March 2012, 23:34
thank you. I'll go with dedup.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.