mpv-player / mpv

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

yt-dlp bilibili: [ffmpeg] https: inflate return value: -3, incorrect header check #14545

Open ahaoboy opened 2 months ago

ahaoboy commented 2 months ago

mpv Information

mpv v0.38.0-586-gdaa6068d Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jul  8 2024 22:09:45
libplacebo version: v7.349.0 (v7.349.0-dirty)
FFmpeg version: N-116208-gb6c43328e
FFmpeg library versions:
   libavcodec      61.10.100
   libavdevice     61.2.100
   libavfilter     10.2.102
   libavformat     61.5.101
   libavutil       59.28.100
   libswresample   5.2.100
   libswscale      8.2.100

Important Information

Reproduction Steps

Download yt-dlp and add configuration

script-opts=ytdl_hook-ytdl_path=portable_config/yt-dlp/yt-dlp

yt-dlp can download videos correctly

 ./portable_config/yt-dlp/yt-dlp.exe  -vU 'https://www.bilibili.com/bangumi/play/ss1704'
./mpv.com 'https://www.bilibili.com/bangumi/play/ss1704'

./mpv.com 'https://www.bilibili.com/bangumi/play/ss1704' --gpu-debug --log-file=./log.log
[ffmpeg] https: inflate return value: -3, incorrect header check
[ffmpeg] https: inflate return value: -3, incorrect header check
[ffmpeg] https: inflate return value: -3, incorrect header check
[ffmpeg] https: inflate return value: -3, incorrect header check
[ffmpeg] https: inflate return value: -3, incorrect header check

When I added cookies, it still happened

ytdl-raw-options=cookies=portable_config/yt-cookies.txt,mark-watched=

Expected Behavior

The video can be played without any warning message

Actual Behavior

The terminal keeps outputting warning messages, and the video cannot be played.

Log File

log.log

Sample Files

No response

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

ahaoboy commented 2 months ago

It seems that this error only occurs in certain videos. For example, the following link can be played after adding cookies.

 ./mpv.com 'https://www.bilibili.com/video/BV1Ba411g7EC'
Youxikong commented 1 month ago

I have the same problem. I found I can turn off subtitle to avoid it. Maybe the reason is that mpv doesn't support danmaku which yt-dlp provides to mpv.

ahaoboy commented 1 month ago

I have the same problem. I found I can turn off subtitle to avoid it. Maybe the reason is that mpv doesn't support danmuku which yt-dlp provides to mpv.

Thank you~
This is a temporary solution https://www.reddit.com/r/youtubedl/comments/wpq4y0/ytdlp_how_to_ensure_download_of_english_subtitles/

ytdl-raw-options=ignore-config=,sub-lang=en,write-sub=,write-auto-sub=
Youxikong commented 1 month ago

I'm a Chineser speaker, and this way is not so reliable, other necessary subtitles will be filtered. According to document, I add this line to my conf, it works fine.

ytdl-raw-options-append = sub-langs=-danmaku