PDA

View Full Version : How to edit mpeg1 video with variable framerate


Zap_Bee
3rd August 2005, 14:52
Hi,

I have to transfer an mpeg1 movie from a multimedia CD to a DVD. Unfortunately the format is 320x288, so I have to re-encode it. Here's my problem:
when I play the .mpg, audio and video are synchronous. But some parts of the movie seem to have a lower framerate (e.g. 20fps), so they seem to jerk/ stutter (don't know the correct word). This is not much of a problem, since the quality of the movie isn't to good at all.
When I demultiplex the movie (for re-encoding purposes) and play it, these parts are played accelerated (20 frames played at 25fps), so after a minute the audio is noticable asynchronous. The complete video stream is now only 12:57min long (19xxx frames at 25fps), while audio is 14:58min. Re-Encoding (to 352x288, DVD compliant) doesn't change anything. That is a problem.
Can anyone tell me how to fix that?

Regards
Zap

echooff
3rd August 2005, 17:29
Edit your audio in a a audio application such as Adobe Audition(cool edit) that has a filter allowing you to lenghten/shorten the time. Shorten the time to match the video portion. This will just change the time the audio plays. This method works most of the time. If the audio is still not in sync after this you have a bigger and much more difficult problem to solve. Lets us know. :p

communist
4th August 2005, 10:27
Audacity can speed up / down sound files aswell + its free :)
http://audacity.sourceforge.net/

Zap_Bee
4th August 2005, 11:44
hmm, I think you got me wrong. The original file (.mpg) is 14:58, while the video stream has only 19425 frames, which is only 12:57 @ 25fps. some scenes of the original video stream seem to be recorded at lower framerate (e.g. 20fps), because when played at 25fps, they are speed up (looks like fast forward). in the original file they stutter a bit (due to lower framerate), but the video length is 14:58min

Zap

Wilbert
4th August 2005, 12:08
Just open it in dgindex/dgdecode, and open the corresponding avs script in a mpeg-2 encoder. Should work fine (although the resulting mpeg-2 will be cfr at 25 fps).

Btw, how are you reencoding the stream?