3 ms·
How do you create a lossless video from a GIF (or a series of images)? I think I've figured out how to do it for H.264 with ffmpeg, but I don't know how to do i
by slavik81 6y ago
How do you create a lossless video from a GIF (or a series of images)? I think I've figured out how to do it for H.264 with ffmpeg, but I don't know how to do it for H.265 or AV1.
The main problem I've been encountering is that everything seems to be based on YUV, which makes it difficult to round-trip RGB data without loss.
- ubercow13 6y agox264 has an RGB mode that avoids this but I don't think the resulting files would be playable in any browser
- slavik81 6y agoYeah, that's the best solution I've found for truly lossless conversions, but for wide compatibility the only real choices seem to be animated image formats like GIF or APNG. I started looking for lossless because my screen captures looked like absolute garbage even at high bit rates, but in retrospect, I bet the problem was the downscaling done by the 4:2:0 chroma profile. It might be that 4:4:4 would fix the awful appearance.