WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline aus9

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

Offline aus9

  • Full Member
  • ***
  • Posts: 177
Re: How I stream youtube with alsa on 64 bit
« Reply #1 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.