View Single Post
Old 2006-10-27, 17:49   Link #571
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Quote:
Originally Posted by jfs View Post
(This might be getting a bit off-topic?)

Please explain what you mean by "change formats". The Matroska format has been standardised for ages now. What might change is what streams the encoder puts into the file and in what order, but any decent application should be able to handle various different formats.

Now, what might be good would be an actual DirectShow based re-encoding solution which can also handle VFR, perhaps in various ways. (It would require an additional DShow filter to perform the transformations.) Either, output could be a "120 fps" AVI, simply decimated to 24 or maybe even *shudder* telecined. Why a DShow based solution? Because all the decoders and subtitle filters are already available. Actually, using good old GraphEdit it's already possible, as long as input is constant frame rate. Someone just need to write the frame rate conversion filter(s).

Such a solution already exists... it's called "DirectShowSource" in avisynth. You can have it output at 120 fps, and then encode with xvid with the setting to include nvops... The problem is that most people don't know how to use it right, since it's not a GUI. It'll do a pretty decent job converting vfr mkv into constant frame rate.

P.S. I've been doing this for a little while now for raws of hataraki-man (which are nearly all 23.976, but not quite). The process I use it horribly complicated, but it works very well:
1. Extract video stream+timecode file
2. Use tc2cfr to create a 120 fps avi. (or whatever is the LCM of the constituent hybrid framerates)
3. use tdecimate to decimate down to 23.976 the 120 fps avi.

you might be able to also use DirectShowSource with a convertfps=true and fps=120 and do the same thing, but it's less accurate, in my opinion, and might introduce some extra blended frames.

What this does is produce a properly synched 23.976 file, with a few very short 29.97 sections decimated using hybrid=1, starting from a vfr mkv.

Of course, if the source is truly variable frame rate, this will still look crappy, but it only 120 frames of the show are at 29.97, it's probably worth the trouble to convert it to CFR from the start.
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote