Sigh... and I thought it was getting so much easier...
I have this print, and this time it really is a very good looking print of an older film. It appears to be already encoded in x264. VLC tells me (since MediaInfo didn't) that it is at a frame rate of (30000, 1001) if I have that right, and it is progressive (no blurred frames when stepping through motion.
BUT... for some odd reason this MKV is not playing on my OPPO, so time to re-encode... However, when I try to do a simple re-encode using the same CMD line I always do, the resulting encode when muxed back in with the audio is HUGELY way off sync. When I went to load the demuxed .h264 stream into DGIndex, it came back with a prompt saying 'no video sequence header found' So, I went back to my usual DirectshowSource open of the MKV like I've done many times before. Here is a snippet with motion:
http://lathe-of-heaven.com/TM.mkv
It is a beautiful print, but I sure don't know why my audio is coming out so far off after re-encoding it. This is the very simple code that I used:
DirectshowSource("C:\x\00000.mkv")
ConvertToYV12()
AssumeFPS(30000,1001)
And then I ran my usual x264 CMD line that I always do. I have NO idea why the sync is all messed up. I appreciate any suggestions, thanks!
+ Reply to Thread
Results 1 to 8 of 8
-
-
DirectshowSource("C:\x\00000.mkv")
ConvertToYV12()
AssumeFPS(30000,1001)
There's your problem as it's really 23.976fps. Movies just aren't 29.97fps. By changing the length to have it play too fast, you made movement too fast and the audio out of synch. Try this:
FFVideoSource("TM.mkv")
When I went to load the demuxed .h264 stream into DGIndex, it came back with a prompt saying 'no video sequence header found' -
Ah, I will do that. That is exactly what was happening; the video was playing way too fast for the audio, thus the frame rate was wrong. MediaInfo just showed it as 'variable', but VLC showed it as 29.xxx. Interesting. I will try to get the FFVideoSource command going. But, if I can't, do you think that simply putting AssumeFPS(24000, 1001) instead will do it? I wonder why I couldn't get an accurate read of the actual frame rate? How did you know...? I THINK, although I may be mistaken, that I do have some movies that in MediaInfo show as 29.xxx and are progressive. Is that simply not possible?
BTW... I REALLY should have guessed that about the frame rate and just tried 23.xxx... -
Geez, yes... of COURSE that fixed it. I honestly really should have thought of that. What a total numbnut... Sorry about that.
Last edited by Lathe; 18th Nov 2016 at 01:05. Reason: MUCH needed modifier...
-
Probably, but I never - EVER - use DirectShowSource, so I don't know for sure.
I THINK, although I may be mistaken, that I do have some movies that in MediaInfo show as 29.xxx and are progressive. Is that simply not possible? -
I see... Yes, I think the few I have are directly from hard telecined NTSC DVDs. Does that mean then that they somehow ripped the file to MKV leaving the frame rate at 29.xxx and in some way made it progressive?
Also, I tried the command 'FFVideoSource' instead of DirectshowSource, but VD said that there was no such function. Do I need to load or enable something in order to use that? -
Unlike AviSource, FFVideoSource isn't built into AviSynth. Among other things you need the ffms2.dll:
https://github.com/FFMS/ffms2/releases
Does that mean then that they somehow ripped the file to MKV leaving the frame rate at 29.xxx and in some way made it progressive? -
Similar Threads
-
DGIndex DVD Encode Out of Sync With Audio
By TheLastOfThem in forum Video ConversionReplies: 23Last Post: 5th Jul 2016, 17:26 -
VirtualDub audio out of sync, other video players all in sync
By a1s2d3f4 in forum Newbie / General discussionsReplies: 7Last Post: 11th Apr 2016, 21:36 -
Need a simple tool to sync up badly out of sync audio and video
By CompVid in forum EditingReplies: 16Last Post: 26th May 2013, 06:55 -
Re:- sync Audio to Vedio - audio starts in sync but goes out of sync at end
By ABBrittain in forum Newbie / General discussionsReplies: 2Last Post: 22nd May 2013, 12:08 -
audio sync problem - progressively out of sync during playback - MPEG 2
By TheShortStraw in forum Newbie / General discussionsReplies: 4Last Post: 20th May 2013, 07:36