Skip to content

Fix playback and metadata for legacy video containers - #2147

Open
anilbeesetti wants to merge 2 commits into
mainfrom
fix/legacy-video-playback
Open

anilbeesetti wants to merge 2 commits into
mainfrom
fix/legacy-video-playback

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

MPEG program streams with DVD PCM can fail in Auto because the standard reader identifies the audio as AC-3. Auto now opens MPEG program streams with FFmpeg and keeps that reader when it falls back to software decoding. AVI entries use the probed duration when available. Software playback also retains the standard MP4 and WebM readers for embedded subtitles when those readers can open the file.

Evidence

  • 18 focused instrumentation tests passed on the ARM64 Android 15 emulator with NextLib I want to help with Spanish translation #246 as a composite build. Coverage includes synthetic MPEG, Xvid AVI, WMV, DVD PCM, Layer I, decoder recovery, subtitle rendering, and thumbnails.
  • The original DVD PCM recording played in Auto, and the original Xvid AVI played in HW+. Both also passed SW playback, seeks, metadata, and uncached thumbnail checks.
  • assembleDebug, assembleDebugAndroidTest, ktlintCheck, and the focused source and recovery JVM tests passed.

Merge dependency

Update the dependency to a published NextLib version containing NextLib #246 before merging. The currently pinned 1.11.1-0.19.0 lacks the added codecs, so the native playback tests require the composite build until then.

Created with GPT-6.2 Sol in T3 Code.

Open MPEG program streams with FFmpeg in Auto to preserve DVD PCM. Restart the reader when falling back to software so playback can recover from unsupported system video. Preserve embedded MP4 and WebM subtitles in software mode and use probed AVI duration when available.

Includes synthetic fixtures for MPEG, Xvid AVI, WMV, DVD PCM and MPEG Layer I. The codec additions are provided by NextLib PR #246.
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