mpv-player / mpv

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

mpv cannot play but PotPlayer can play the video #14550

Closed zhouxinghong closed 1 month ago

zhouxinghong commented 1 month ago

mpv Information

mpv v0.38.0-601-gf470b63a Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jul 12 2024 00:09:45
libplacebo version: v7.349.0 (v7.349.0-dirty)
FFmpeg version: N-116241-g70c6b904b
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

yt-dlp version
2024.07.09

Other Information

Reproduction Steps

mpv --referrer="https://cdn3.turboviplay.com/" "https://cdn3.turboviplay.com/data1/xxxx" [ytdl_hook] ERROR: [generic] Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>) [ytdl_hook] youtube-dl failed: unexpected error occurred [ffmpeg/demuxer] hls: Could not find codec parameters for stream 0 (Video: png, none): unspecified size [ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options ● Video --vid=1 (png)

Expected Behavior

mpv can play the video

Actual Behavior

mpv cannot play but PotPlayer can play the video

Log File

mpv.zip


image

Sample Files

image

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

CounterPillow commented 1 month ago

that's not a complete log file as produced by --log-file.

zhouxinghong commented 1 month ago

Almost all streaming media cannot be played and the above errors appear. . .

CounterPillow commented 1 month ago

Thank you for now editing your initial response with the required information (log file). From your log file, this appears to be the same issue as #13978. Is there any particular reason why you've opened a new issue?

zhouxinghong commented 1 month ago

Because I don't know if you have fixed it! This problem keeps coming back...

I didn't report this bug until I was sure the problem was with mpv and not the streaming server. Hope you can fix it.

Thanks again for providing mpv, such a great media player.

zhouxinghong commented 1 month ago

What operating system are you using? What operating system CPU are you using? What operating system graphics card are you using? What MPV version are you using?

zhouxinghong commented 4 weeks ago

You can really try it in a PotPlayer environment to see the player effect: The example link is in the log file

zhouxinghong commented 1 week ago

There is a great solution to this problem. Are you interested?

zhouxinghong commented 5 days ago

@CounterPillow Hello everyone! Since the issue was previously closed so I'm reopening it and offering a solution that works:

logs

 mpv --referrer='https://cdn3.turboviplay.com' 'https://cdn3.turboviplay.com/data1/H7LK7v5MU8SV1LIB5oAF/H7LK7v5MU8SV1LIB5oAF480.m3u8'
[ffmpeg/demuxer] hls: Could not find codec parameters for stream 0 (Video: png, none): unspecified size
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
● Video  --vid=1  (png)
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] error reading packet: Invalid argument.
[lavf] ...treating it as fatal error.
(Paused) V: 01:55:41 / 01:55:41 (100%) Cache: 0.0s

The key solution to fix the issue is as follows: demux: adaptive: skip PNG junk when probing