Problem- After encoding MKV to MP4 and filtering with subtitles the Audio and subtitles get out of sync.
I have been using Xvid4psp5 to hardsub mkvs and convert them to mp4 for a while now and this problem is one that i can't seem to figure out.
I suspect that the problem is the different frame rates.
The input being 23.976 and the output being something different (just looked and for some reason it changed O.o)
At any rate i have tried changing the interlace/framerate options to try to solve the problem but i have gotten no luck.
I will update with more info later
(sorry i am running short on time.)
Any help is appreciated.
+ Reply to Thread
Results 1 to 12 of 12
Last edited by Alcatraz; 12th Mar 2012 at 20:48.
Yeah the framerate is variable.>_<
Frame rate: 23.810
Original frame rate: 23.976
if source is VFR, then extract timecodes from mkv , then use mp4fpsmod to create VFR mp4
Note if you mean to play the mp4 on a device, many do not support VFR
or try to convert to CFR with avisynth directshowsource with convertfps=true, this doesn't always work
or did you mean source was CFR, and output was VFR ? if so then force CFR in the encode
It's VFR to CFR. I am currently trying to extract the timecodes from this mkv but it's having problems.
Are you sure it's VFR? Initially you said : "The input being 23.976 and the output being something different"
If you can't extract timecodes with mkvextractgui or mkvextractgui-2 , you can use ffms2 to generate timecodes
Then load avs, timecodes, subs, into aegisub
hardcode using textsub() or assrender() for the subs, then mux back into mp4 with mp4fpsmod
or just leave it as mkv
Sorry i misspoke when i said that the input was 23.976 it was actually 23.810 but i changed some option that made the video play in that FPS.
The output was also 23.976 thats why i was confused because i made it look like the video was the same fps on accident.
Also i am having a problem with ffms2 it says
failed to initialize indexing: Can't open 'FFVideoSource'
That error is because i don't have avisynth in the same directory right?
But if you're trying to convert to CFR (instead of VFR mp4), try
DirectShowSource("video.mkv", fps=23.976, convertfps=true)
But as mentioned earlier , it doesn't always work perfectly, there might be sections out of sync
I would give up...and find a media player with mkv support. .
Thanks for posting your solution. Even though it might not be perfect it works at least.