Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
1st February 2016, 09:19 | #1 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Extracting timecode from mpg
I have a VHS captured mpg file, and in the middle of the video, the video went off sync for about 15 minutes. There're random frame drops that cause video speed up here and there, and I have no clue where to spot every one of them.
I tried to fix it by blind guessing every spot and slow them down accordingly base on the audio, but the process is so hard and very frustrating. I've noticed that with the mpg on playback, if I seek to a spot in that problematic section, the video will be in sync for a couple of seconds before the video speed up again, so I thought that there should be a counter in the mpg that's keeping track of the frame speed, and eventually there a way to extract this timecode? |
1st February 2016, 14:56 | #4 | Link | |
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
Quote:
http://forum.doom9.org/showthread.ph...02#post1692702 You are probably going to be most interested in pkt_pts_time or best_effort_timestamp_time. |
|
1st February 2016, 20:01 | #5 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Quote:
|
|
2nd February 2016, 08:24 | #8 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
So after 2 days of thinking, I finally figured out a logical process to fix this. I'm using Adobe Premiere's "razor tool" and "rate stretch tool" to do this.
First sync a point from the start and end of the video to the audio, extends the video duration to match the audio. Then go to the middle of the video and find another sync point, split the video in half as session A and B base on that point, and then either stretch/shrink A or B on that point to sycn with the audio. Then find sync points in session A and B separately and repeat the process over and over again. And eventually the process will cover the entire video with sync point interval of a few seconds apart, and the problem will be fixed. |
Tags |
extract, mpg, timecode, vhs |
Thread Tools | Search this Thread |
Display Modes | |
|
|