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.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 12 of 12
Thread
-
Last edited by Alcatraz; 12th Mar 2012 at 20:48.
-
Yeah the framerate is variable.>_<
Frame rate: 23.810
Original frame rate: 23.976
Any suggestions? -
if source is VFR, then extract timecodes from mkv , then use mp4fpsmod to create VFR mp4
https://github.com/nu774/mp4fpsmod
http://forum.doom9.org/showthread.php?t=161386
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
e.g
FFVideoSource("video.mkv", timecodes="timecodes.txt")
Then load avs, timecodes, subs, into aegisub
http://aegisub.cellosoft.com/docs/Video#VFR_and_hardsubbing
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? -
http://code.google.com/p/ffmpegsource/
unzip and place the .dll and .avsi in the avisynth plugins folder -
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.
Similar Threads
-
Problem with audio sync with an mp4/converting an mkv.
By Clowmet in forum Video ConversionReplies: 0Last Post: 21st Aug 2011, 08:58 -
mkv to mp4 audio out of sync
By henryflower in forum Video ConversionReplies: 2Last Post: 18th Apr 2011, 12:48 -
Why video and audio out of sync while playing .mp4 and .mkv files?
By Bonie81 in forum Software PlayingReplies: 0Last Post: 6th Apr 2010, 18:03 -
Fixing audio sync issues when using GOTSent to convert MKV to MP4
By darrklight1138 in forum Newbie / General discussionsReplies: 1Last Post: 20th Apr 2009, 06:56 -
Help! Converting mkv. to mp4 (dual audio problems)
By ir0n_ma1den in forum Video ConversionReplies: 1Last Post: 5th Jun 2008, 14:50