mpv-player / mpv-player/mpv

Very slow HTTP fetch on a specific host

Open
#12,778 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version
mpv v0.36.0-431-gf40bbfec Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on Sep 28 2023 04:24:02
libplacebo version: v6.338.0-1-gd322515-dirty
FFmpeg version: N-112203-gb643af4ac
FFmpeg library versions:
   libavutil       58.25.100
   libavcodec      60.27.100
   libavformat     60.13.100
   libswscale      7.3.100
   libavfilter     9.11.100
   libswresample   4.11.100

If you're not using git master or the latest release, update.
Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps
  • mpv https://web.lotuscdn.vn/2023/10/30/ecb56ab1476e2b5dcd9f04456f9c89b0_1698619279984-4gzz6xob0v.mp4 -v --no-ytdl --no-config --log-file=lotus.txt
  • Video loads very slowly and checking mitmproxy log it looks like the MPV keeps using Range request that server refuse to load
  • Every single video from this site has the similar issue

Video: https://imgur.com/UOjjP2j

Try to reproduce your issue with --no-config first. If it isn't reproducible
with --no-config try to first find out which option or script causes your issue.

Describe the reproduction steps as precise as possible. It's very likely that
the bug you experience wasn't reproduced by the developer because the workflow
differs from your own.

Expected behavior
  • Open this link in web browsers
  • Load superfast with zero delay

So video should be able to load as fast as in browsers

Actual behavior

Video loads slowly like stoneage

Log file

Make a log file made with -v -v or --log-file=output.txt, paste it to
https://0x0.st/ or attach it to the github issue, and replace this text with a
link to it.

Sample files

Sample files needed to reproduce this issue can be uploaded to https://0x0.st/
or similar sites. (Only needed if the issue cannot be reproduced without it.)
Do not use garbage like "cloud storage", especially not Google Drive.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with the exact mpv command in the issue using --no-config and inspect lotus.txt alongside the mitmproxy observations. Compare the HTTP Range requests for this host with browser behavior; the issue is resolved when the sample video loads promptly without the server-rejected request pattern.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.