Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
ahaoboy opened this issue Jul 14, 2024 · 4 comments
Open
6 tasks done

Comments

@ahaoboy
Copy link

ahaoboy commented Jul 14, 2024

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

  • Platform version: win11
  • GPU model, driver and version: n4080 latest
  • Source: v0.38.0-586-gdaa6068d
  • Introduced in version: v0.38.0-586-gdaa6068d

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:

  • 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.
@ahaoboy
Copy link
Author

ahaoboy commented Jul 14, 2024

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
Copy link

Youxikong commented Aug 10, 2024

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
Copy link
Author

ahaoboy commented Aug 10, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants