Skip to content

[VSoC2024] Fix AVI XVID Packed Bitstream jerky playback with HW decoders

See: #26968

Older DivX-encoded videos commonly use an method called packed bitstream which puts several video frames into a single AVI chunk.
Since Packed bitstream isn't standard MPEG-4 it causes playback issues with MediaCodec and Other HW Decoders.

If we can give the packed video frame to MediaCodec as they are unpacked, like avcodec, then MediaCodec can be used for packed bitstreams. However, currently, I'm not familiar with how to detect packed frames and unpack them. I also don't know how much overhead there will be. is it possible?

Edited by Mangal Kushwah

Merge request reports

Loading