Skip to content

Support legacy MPEG, Xvid, WMV and DVD PCM playback - #246

Merged
anilbeesetti merged 4 commits into
mainfrom
fix/legacy-video-codecs
Nov 28, 2026
Merged

anilbeesetti merged 4 commits into
mainfrom
fix/legacy-video-codecs

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

MPEG program streams, Xvid AVI and WMV files can contain tracks that FFmpeg extraction or bundled software decoding currently cannot play. Add the missing mappings and decoders, and pass container dimensions and audio parameters to the decoders that need them.

Evidence

  • Added codec mapping tests, including MPEG Layer I and DVD PCM coverage in the companion app change.
  • :media3ext:testDebugUnitTest passed on the updated base. The companion app build rebuilt JNI for all four ABIs using FFmpeg libraries previously rebuilt with this exact codec list.

Merge impact

The bundled decoder set grows. The existing HDR and subtitle paths are retained. Publish a NextLib version containing this change before merging the companion Next Player change.

Created with GPT-6.2 Sol in T3 Code.

Enable the missing FFmpeg decoders and preserve container initialization parameters for WMV video and WMA audio. Use MPEG-1’s actual decoder name and expose DVD PCM packets to the software renderer.

Verified rebuilt FFmpeg for all four ABIs, decoder mapping unit tests, and all four original samples plus synthetic clips through Next Player SW rendering, audio, seeking and uncached thumbnails on API 37 ARM64 with 16 KB pages.
Keep Layer I program streams supported when the application prefers FFmpeg extraction. Reuse the existing MPEG audio decoder mapping; no FFmpeg build configuration changed. Verified synthetic Layer I audio/video rendering and Auto playback on API 37.
@anilbeesetti
anilbeesetti merged commit 3a56009 into main Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant