| ▲ | londons_explore 6 hours ago | |||||||
> have limited control over their encode pipeline. Frustratingly this seems common in many video encoding technologies. The code is opaque, often has special kernel, GPU and hardware interfaces which are often closed source, and by the time you get to the user API (native or browser) it seems all knobs have been abstracted away and simple things like choosing which frame to use as a keyframe are impossible to do. I had what I thought was a simple usecase for a video codec - I needed to encode two 30 frame videos as small as possible, and I knew the first 15 frames were common between the videos so I wouldn't need to encode that twice. I couldn't find a single video codec which could do that without extensive internal surgery to save all internal state after the 15th frame. | ||||||||
| ▲ | orisho 5 hours ago | parent | next [-] | |||||||
A 15 frame min anf max GOP size would do the trick, then you'd get two 15 frame GOPs. Each GOP can be concatenated with another GOP with the same properties (resolution, format, etc) as if they were independent streams. So there is actually a way to do this. This is how video splitting and joining without re encoding works, at GOP boundary. | ||||||||
| ||||||||
| ▲ | 6r17 2 hours ago | parent | prev | next [-] | |||||||
I wonder if we could scan / test / dig these hidden features somehow ; like in a scrapping / fuzz fashion | ||||||||
| ▲ | Sesse__ 6 hours ago | parent | prev [-] | |||||||
> I couldn't find a single video codec which could do that without extensive internal surgery to save all internal state after the 15th frame. fork()? :-) But most software, video codec or not, simply isn't written to serialize its state at arbitrary points. Why would it? | ||||||||
| ||||||||