I don't know anything about Kodi, but you can get YouTube videos without allowing Google to sniff your privates:
sudo apt-get install youtube-dl
I've found youtube-dl to work well for my purposes, and it's actively maintained. Also on GitHub
UPDATE Nov 12,2020:
@Hagbard informed me that youtube-dl has been "taken down" through the DMCA. The good ...
In this review, RPi 4 was able to play a 1080p30 Youtube video smoothly, but not 1080p60. There was observable screen tearing, but I'd expect the situation to improve in this regard as Raspbian is polished for RPi 4 support.
Note that there's also a method to offload the video playback from the browser to an external video player, which sometimes was the ...
Here is how I pipe my HIK IP camera to youtube. This does NOT include audio, and is NOT a USB camera, but perhaps it helps [NOTE: Youtube requires an audio stream, even with a video only stream]. (this is an old script, I have better BASH coding standards today).
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # Server URL
I managed to get it to work on YouTube Live with the following command:
ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero \
-f v4l2 -input_format h264 -i /dev/video0 -codec:v copy \
-acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/REMOVED
I can set the resolution by doing:
Just as a note you may want to not use Raspberry Pi's for this purpose, they will need more maintenance (SD cards die), however, this is completely possible. So, I would recommend making a clone of the SD card and be prepared to service the kiosks or ensure there is at least a semi-technical person (just in case there is an issue) Maybe stock pile spare SD ...
There could be one or more issues going on:
Your display might not be 1080p capable
The content you are watching may be out of sync of what the display is capable of.
Your internet connection may be bad.
Let me know what the issue may be.
I have just checked your test video and it works fine in the latest Pale Moon, with sound.
Pale Moon browser is a fork of Firefox which supports older Firefox addons (which Firefox dropped after version 52). It is slower than Chromium but requires significantly less RAM, so it can actually outperform Chromium on a system which is short on memory.
Pale Moon ...
Try playing the downloaded file with Firefox using File->Open.
If doesn't work, check that you have the AAC codecs installed using ffmpeg -codecs.
If playing the local file does work, then, as outlined here you should start Firefox with MOZ_DISABLE_CONTENT_SANDBOX=1 env variable, or whitelist the directory where the codec libraries are located in, e.g. ...
Following the instruction of a closed ticket on the youtube addon git repository regarding Ubuntu I did this on my Raspi3 with OSMC:
sudo pip uninstall pyOpenSSL
After uninstalling pyOpenSSL I cleared the settings of the addon and I signed in again two times. Now the addon is working again.
Just run apt search video editor and then apt install <PackageName> for a package you like. However all of those weren't built for raspberrypi, so they'll lag and not fully functional. I've actually written a simple one that doesn't lag as much, but it isn't descent as well... RPI is just too weak to handle a good one.