Desktop/Screen capture/streaming including audio on Linux

*nix specific usage questions
cly
New Cone
New Cone
Posts: 1
Joined: 07 Dec 2013 07:28

Desktop/Screen capture/streaming including audio on Linux

Postby cly » 07 Dec 2013 07:34

Hey there,

i'm using VLC on Linux to capture/stream my desktop screen usilng

Code: Select all

vlc screen:// ..
But there is no audio.
How do i add Audio from ALSA or Pulseaudio (or?) into the video stream?

While google tells me many ways to get Audio and Video at the same time with

Code: Select all

dshow
there is nothing usable for linux machines.

Recording and muxing after is not an option; i need a live-Stream.

Thank all!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Desktop/Screen capture/streaming including audio on Linu

Postby Jean-Baptiste Kempf » 10 Dec 2013 15:52

You can try input-slave and alsa:// or pulse://
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Desktop/Screen capture/streaming including audio on Linu

Postby Rémi Denis-Courmont » 15 Dec 2013 02:34

Something like

Code: Select all

screen:// --input-slave pulse://alsa_output.pci-0000_00_1b.0.hdmi-stereo.monitor
The exact name of the PulseAudio monitor source depends on your system.

Note that desktop audio recording (i.e. loopback) is not possible with ALSA by design. You need PulseAudio for that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: Desktop/Screen capture/streaming including audio on Linux

Postby calanor » 23 Mar 2017 10:03

For years the screen and audio capture has worked well in ubuntu 14.04 LTS and vlc 2.0.10 Twoflower (compiled by myself) using --input-slave pulse://alsa_output.pci.......

A few days ago, I changed the hardware and I had to upgrade the kernel to 4.4.0 to support Intel Skylake HD Graphics 530 maintaining the same compiled version of vlc. Now, the audio/video streaming does not work well.

Without audio capturing the screen streaming works fine for hours and hours, but with adding audio capture a few minutes begin to appear drops of video and audio and after hours the stream fails completely. Many times the audio begins to be heard slowed, as in slow-motion.

The commandline:

Code: Select all

cvlc screen:// --screen-fps=25--input-slave pulse://alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1.monitor --sout-transcode-high-priority :sout='#transcode{vcodec=mp2v,vb=8000,acodec=mpga,ab=128,fps=25,width=1280,height=720}:standard{access=udp{ttl=64},mux=ts,dst=239.192.x.x:xxxx,sap,name=TEST_STREAM}'
Any idea what can happen?

Thanks!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests