colloqi / piSignage

Digital Signage Player Software for Raspberry Pi, more details at
http://pisignage.com
585 stars 251 forks source link

livestreamer/ydl error WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. #247

Open djinlemage opened 6 months ago

djinlemage commented 6 months ago

Hi, I am currently testing Pi Signage on a server hosted in my infrastructure. I have a Raspberry Pi 3b+ Despite many attempts, I cannot play YouTube videos. The logs indicate: 8000: info: livestreamer/ydl error WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. I of course re-configured my local information, without success in making it work.

I tested the asset on the Android version, the video works correctly.

The command : sudo -H pip install --upgrade youtube-dl

Returns: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already up-to-date: youtube-dl in /usr/local/lib/python2.7/dist-packages (2021.12.17)

Raspberry Pi OS is up to date

Is there anything I can do ?

Thanks in advance.

hitesh83 commented 6 months ago

I too had the same issues when YouTube-DL failed due to some copyright issues, The workaround for this is to embed the YT link in HTML and upload an HTML file in the playlist. basic HTML is as below,

<iframe width="1280" height="720" src="_Put your Embedded YT Link here_" frameborder="0" allow="accelerometer; autoplay=1; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen allow="autoplay"></iframe>

you may add CSS to suit your use case.