zaps166 / QMPlay2

QMPlay2 is a video and audio player which can play most formats and codecs.
GNU Lesser General Public License v3.0
872 stars 180 forks source link

yt-dlp doesn't download 360 video format. #450

Open beew opened 3 years ago

beew commented 3 years ago

Hi,

Built qmplay2 from master, it works except with yt-dlp the videos are not in 360 deg format, but a 'flatten out' version, e.g https://www.youtube.com/watch?v=hNAbQYU0wpg

In QMPlay2 go to Playlist > Add > Address and then play the video, it is not in 360 degree format.

With youtube-dl 360 degree works but the stream stutters and stalls due to buttering (put youtube-dl in ~/.config/QMPlay2 and rename it yt-dlp)

OS is Ubuntu 20.04

See also my post here with the appimage.

https://github.com/zaps166/QMPlay2/issues/441#issuecomment-952596119

zaps166 commented 3 years ago

yt-dlp returns an URL to 360 video in different mapping. youtube-dl with my custom user agent returned URL to video with spherical image (this is supported by QMPlay2).

beew commented 3 years ago

So is there any fix?

zaps166 commented 3 years ago

I don't know yet.

beew commented 1 year ago

Hi, youtube-dl has fixed its stuttering problem. I tried again replacing yt-dlp with youtube-dl (and renaming). Spherical view doesn't get flatten but very distorted. You can see it could kind of work maybe with some tweaking.

zaps166 commented 1 year ago

Hmm, youtube-dl is still maintained. However it's not released yet, so how can I test it quickly?

beew commented 1 year ago

You just download the script from http://ytdl-org.github.io/youtube-dl/download.html

There have been a lot of commits since it went dead in 2021, they seemed to have backported some features from yt-dlp

https://github.com/ytdl-org/youtube-dl/commits/master

zaps166 commented 1 year ago

You just download the script from http://ytdl-org.github.io/youtube-dl/download.html

But it's 2021, very old. I've tried it and 360 video stutters a lot, buffering was very slow, but image was good.

beew commented 1 year ago

Hi, I just tested again.

This time I got the git version of youtube-dl from https://github.com/ytdl-org/youtube-dl/commits/master I cd into the folder and type make to create the youtube-dl binary.

Rename it yt-dlp and put it in ~./config/QMPlay2

The initial buffering might take a bit longer but no stuttering. 360 degree videos also works perfectly.

zaps166 commented 1 year ago

Ok. If they'll release it, I consider adding an option to choose yt-dlp or youtube-dl.