mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.39k stars 2.91k forks source link

mpv not playinmg youtube livestream properly #15257

Open solomoncyj opened 1 day ago

solomoncyj commented 1 day ago

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.0.2
FFmpeg library versions:
   libavcodec      61.3.100
   libavdevice     61.1.100
   libavfilter     10.1.100
   libavformat     61.1.100
   libavutil       59.8.100
   libswresample   5.1.100
   libswscale      8.1.100

Important Information

- Platform version: fedora 41
- GPU model, driver and version: mesa 4400
- Source:dnf
- Introduced in version: n/a

Reproduction Steps

mpv 'https://www.youtube.com/watch?v=UhmOMIGrdRY' --no-config --profile=fast --hwdec=yes --gpu-debug --log-file=output.txt

Expected Behavior

the stream to play normarly

Actual Behavior

the stream looped a small 2 second segment and was unable to play normaly, i havd to manually seek to play the next part and the following warninjg appeard in the console: image

Log File

output.txt

Sample Files

No response

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

llyyr commented 1 day ago

I also get some errors and it seems specific to this specific youtube stream somehow, can you reproduce this on any other youtube stream? I can't

solomoncyj commented 1 day ago

heppens to all live streams

mrfragger commented 23 hours ago

yea if live stream it won't work but if it's a recorded live stream then no problem in mpv.conf

ytdl-raw-options = extractor-args="youtube:skip=hls"
ytdl-format = bestvideo*[height<=?360]+worstaudio/worst
image
sfan5 commented 18 hours ago

This is likely due to broken DASH support in ffmpeg. Nothing to fix here.

solomoncyj commented 18 hours ago

This is likely due to broken DASH support in ffmpeg. Nothing to fix here.

dosent yt-dlp also have support of m3u8 manifests? why not use that

sfan5 commented 17 hours ago

ytdl_hook should be using that by default unless you have enabled use_manifests. However, IIRC in certain cases with some youtube content only DASH is possible.

solomoncyj commented 17 hours ago

oh wait yes the stream was in manifestless mode 🤦