Diagnosed mpv YouTube audio and playback failures
- Day: 2026-04-17
- Time: 10:25 to 10:40
- Project: Dev
- Workspace: WP 2: Operational
- Status: Completed
- Priority: MEDIUM
- Assignee: Matías Nehuen Iglesias
- Tags: Mpv, Yt-Dlp, Youtube, Audio-Debugging, Systemd, Linux
Description
Session Goal
Investigate why Matías’ YouTube playlist playback via mpv/yt-dlp was failing in different ways: no audio, duplicate audio, and HTTP 403 errors. The broader intent was to isolate whether the issue lived in the player, extractor, browser, or process orchestration layer.
Key Activities
- Reviewed troubleshooting flows for
mpvplayback with no audio, including process checks, log inspection, directmpvtests, and audio backend validation (pipewire/pulseaudio). - Analyzed a 403 failure path and traced it away from the scheduler/wrapper toward the YouTube → extractor →
googlevideo.comURL chain. - Compared
yt-dlp/mpvintegration behavior and identified version/runtime mismatches as likely contributors. - Explored remediation options: updating
yt-dlp, forcingmpvto useyt-dlpexplicitly, testing verbose extraction, and consideringDenoas a runtime for JavaScript-dependent extraction. - Diagnosed duplicate/residual audio caused by concurrent
mpvand Firefox playback, and refined the process-management approach usingpgrep,pactl, and more aggressive stop scripts. - Proposed a more production-ready orchestration model using
systemd --user, timed playback, and curated profile-based YouTube link bags for ambient audio.
Achievements
- Narrowed the root cause of the 403 issue to the extraction/playback chain rather than the scheduler, wrapper script, or browser.
- Identified that lingering audio was due to coexistence of multiple
mpvprocesses, not Firefox alone. - Clarified that the immediate stabilization path is to clean up process state during tests and refresh the extraction/runtime stack before changing the overall playback architecture.
- Established a concrete direction for long-term automation: user-level
systemdorchestration with scheduled playback profiles.
Pending Tasks
- Update and re-test
yt-dlpextraction in verbose mode. - Install or validate
Denoif the extractor requires a JS runtime. - Re-check
mpvversion compatibility and confirm audio output path behavior. - Temporarily harden stop scripts to kill all
mpvinstances during debugging. - Validate the proposed
systemd --userambient-audio orchestration design with real playlists and schedules.
Evidence
- source_file=2026-04-17.sessions.jsonl, line_number=7, event_count=0, session_id=15e193ce4fde669ec06f627d0b3db310707ba364a33be238ba3c2e93098b4a58
- event_ids: []