YunoHost-Apps / invidious_ynh

Invidious package for YunoHost
https://invidio.us/
GNU General Public License v3.0
20 stars 7 forks source link

Videos don't play on 22.03.03~ynh1 #83

Open kuba-orlik opened 2 years ago

kuba-orlik commented 2 years ago

Describe the bug

While playing a video on 22.03.03~ynh1, it never starts. There are following errors in the console:

Content Security Policy: The page’s settings observed the loading of a resource at blob:https://my-domain.com/06be9713-149f-4f41-b0e7-86035182ed30 (“script-src”). A CSP report is being sent.

VIDEOJS: WARN: Problem encountered with playlist 5-placeholder-uri-5. HLS request errored at URL: [https://invidious.my-domain.com/videoplayback?expire=16480…t8NovTeGFrXgR03cun8SO&host=rr1---sn-4g5edns7.googlevideo.com](https://invidious.my-domain.com/videoplayback?expire=1648076500&ei=c1I7YqCDPdDi1gbI9IyYBw&ip=159.69.83.182&id=o-AA51iSKB-Scu1fz3K80MH0m4E79TE7yDW4m2I1y9ccnN&itag=399&source=youtube&requiressl=yes&mh=ki&mm=31%2C29&mn=sn-4g5edns7%2Csn-4g5e6nze&ms=au%2Crdu&mv=u&mvi=1&pl=25&vprv=1&mime=video%2Fmp4&gir=yes&clen=126861775&dur=881.549&lmt=1648053468067518&mt=1648054159&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgQFJrVSpl8sct77CYLqj9opxC1G5Hn5xaZ2iN5kVvmgkCICoVk57lo33m_qPhp3bhUJSZVwlkDJ1LPckKrjL6NYB4&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRAIgaDK4c5OZa540UXvDl0jEDBZgwwO4T5cRrvfAi2bZcIICIFIMqV5AN5Wr-CTIObBSnh6t8NovTeGFrXgR03cun8SO&host=rr1---sn-4g5edns7.googlevideo.com) Switching to playlist 2-placeholder-uri-2.

VIDEOJS: WARN: Problem encountered with playlist 2-placeholder-uri-2. HLS request errored at URL: [https://invidious.my-domain.com/videoplayback?expire=16480…t8NovTeGFrXgR03cun8SO&host=rr1---sn-4g5edns7.googlevideo.com](https://invidious.my-domain.com/videoplayback?expire=1648076500&ei=c1I7YqCDPdDi1gbI9IyYBw&ip=159.69.83.182&id=o-AA51iSKB-Scu1fz3K80MH0m4E79TE7yDW4m2I1y9ccnN&itag=396&source=youtube&requiressl=yes&mh=ki&mm=31%2C29&mn=sn-4g5edns7%2Csn-4g5e6nze&ms=au%2Crdu&mv=u&mvi=1&pl=25&vprv=1&mime=video%2Fmp4&gir=yes&clen=23450121&dur=881.549&lmt=1648046471577932&mt=1648054159&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgP_HlJ1g5Fil8wizCTxAAcGvKl82LZ6h2RIyJINv_D3ICIQDUhR8P6G0fHhcZOtUvHvMBmPd2cN70lwEDJBXHzqzsUg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRAIgaDK4c5OZa540UXvDl0jEDBZgwwO4T5cRrvfAi2bZcIICIFIMqV5AN5Wr-CTIObBSnh6t8NovTeGFrXgR03cun8SO&host=rr1---sn-4g5edns7.googlevideo.com) Switching to playlist 1-placeholder-uri-1.

In the network inspector I can see it tries to load the same chunk of video over and over again.

Rolling back to 21.09.29~ynh1 fixes the issue

Context

Steps to reproduce

Expected behavior

The video starts playing

ericgaspar commented 2 years ago

is your Preferred video qualitysetting set to DASH? if yes can you set it to HD720?

kuba-orlik commented 2 years ago

It was in fact set to DASH. I've tried changing the quality to HD270, Medium and Small. The error occurs for each of those

ebouaziz commented 2 years ago

Hi, I have the exact same issue. Had a 2021 version working, updated to 22.03.03 then 22.03.23 and the videos would not start.

Nginx logs show "upstream prematurely closed connection while reading upstream" errors.

Firefox console shows some "Content Security Policy: The page's settings observed the loading of a resource at blob:https://..." errors too (I have no idea if this is relevant to the issue).

In my case, switching from DASH to HD720 allows videos to play again in Firefox.

Note that the DASH mode works on a Chome-based browser (tested with Vivaldi). Edit: nope, my mistake...

regards, Emmanuel

ericgaspar commented 2 years ago

I suspect Crystal to be the culprit here. Crystal is updated from APT repository and may not be supported by Invidious... I have Crystal 1.3.2 installed and DASH is not working as it should.

edit: cf https://github.com/iv-org/invidious/issues/2864

edit2: I have downgraded Crystal to version 1.2.2 (apt install crystal1.2). The video still doesn't work :/

ebouaziz commented 2 years ago

Crystal 1.2.2 not helping here either. Also, HD720 does not work on all videos.