News for hackers. Stuff that matters.
Re:mpv a free, open-source, and cross-platform media player by infofarmer on Sunday August 18, 2024 @02:37AM (#41280583)
decoding state can be bulkier than a key frame and opaque to the CPU if hardware acceleration is used

I wonder if caching semi-compressed frames would be more efficient in either case (CPU or GPU)

Re:mpv a free, open-source, and cross-platform media player by hsbauauvhabzb on Wednesday August 21, 2024 @05:56PM (#41314573)
It doesn’t have to be every frame though. Pre calculate to 25%/50%/75%, then as I’m playing, save key frames for more incremental points, and if I start scrubbing, calculate more around that region.

Edit: this doesn’t have to happen synchronously either, it can occur in a background thread or passively.