cubicibo
11th January 2025, 15:32
I was reading Blu-ray.com, found about a new release with mixed framerate content that used hard pulldown, and I decided I had enough.
So, here are two tools to encode VFR content in CFR containers, exploiting the soft pull-down capabilities of H.264. x265 support to come later. Blu-ray compatible, of course.
VS-PicStruct (https://github.com/cubicibo/vs-picstruct) - VapourSynth tool to analyze a VFR clip and produce a sequence of pulldown instructions that have to be used by the encoder to achieve the container framerate. Porting this to AviSynth should be straightforward.
x264 (https://github.com/cubicibo/x264) - x264 mod adding a --psfile option to parse the pull-down instructions and put them in the stream appropriately.
All pull-downs supported (18/1.001 -> 23.976, 24/1.001 -> 29.97, 23.976->29.97, 23.976 -> 59.94p, etc.) and the pattern can change anytime according to your own desires! A test x264 build is provided on the release page, enjoy.
So, here are two tools to encode VFR content in CFR containers, exploiting the soft pull-down capabilities of H.264. x265 support to come later. Blu-ray compatible, of course.
VS-PicStruct (https://github.com/cubicibo/vs-picstruct) - VapourSynth tool to analyze a VFR clip and produce a sequence of pulldown instructions that have to be used by the encoder to achieve the container framerate. Porting this to AviSynth should be straightforward.
x264 (https://github.com/cubicibo/x264) - x264 mod adding a --psfile option to parse the pull-down instructions and put them in the stream appropriately.
All pull-downs supported (18/1.001 -> 23.976, 24/1.001 -> 29.97, 23.976->29.97, 23.976 -> 59.94p, etc.) and the pattern can change anytime according to your own desires! A test x264 build is provided on the release page, enjoy.