Do you have a script for spotting dupes I could try?Originally Posted by Sharc
+ Reply to Thread
Results 61 to 83 of 83
-
-
The DeDup avisynth plugin comes to my mind:
http://avisynth.nl/index.php/DeDup
The first pass 'DupMC' will create a log.
A very low difference (~0%) between 2 frames indicate a duplicate. The log can be evaluated in Excel for example, or evaluated and processed in pass2 ('DeDup') for removing the duplicates.Last edited by Sharc; 27th Jul 2025 at 07:57.
-
Code:
AviSource("filename.avi" WriteFileIf("Dups.txt", "YDifferenceFromPrevious<0.5", "current_frame", flush=true)
-
Thanks guys, I finally got DupMC working after seeing Jagabo's comment re running the video analysis pass. That isn't mentioned in the wiki or readme that I can see.
@Jagabo, I'm still experimenting with your script. I haven't worked out how the "difference" parameter affects things yet. -
YDifferenceFromPrevious is the average difference of the Y value of each pixel of the current frame and the previous frame. If the current frame and the previous frame are identical (as far as the Y values are concerned) the calculated value will be zero. It will be non-zero if any of the Y values is different.
Note that compression artifacts (when using lossy compression) or other noise may cause originally identical frames to no longer be identical. That's why a non-zero value is used in the sample code. It is no longer possible to detect for certain which frames were identical before the lossy compression. -
Thanks, I'm working with analogue AVI captures.
I've set the "Diff from Prev" to 0.0 but am getting just a list of numbers (I assume the frame numbers, looks like very frame) with no other details, as per the attached.
The DupMC report does show the % difference between each frame.Last edited by Alwyn; 28th Jul 2025 at 07:43. Reason: Clarified the DupMC report details
-
-
The clip must be in planar format, so
Code:AviSource("your.avi") converttoYV16(interlaced=true) #convert to planar WriteFileIf("Dups.txt", "(YDifferenceFromPrevious)<0.5", "current_frame",flush=true)
Code:AviSource("your.avi") converttoYV16(interlaced=true) #convert to planar WriteFileIf("Dups.txt", "(YDifferenceFromPrevious)<0.5", "current_frame", """ ":" """, "YDifferenceFromPrevious",flush=true)
-
You can include the chroma channels using UtoY() and VtoY(). For YV16:
Code:StackHorizontal(last, UtoY(), VtoY())
For YV12:
Code:StackHorizontal(last, StackVertical(UtoY(), VtoY()))
-
A very unreliable script, like all the others. With compressed material and fast scenes, it can produce a high value for duplicate frames, while in still scenes, it can produce a low value for non-duplicate frames.
In fact, you should compare it with neighboring values, i.e.:
- 40, 3, 50 - in subsequent frames indicate a duplicate
- 3, 2, 3 - indicate a non-duplicate
- 3, 0.5, 3 - indicate a duplicate
Dfttest with high sigma (up to 64) increases the number of correct detections but eliminates easy recognition of perfect dups.
RT_FrameMovement (RT_Stats) is better than DupMC.
However, duplicates in lossless capturing should not differ at all (YDiff=0).Last edited by rgr; 31st Jul 2025 at 09:25.
-
If you send me this file, I can check it with my program based on the above assumptions.
-
-
DupMC is verifying that the AmarecTV report is correct WRT dupes (Sharc, I'm using = as the delimiter
).
And yes, I finally got AmarecTV to report two actual drops (not dupes). Never seen drops before in an Amarec capture report. And they were in the recording, at the frame count the report said. Were there other drops (without dupes)? I don't know, but with the audio in sync after 3 hours, I'm happy. -
-
Originally Posted by rgr
-
Of course.
https://forum.videohelp.com/attachments/87807-1752419717/rating.png
Sync means nothing. -
That's just your table, nothing particularly credible about, based on what I see.
What do you mean, "sync means nothing"? Are you suggesting that, throughout the capture, the audio just randomly drifts in and out of sync with all those 60 dropped frames but miraculously at the end it's perfectly in-sync?
If Amarec was dropping 20 frames in an hour without replacing them, the out-of-sync would be blindingly obvious. -
-
-
Latest test.
Workflow: HR-S5700AM>S Video>Pioneer 645H>S-Video>DVK-200>S-Video>IOData GV-USB2>Lagarith
Using VDub 2: 7 Duplicate frames, total frame count 86224
Using AmarecTV: 1 Duplicate frame, total frame count 86219.
I don't have the ability to detect dropped frames and there was no audio accurate enough to check the sync.
Similar Threads
-
Hauppauge WinTV schedule
By LouF in forum Newbie / General discussionsReplies: 2Last Post: 7th Dec 2022, 10:50 -
How to modify Hauppauge WinTV ffmpeg converting command
By neroman00 in forum Video ConversionReplies: 27Last Post: 20th Jun 2022, 01:43 -
I'm looking for Hauppauge WinTV PVR-250
By OS_Man in forum Capturing and VCRReplies: 12Last Post: 20th Sep 2020, 12:54 -
Capturing VHS using Video grabber
By Christop in forum Capturing and VCRReplies: 15Last Post: 9th Aug 2020, 21:07 -
Hauppauge WinTV-HVR-1975 - Letterboxed 4:3 Capturing Issue
By DPage in forum Capturing and VCRReplies: 51Last Post: 9th May 2020, 05:36