Page 1 of 1

Streaming screen capture + audio

Posted: 14 Oct 2009 23:13
by vangloria
Is it possible to stream screen capture together with audio from a microphone in windows with vlc? What command line should I use?

Thanks

Juan Herrera

Re: Streaming screen capture + audio

Posted: 15 Oct 2009 01:13
by vangloria
I've tried these two command lines with input-slave. The first gives audio only, the second video only.

Code: Select all

vlc dshow:// :dshow-vdev="None" :dshow-adev="Logitech Mic (Pro 9000)" :input-slave=screen:// :screen-fps=10 --screen-width=640 --screen-height=480 --screen-top=144 --screen-left=192 :sout=#transcode{vcodec=WMV2,vb=1600,scale=1,acodec=wma2,ab=64,channels=1,samplerate=11025}:std{access=file,mux=asf,dst=heck.wmv} --high-priority

Code: Select all

vlc screen:// :screen-fps=10 :screen-width=640 :screen-height=480 :screen-top=144 :screen-left=192 :input-slave=dshow:// :dshow-vdev="None" :dshow-adev="Logitech Mic (Pro 9000)" :input-slave=screen:// :sout=#transcode{vcodec=WMV2,vb=1600,scale=1,acodec=wma2,ab=64,channels=1,samplerate=11025}:std{access=file,mux=asf,dst=heck.wmv} --high-priority
What may be wrong?

Actually I won't be doing streaming; I just want to save to a file. Maybe this won't work with wmv?

Re: Streaming screen capture + audio

Posted: 15 Oct 2009 14:23
by vangloria
There's a typo in the second code snippet. I fixed it, but still no luck.

Re: Streaming screen capture + audio

Posted: 20 Oct 2009 01:24
by vangloria
For anyone stumbling up here I just found a previous post telling it can't be done. It's an input slave problem.

viewtopic.php?f=14&t=66042

It seems input slave is not working right anymore (and a developer wonders why it worked at all in the past):

viewtopic.php?f=14&t=66259
http://trac.videolan.org/vlc/ticket/3107

Re: Streaming screen capture + audio

Posted: 20 Oct 2009 01:43
by vangloria
It seems input slave code hasn't been updated for quite long. If I'm correct, this feature is implemented in input.c, in the function sequence

input_Preparse()->Init()->InitPrograms()->LoadSlaves()

But input.c was last updated 2007! (according to copyright on top.)

I'm greatly interested in this, so I'm looking forward to help debugging this.

Re: Streaming screen capture + audio

Posted: 21 Oct 2009 22:56
by tomills
Good to see I am not the only one with this problem, hopefully it will be sorted and I will be able to capture my desktop as well as recording audio from dshow://

but looking at those posts, it seems unlikely?

Re: Streaming screen capture + audio

Posted: 30 Dec 2009 04:23
by liskowgreg
Hey Everyone!

I have been having the same problem and I hope this works sometime soon as well. I have found a work around though. If you open one instance of VLC and stream over HTTP via 127.0.0.1:8080 to transcode the audio to A52 in RAW muxer, and open another instance of VLC setting the input to screen:// and the input-save=http://127.0.0.1:8080 it will work. I know it seems kinda redundant to run two vlc programs, but it's a nifty workaround for now. :D

Re: Streaming screen capture + audio

Posted: 30 Dec 2009 04:45
by liskowgreg
Sorry, spoke to soon. it freezes at the first frame and streaming to file only captures audio :roll:

Re: Streaming screen capture + audio

Posted: 30 Dec 2009 05:19
by kdh
I've found having the audio feed as your input slave works best.

something like this:

Code: Select all

vlc screen:// :input-slave=:dshow-adev="Logitech Mic (Pro 9000)" :screen-fps=10 --screen-width=640 --screen-height=480 --screen-top=144 --screen-left=192 :sout=#transcode{vcodec=WMV2,vb=1600,scale=1,acodec=wma2,ab=64,channels=1,samplerate=11025}:std{access=file,mux=asf,dst=heck.wmv} --high-priority
the above command is not 100% right on, but its close enough to get you started.

Re: Streaming screen capture + audio

Posted: 27 Jul 2010 20:18
by rogerdpack
It seems input slave is not working right anymore (and a developer wonders why it worked at all in the past):
...http://trac.videolan.org/vlc/ticket/3107
anybody know if screen capture + audio works yet? (well, using the default screen capture device...you can probably use DirectShow to get it to work, but I'm looking for something a bit more cross platform)...

?
Thanks.
-r

Re: Streaming screen capture + audio

Posted: 03 Aug 2010 21:05
by rogerdpack
Appears it doesn't (slave audio input at least), though bridging mode has some potential...

Re: Streaming screen capture + audio

Posted: 14 Aug 2010 14:04
by mehdadoo
It is totally impossible to create an screen capture for windows using vlc, because remote control for win32 is broken! Yes you can do it but, you should turn on vlc GUI and tell your end user to push stop buttn on vlc GUI! hehe, i wasted days of my life figuring out how to fix this problem, but nothing works!

Re: Streaming screen capture + audio

Posted: 30 Aug 2010 21:15
by rogerdpack
It is totally impossible to create an screen capture for windows using vlc, because remote control for win32 is broken! Yes you can do it but, you should turn on vlc GUI and tell your end user to push stop buttn on vlc GUI! hehe, i wasted days of my life figuring out how to fix this problem, but nothing works!
How is it broken? Is this a bug? Has it been filed on trac?

Re: Streaming screen capture + audio

Posted: 10 Sep 2010 15:08
by RoohBear
Why is it that some command line parameters start with ":" and others start with "--"?

Re: Streaming screen capture + audio

Posted: 18 Nov 2010 00:27
by rogerdpack
They're interchangeable...I think so anyway...

Re: Streaming screen capture + audio

Posted: 22 Jul 2011 13:27
by ady477
is the problem solved? if it is then please suggest me the command line.
regards

Re: Streaming screen capture + audio

Posted: 22 Jul 2011 18:19
by rogerdpack
if you download uscreencapture, use it as your input video directshow device, and use audio in for the input audio directshow device. I guess anyway :)

Re: Streaming screen capture + audio

Posted: 01 Sep 2011 16:45
by rogerdpack
For followers, https://github.com/rdp/screen-capture-recorder-program is what I recommend now as the directshow input video device.
And if you have vista+ then you can use https://github.com/rdp/virtual-audio-ca ... ber-device to capture the "record what you hear" output directshow device. Seems to work well.

Re: Streaming screen capture + audio

Posted: 21 Oct 2013 15:36
by vnsakumar
You can see the detailed tutorial for capturing desktop along with audio using vlc player in following link

http://www.youtube.com/watch?v=aaEVOlaDTuY

Try this.

Re: Streaming screen capture + audio

Posted: 21 Oct 2013 17:14
by mederi
https://forum.videolan.org/viewtopic.ph ... 65#p379492
...
Screen video + audio, a bit crazy with VLC, but obviously possible :)
http://www.youtube.com/watch?v=KGgfkN_tRus
Is it possible to do it all in one instance of VLC without external muxer (Avidemux)?
...
Record screen in one instance of VLC, then audio in other one at the same time. Then mux both tracks together in VLC, too. Easy :D