feat: raw MPEG-TS proxy, VA-API hardware decode, native video player#395
Closed
wowitsjack wants to merge 3 commits intoFredolx:mainfrom
Closed
feat: raw MPEG-TS proxy, VA-API hardware decode, native video player#395wowitsjack wants to merge 3 commits intoFredolx:mainfrom
wowitsjack wants to merge 3 commits intoFredolx:mainfrom
Conversation
added 3 commits
March 8, 2026 03:08
Add HLS.js-based web player and embedded MPV engine for in-app video playback. Local MPEG-TS proxy via ffmpeg+warp for streams that need transcoding. Engine selection in settings.
Add HEAD-request URL resolution for redirect streams. Broadcast-based ffmpeg lifecycle with proper cleanup. VA-API hardware decode support via inline player. Local proxy monitor for automatic restart.
WebKitGTK GPU compositor spins constantly when forced to Always, causing ~30% idle CPU. Leave at default OnDemand so it only activates during video playback.
6bbe47b to
0c4edc7
Compare
|
wowitsjack seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raw MPEG-TS streaming proxy: Replace double-HLS architecture (ffmpeg → HLS segments → warp file server → HLS.js) with direct MPEG-TS streaming (ffmpeg stdout → tokio broadcast channel → warp HTTP endpoint → native
<video>). Eliminates manifest caching issues and reduces latency.VA-API hardware video decode on Linux: Set
WEBKIT_GST_ENABLE_LEGACY_VAAPI=1and boostvaapih264dec/vah264decdecoder ranks to MAX so GStreamer actually selects hardware decoders. AddHardwareAccelerationPolicy::Alwaysfor WebKitGTK. CPU usage drops from ~80% to ~10% on Intel GPUs.NVIDIA-only DMABUF disable:
WEBKIT_DISABLE_DMABUF_RENDERER=1was being set for all GPUs. Now only set for NVIDIA (where it's actually needed), allowing other GPUs to use hardware rendering.Native video player: Drop HLS.js dependency entirely, use native
<video>element withvideo.srcpointed at the MPEG-TS stream. Simpler pipeline, fewer failure modes.Redirect resolution: HEAD request follows 302 chains to detect HLS streams behind redirects (e.g. tvpass.org → .m3u8), enabling direct playback without the proxy.
Mute fix: Use
video.mutedproperty instead ofvideo.volume = 0, persist mute state across stream changes.Test plan