WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How I stream youtube with alsa on 64 bit  (Read 1691 times)

aus9

  • Guest
How I stream youtube with alsa on 64 bit
« on: June 15, 2020, 11: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
« Last Edit: June 15, 2020, 11:20:33 PM by aus9 »

aus9

  • Guest
Re: How I stream youtube with alsa on 64 bit
« Reply #1 on: June 15, 2020, 11:58:16 PM »
from time to time, youtube changes things then you will need to delete that lua file and get a fresh one.