Tiny Core Linux

General TC => General TC Talk => Topic started by: aus9 on June 15, 2020, 08:14:51 PM

Title: How I stream youtube with alsa on 64 bit
Post by: aus9 on June 15, 2020, 08:14:51 PM
youtube normally works OK with pulseaudio but I needed to do some extra bits to get it to stream using alsa.

Code: [Select]
mkdir -p ~/.local/share/vlc/lua/playlist/
tce-load -i wget ca-certificates vlc
cd ~/.local/share/vlc/lua/playlist/
/usr/local/bin/wget -nc --no-check-certificate \
https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
cvlc https://youtu.be/nIN3IE3DHqc

the wget command does not need ca-certificates....its for vlc

Natually, once you have that downloaded youtube.lua file....and have some kind of  home file persistence
you can eliminate some steps

Instead of cvlc <url> Open GUI ...press Crtl + n to open network url....paste url you get from web browser.

web browser does not need to know how to play audio for youtube.

I am showing a screenshot of the command mode for vlc streaming so you know you can dismiss some errors.
sound of course is good via alsa.

https://imgur.com/fayJLpC
Title: Re: How I stream youtube with alsa on 64 bit
Post by: aus9 on June 15, 2020, 08:58:16 PM
from time to time, youtube changes things then you will need to delete that lua file and get a fresh one.