QMPlay2 icon indicating copy to clipboard operation
QMPlay2 copied to clipboard

yt-dlp doesn't download 360 video format.

Open beew opened this issue 2 years ago • 9 comments

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

beew avatar Oct 27 '21 18:10 beew

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).

zaps166 avatar Oct 28 '21 09:10 zaps166

So is there any fix?

beew avatar Oct 28 '21 17:10 beew

I don't know yet.

zaps166 avatar Oct 28 '21 22:10 zaps166

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.

beew avatar Feb 07 '23 17:02 beew

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

zaps166 avatar Feb 07 '23 19:02 zaps166

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

beew avatar Feb 07 '23 21:02 beew

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.

zaps166 avatar Feb 07 '23 21:02 zaps166

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.

beew avatar Feb 08 '23 06:02 beew

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

zaps166 avatar Feb 08 '23 10:02 zaps166