Page 1 of 1

Desktop/Screen capture/streaming including audio on Linux

Posted: 07 Dec 2013 07:34
by cly
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!

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

Posted: 10 Dec 2013 15:52
by Jean-Baptiste Kempf
You can try input-slave and alsa:// or pulse://

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

Posted: 15 Dec 2013 02:34
by RĂ©mi Denis-Courmont
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.

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

Posted: 23 Mar 2017 10:03
by calanor
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!