Hacker News new | ask | show | jobs
by AndrewUnmuted 1887 days ago
I have written such a transcoder [0] and while it is definitely not "simple," it has definitely never been easier to achieve than today.

If the input video source has been prepared properly (i.e., constant framerate, truly compliant VBR/ABR, fixed-GOP), or if your input is a raw/Y4M, then segmenting each GOP into its own x264 bytestream is rather trivial.

If the input is not prepared for immediate segmentation, it is also somewhat easy now to fix this before segmenting for processing. Using hardware acceleration a transcoder could decode the non-conforming input to Y4M (yuv4mpegpipe) or FFV1, which can then have a proper GOP set.

[0] https://suprnova.video/