LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2023, 09:52 PM   #1
clsgis
Member
 
Registered: Nov 2007
Posts: 37
Blog Entries: 4

Rep: Reputation: 5
VLC command to broadcast desktop audio on my LAN?


I want to multicast my desktop audio stream on my household LAN, so I can play it simultaneously on small computers around the house.
I found instructions on the VideoLanClient site, for transcoding an "input stream" and serving it on the LAN. The same page has a VLC command line for the small computers to receive and play the stream.
https://wiki.videolan.org/Documentat...Line_Examples/

I'm stuck. How do I tell VLC to use the KDE (or whatever) desktop audio mix for its "input stream"?
The GUI VLC has an "open media" dialog with a capture mode selector. One of the options is "Desktop" but how do I say that on the vlc command line? And how do I tell it audio only. We don't need the video.


I'm a complete newbie to audio streaming and multimedia. Fairly comfortable with KDE and Linux basics.
 
Old 12-16-2023, 07:42 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
I think it starts by selecting streaming then use a capture device. From there you may just try it and see. Otherwise next question would be how to get the capture device to work.

Not sure VLC would be best choice. https://unix.stackexchange.com/quest...hrough-network

Last edited by jefro; 12-16-2023 at 07:44 PM.
 
Old 12-16-2023, 09:55 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I think it may be VLC -- Media -- stream -- select the files to stream then -- stream -- then the destination -(the mode is now set and done). Remote devices can then select what was configured to be streamed.

If you only want the audio on a video then either the end point can limit that or you could use ffmpeg to extract the audio to a separate file and stream only the audio.

How to do all that from the cli would seem to need a bit deeper digging, but probably possible. (using ffmpeg is normally cli).

Interesting enough I found that if you select the icecast destination that you can easily select the audio only, and it even shows the command line for that..

Last edited by computersavvy; 12-16-2023 at 10:01 PM.
 
  


Reply

Tags
audio, multimedia, vlc stream alsa audio



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 10:48 PM
Broadcast without broadcast Mammuth Linux - Networking 1 10-01-2006 04:58 PM
video broadcast on lan sharadshankar Linux - Software 1 01-08-2006 10:50 AM
Broadcast tv on a LAN orvtech.com Linux - Software 1 02-07-2005 07:48 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration