I have an MKV video clip that has a bunch of frozen frames. If I play it in a VLC player it plays correctly, however I need to convert this file to a DVD and the problem is that AVISynth just skips over these frozen frames without adjusting audio accordingly and the result is out of sync. Is there a way to solve this problem ?
This is the AVISynth script I use:
DirectShowSource("j:\clip.mkv")
Crop(0, 1, 0, -1)
Crop(92, 0, 536, 402)
LanczosResize(720,480)
+ Reply to Thread
Results 1 to 7 of 7
-
-
I'd try using the ffmpeg source plugin rather than DirectShowSource().
https://code.google.com/p/ffmpegsource/ -
And try converting the frame rate to whatever it's supposed to be (even though you'll be converting to the same frame rate as the source video). The example below is 23.976 but you can change it according to the frame rate of the source.
DirectShowSource("E:\clip.mkv", fps=23.976, convertfps=true).AssumeFPS(24000,1001)
Or if you try ffmpeg as jagabo suggersted:
LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
FFVideoSource("E:\clip.mkv", threads=1, fpsnum=24000, fpsden=1001) -
I'm not 100% sure. I copied the DirectShowSource line from the script MeGUI creates and I forgot to delete it.
At a guess...... I assume (no pun intended) "AssumeFPS(24000,1001)" is more accurate than 23.976 (which is rounded), but DirectShowSource probably only understands 23.976 so MeGUI adds "AssumeFPS(24000,1001)" afterwards in order for AviSynth to use it instead. Mind you the difference isn't huge. 23.976 vs 23.97602397.
The other possibility is it's there to ensure the correct frame rate is passed along to the encoder, although I've encoded without "AssumeFPS(24000,1001)" added to the script in the past... I've only used DirectShowSource's "fps=23.976, convertfps=true"... and it doesn't seem to be a problem. -
Have you tried use the vlc record function? And then convert that file.
Select View->Advanced control in vlc and open your mkv, click the red record button. The output should be in your my videos folder.
Or try convert with vlc to some other format, under Media->Convert/save in VLC.
Or have you tried remux the mkv? Using mkvmergegui, add the mkv and make a new mkv. Or try meteorite. And then convert that file. -
yes,I tried remux the mkv using mkvmergegui and also meteorite. No luck in both cases.
Similar Threads
-
How to sync audio with video in mkv file ?
By $hOw$tOpPeR in forum Newbie / General discussionsReplies: 3Last Post: 9th Oct 2012, 07:14 -
Audio out of sync in MKV file.
By Colin-uk in forum Video ConversionReplies: 14Last Post: 14th Oct 2011, 12:50 -
Anyone know of something that will change audio sync in a TS or MKV file?
By Emanef in forum Video ConversionReplies: 2Last Post: 12th May 2009, 09:26 -
Replacing audio in MKV file without re-encoding?
By 3560freak in forum Video ConversionReplies: 4Last Post: 2nd Mar 2009, 22:23