这是indexloc提供的服务,不要输入任何密码
Skip to content

Issue with hls YouTube streams #16594

@raziel711

Description

@raziel711

mpv Information

mpv v0.40.0-218-g7bfc03852 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Jul 22 2025 07:10:13
libplacebo version: v7.351.0 (v7.351.0-23-g69653ce-dirty)
FFmpeg version: N-120345-g080dc4cf5
FFmpeg library versions:
   libavcodec      62.8.100
   libavdevice     62.0.100
   libavfilter     11.3.100
   libavformat     62.1.103
   libavutil       60.6.100
   libswresample   6.0.100
   libswscale      9.0.100

Important Information

- Platform version: Windows 11 Pro 24H2 26100.4652
- GPU model, driver and version: NVIDIA RTX A500 Laptop GPU, RTX Enterprise Driver 573.38
- Source of mpv: https://github.com/zhongfly/mpv-winbuild/releases
- Latest known working version: Unknown; the issue is present even on the oldest available zhongfly builds
- Issue started after the following happened:  I can't say since the problem appears to occur randomly. 
- yt-dlp version: 2025.07.21

Reproduction Steps

Play a YouTube video using mpv --no-config --ytdl-raw-options=format-sort="proto:m3u8,codec:h264" URL

Expected Behavior

The video should play without any errors and fully cache.

Actual Behavior

Sometimes the video will play fine, but other times the console will initially show the following errors hls: keepalive request failed:

Image

Then, there will be multiple instances of hls: segment X of playlist 0 failed too many times, skipping:

Image

After this, mpv will no longer cache any more of the video.

I cannot give any specific links since this appears to occur randomly; if I do encounter this error, then exiting and running the command mpv --no-config --ytdl-raw-options=format-sort="proto:m3u8,codec:h264" URL on the same link will work as intended.

One thing I've noticed is that this error seems to only happen with h264 videos. I haven't encountered those errors with avc and opus or with vp9 videos.

Log File

mpv.log

Sample Files

Any h264 YouTube link should eventually cause the errors.

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions