Hi!
I have two video files, one is a VOB (something like 720x576, 50fps) and the other is an AVI (Xvid encoded, 25fps). I would like to replace parts of the VOB audio with the corresponding parts from the AVI audio. In order to do this I am using Kdenlive.
The problem is that the two video files have different fps so I am unable to edit them in Kdenlive because they get out of the sync and it is impossible to align the videos correctly. I never had this problem before, as I usually work with VOBs having 25 fps, this is a first one with 50 fps.
My main priority is to keep the video quality of the VOB file intact (no re-encoding).
What would be the right way to sync the fps, to increase AVI fps or to decrease VOB fps? How can I do that? Any tools for Linux/Windows? I tried increasing the AVI fps to 50 with ffmpeg, but it failed due to some error in the encoding (seems the ffmpeg thinks that the AVI is corrupt). I used this command:
Also, I target a PAL-DVD as the end result. How is this compatible with the VOB file I have (due to 50 fps, normally I work with 25 fps VOBs)? What is the ideal VOB fps for a PAL-DVD? Does it matter?Code:ffmpeg -i input.avi -r 50 output.avi
Any other tips and suggestions on how to attack this problem are much appreciated!
Thank you in advance.
Kind Regards,
Veroslav
+ Reply to Thread
Results 1 to 10 of 10
-
-
Where has the VOB come from? 720x576 @25fps is standard DVD resolution but it is interlaced, so 25 frames but 50 fields per second. Is it possible that somehow each field has been converted to a frame?
-
Thank you for your fast reply, Richard_G.
I've purchased a few of these DVDs (old sporting events) online and wanted to replace the commentary with the one from the AVIs I made previously from my own VHS-recordings of the same events.
How can I find whether each field has been converted to a frame? If yes, what could I do in that case?
Thanks again. -
Since all you want is the audio from the avi, just demux it to an uncompressed PCM wav file. Then the video framerate won't matter.
-
Thank you for your reply, smrpix.
I think this is exactly how I do it at the moment. Here are the detailed steps of what I do:
1. Demux AVI (export audio as WAV)
2. Import VOB and AVI to Kdenlive on separate tracks and split their audios to separate audio tracks (in this case original AVIs mp3 audio)
3. Replace the AVIs original mp3 audio with the demuxed WAV (I do this step as I otherwise get audio out of sync if I work directly with mp3 stream in Kdenlive)
4. Align AVI video with the VOB video in order to know exactly which audio part I need to use from WAV.
However, this is where I get the synchronization issues due to differing video frame rates as I am unable to align the videos correctly for audio cutting.
I am a newbie so I apologize if I am stating something obvious, but I am trying to understand how demuxing to WAV would cure my video synchronization issue? Could you please elaborate a bit more?
Thank you very much! -
Don't import the AVI into your timeline. If you need a sync point, look at each video separately and find a matching moment. Write the time down on a piece of paper.
Add the wav file to the timeline with the vob. Find the time you wrote down on the wav file and sync it to the matching event on the timeline. If there is matching audio (a kick, a cheer) it will be quickly obvious if you're off. Sync to that. If there's no matching "live" audio a few frames this way or that won't make a lot of difference. -
Hi again,
I might have been just a little bit quick when I said that the VOB has 50 fps (I looked up the video info in VLC), however, when I check the video properties in Kdenlive directly, here is what I get:
VOB: MPEG-2 video, 720x576
Frame rate: 25.000000
Scanning: Interlaced
AVI:
MPEG-4, 512x384
Frame rate: 25.000000
Scanning: Progressive
Looking a bit closer at the video content of the both VOB and AVI, it might be that some parts of the footage are missing from the VOB, thus resulting in the clips difference (which I thought was due to the fact that I thought the VOB had 50 fps because that was what VLC showed).
I apologize for the time waste, will look into this more closely and come back if I still have issues.
Regards,
Veroslav -
Yeah, sometimes I begin to panic a bit too fast instead of analysing the "issue" in further details
Again, I am sorry, I learned my lesson, but I am very happy that I don't need to throw/downrate my DVDs because it is quite a big collection.
Thanks again, I appreciate the effort and the help.
/Veroslav
Similar Threads
-
Audio goes progressively out of sync with video... FPS issues?
By singhcr in forum AudioReplies: 6Last Post: 24th Feb 2013, 05:18 -
Sync - Resample audio from video source of 29 FPS to 25 FPS
By Chastepe in forum AudioReplies: 6Last Post: 17th Oct 2012, 10:35 -
Differing volume levels on compilation video DVD
By mr_tinka in forum Newbie / General discussionsReplies: 15Last Post: 4th Sep 2009, 22:12 -
Sync 29.970 FPS audio to 23.976 FPS video?
By LCO1971 in forum Newbie / General discussionsReplies: 3Last Post: 13th Sep 2008, 15:23 -
How to convert a video of 120 Fps to... well 23.9fps or 25 fps or 30 fps
By Chuba753 in forum Newbie / General discussionsReplies: 7Last Post: 6th Jun 2008, 19:17