Log in

View Full Version : VFR encode from 25p and 50p?


Boulder
11th May 2011, 19:58
Hello,

I'm currently trying to process Peter Gabriel's Secret World Live DVD to achieve better quality than the low quality source itself is.

I have SRestored the whole clip once and it is now progressive at 25fps. During one song there are sections that are shot on video so they are truly interlaced. I isolated the parts and smart-bobbed them to 50fps using QTGMC. All encodes were compressed with HuffYUV.

Now I need to combine these two elements, encode with x264 and probably create a VFR encode to watch on my Popcorn Hour.

At first I thought that I would have to use AssumeFPS(25) on the bobbed parts and then insert them into the big clip and use some kind of timecodes when muxing to Matroska, but I guess that would cause a/v sync problems.

Can anybody guide me to the right direction on how to do this? Most, if not all, guides only talk about NTSC sources on which you can use automated methods.

Sharc
11th May 2011, 21:31
Did you try for the interlaced parts:
QTGMC()
SelectEven()

Is the original field blended (i.e. converted to PAL from an NTSC source by adding fields/frames)? If so, Srestore() has probably produced a 23.976 fps progressive clip which should be made PAL compliant with AssumeFPS(25), and the audio needs to be speed up to maintain sync.

sneaker_ger
12th May 2011, 01:10
Since you have isolated the parts, you could encode them separately and then append using mkvmerge.
Or you could easily write a timecodes_v1 file for mkvmerge:
# timecode format v1
assume 25
500,800,50

In this example all frames from #500 to #800 have 50fps, the rest 15fps.

You can also use the timecode file directly in x264: x264 input -o output.mkv --tcfile-in tc_file.txt

Boulder
12th May 2011, 03:40
@Sharc: I had to do an unDEFT operation so I used frate=25 in SRestore. Now there are no combing artifacts and motion is not jerky.

@sneaker_ger: So I could do the combining operation in Avisynth (using AssumeFPS(25) for the 50fps parts to make the script CFR), encode with x264 and then correct things in mkvmerge? I'll try that :)

sneaker_ger
12th May 2011, 03:45
Leave out "AssumeFPS(25)".

Boulder
12th May 2011, 03:47
But it's not possible to have all the clips in the same script unless they have the same frame rate :(

sneaker_ger
12th May 2011, 03:52
It's not? Then forget my last post.

Boulder
12th May 2011, 03:55
No.. I think Avisynth will just pop out an error message if the output is not constant framerate. I'll experiment with the different options and see how it goes, thanks :)