Post Reply 
Weird video desynch problem when converting video
Author Message
Assassinator
...

Posts: 6,646.6190
Threads: 176
Joined: 24th Apr 2007
Reputation: 8.53695
E-Pigs: 140.8363
Offline
Post: #8
RE: Weird video desynch problem when converting video
Didn't see your reply.



Well, if you are still interested, IF the file is VFR:

Make an avs:

Code:
FFmpegSource("location of vid", atrack=-2, timecodes="TIMECODES.TXT", vcache=true, seekmode=-1)
# try seekmode=1 if you want, that's faster, and isn't linear access only, but seekmode=-1 is the "safest".

#Linear access, stick filters here, but no filters here that needs to backtrack or seek, otherwise bad stuff happens


If you aren't going to do any filtering, trimming, and stuff like that, then encode the final directly.

If you do want to use more filtering (that can't be done on previous step), then use the above to encode an intermediate (use high quantizer, or lossless), then write new avs.

Code:
DirectShowSource("location of intermediate", fps=whatever, audio=false)
#or AVISource if your thing is avi

#Stick all your filters and stuff here


Use that to encode final video.


Encode audio separately.


Use MKVMerge on video and audio. Your previous encode/s should have spit out a file called "TIMECODES.TXT". Click on your video track, under general track options, stick in your timecodes, mux.

You should end up with a VFR MKV file.

(This post was last modified: 01/08/2008 10:06 PM by Assassinator.)
01/08/2008 08:07 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Weird video desynch problem when converting video - Assassinator - 01/08/2008 08:07 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)

 Quick Theme: