<p>A Clip(C) is a sequence of frames, each frame(f) consists of video and audio frames, the duration(t) of each frame is constant and is determined by the frame rate.</p>
<p>For the i th clip(Ci), it is defined as (fi_n) n∈ℕ</p>
<p>back to your question, the idea is to find the result of</p>
<p>⊕Cj , where j ∈ {0,…,19}</p>
<p>Since the sizes of all Cj are not the same, the elements or frames of ⊕Cj are not guaranteed to be monotonic increasing. Therefore, different frames, with expected sequence, cannot be identified in this problem.</p>
<p>=======</p>
<p><strong>IF</strong> you can guarantee the sizes of all Cj to be the same,
a video frame can be extracted by ffmpeg to a png file and a audio frame can be extracted by the t second of wav file. The ⊕ operation can be handled by image diff and easily be found in Google.</p>

CC BY-SA 4.0
2020-09-05T22:44:42.673Z
what kind of software do I use?
djsoda
CC BY-SA 4.0
2020-09-06T01:56:49.627Z
My answer has included everything you need, good luck.
xer-rex
CC BY-SA 4.0
2020-09-06T03:51:11.463Z
I think it is more complicated than my manual cut. I use techsmith camtasia studio, I compare the two videos then I cut manually the difference but it take me 3 to 6 hrs cuting the 1hr video. I have 20 videos, so in 1 day I only edited 2 to 3 videos a day. it takes me 6 to 10 days to complete all videos.
djsoda
CC BY-SA 4.0
2024-01-19T13:40:19.840Z
Downvoted as I'm not sure re-writing the problem into fancy (unformatted) mathematical notation and suggesting to just use ffmpeg, an image diff and googling is a helpful answer.
Saaru Lindestøkke
CC BY-SA 4.0
2020-09-05T11:21:46.397Z
2020-09-05T11:36:13.833Z
2020-09-05T11:36:13.833Z
xer-rex
<p>I have 2 video files with the same content, but coming from a different source. They have a slight difference in 'cut' and language dubbing, meaning one can be missing a shot compared to the other.</p>
<p>I have a other language dubbed that is correctly timed for one file (call it A), and because of the different cut, a bit off for the other (call it B).</p>
<p>The thing is that “A” also has low quality, while “B” is of better quality, and original language dubbed.</p>
<p>I basically need to fix the timing of the dubbed to match B.</p>
<p>In order to do so, i need to locate the missing/additional shots between the 2 videos, so i know where to cut it..</p>
<p>This is realistic if i have only one pair of files, however i have 20 pair of files !
I would like to automate this search, and basically compare the 2 files at different points in time, and find where they diverge.</p>
<p>How can I do this?</p>
<p>Since file A has other dubbed language, the comparison method should be exact enough to detect content difference..</p>

CC BY-SA 4.0
2020-09-01T18:21:56.180Z
Does it need to be automated? Is it something you would be doing to many files, or are you asking how to do this in video editing software the conventional way.
tomh
CC BY-SA 4.0
2020-09-01T23:29:20.190Z
I mean auto highlight the video that is not on video 1. then there is an option to delete all highlight scene. I do it in manual I compare two video if the video 2 has scene and no in video 1 I deleted it, but I almost consume 1 day to compare and cut the 1 hr video. I want is there a software to highlight then cut all scene that is not have on video 1 in one click. no need to search whole video and cut one by one.
djsoda
CC BY-SA 4.0
2020-09-04T02:40:25.393Z
anyone have an idea regarding this? another sample is 1 hr video with dubbing in another language but this video has low quality and cut some scene. and the original video with original language and high quality. what I want is it can compare this two videos then the all cut scene will highlight on another video then it can cut. after the cut, the audio of low quality video will replace the audio of the original video with high quality video.
djsoda
CC BY-SA 4.0
2020-09-04T16:05:59.310Z
I still don't understand what you are trying to do - your comments have made me understand it less.
Dr Mayhem
CC BY-SA 4.0
2020-09-05T03:26:55.167Z
I edited the my question to clear it.
djsoda
<video-editor><editing><encoding><video-quality>
compare two video then cut the different
djsoda
# compare two video then cut the different

(Asked by: username_0 on 2020-09-01)

I have 2 video files with the same content, but coming from a different source. They have a slight difference in 'cut' and language dubbing, meaning one can be missing a shot compared to the other.

I have a other language dubbed that is correctly timed for one file (call it A), and because of the different cut, a bit off for the other (call it B).

The thing is that “A” also has low quality, while “B” is of better quality, and original language dubbed.

I basically need to fix the timing of the dubbed to match B.

In order to do so, i need to locate the missing/additional shots between the 2 videos, so i know where to cut it..

This is realistic if i have only one pair of files, however i have 20 pair of files !
I would like to automate this search, and basically compare the 2 files at different points in time, and find where they diverge.

How can I do this?

Since file A has other dubbed language, the comparison method should be exact enough to detect content difference..

**Tags:** video-editor, editing, encoding, video-quality

> **Comments:**
> **username_1**: Does it need to be automated? Is it something you would be doing to many files, or are you asking how to do this in video editing software the conventional way.  
> **username_0**: I mean auto highlight the video that is not on video 1. then there is an option to delete all highlight scene. I do it in manual I compare two video if the video 2 has scene and no in video 1 I deleted it, but I almost consume 1 day to compare and cut the 1 hr video. I want is there a software to highlight then cut all scene that is not have on video 1 in one click. no need to search whole video and cut one by one.  
> **username_0**: anyone have an idea regarding this? another sample is 1 hr video with dubbing in another language but this video has low quality and cut some scene. and the original video with original language and high quality. what I want is it can compare this two videos then the all cut scene will highlight on another video then it can cut. after the cut, the audio of low quality video will replace the audio of the original video with high quality video.  
> **username_2**: I still don't understand what you are trying to do - your comments have made me understand it less.  
> **username_0**: I edited the my question to clear it.  

---

## 1 answers

### Answer by username_3 on 2020-09-05. Score: -1

A Clip(C) is a sequence of frames, each frame(f) consists of video and audio frames, the duration(t) of each frame is constant and is determined by the frame rate.

For the i th clip(Ci), it is defined as (fi\_n) n∈ℕ

back to your question, the idea is to find the result of

⊕Cj , where j ∈ {0,…,19}

Since the sizes of all Cj are not the same, the elements or frames of ⊕Cj are not guaranteed to be monotonic increasing. Therefore, different frames, with expected sequence, cannot be identified in this problem.

=======

**IF** you can guarantee the sizes of all Cj to be the same,
a video frame can be extracted by ffmpeg to a png file and a audio frame can be extracted by the t second of wav file. The ⊕ operation can be handled by image diff and easily be found in Google.

> **Comments:**
> **username_0**: what kind of software do I use?  
> **username_3**: My answer has included everything you need, good luck.  
> **username_0**: I think it is more complicated than my manual cut. I use techsmith camtasia studio, I compare the two videos then I cut manually the difference but it take me 3 to 6 hrs cuting the 1hr video. I have 20 videos, so in 1 day I only edited 2 to 3 videos a day. it takes me 6 to 10 days to complete all videos.  
> **username_4**: Downvoted as I'm not sure re-writing the problem into fancy (unformatted) mathematical notation and suggesting to just use ffmpeg, an image diff and googling is a helpful answer.  

---

