Streaming screen capture + audio

About encoding, codec settings, muxers and filter usage
vangloria
Blank Cone
Blank Cone
Posts: 24
Joined: 02 May 2009 06:21

Streaming screen capture + audio

Postby vangloria » 14 Oct 2009 23:13

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

vangloria
Blank Cone
Blank Cone
Posts: 24
Joined: 02 May 2009 06:21

Re: Streaming screen capture + audio

Postby vangloria » 15 Oct 2009 01:13

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?

vangloria
Blank Cone
Blank Cone
Posts: 24
Joined: 02 May 2009 06:21

Re: Streaming screen capture + audio

Postby vangloria » 15 Oct 2009 14:23

There's a typo in the second code snippet. I fixed it, but still no luck.

vangloria
Blank Cone
Blank Cone
Posts: 24
Joined: 02 May 2009 06:21

Re: Streaming screen capture + audio

Postby vangloria » 20 Oct 2009 01:24

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

vangloria
Blank Cone
Blank Cone
Posts: 24
Joined: 02 May 2009 06:21

Re: Streaming screen capture + audio

Postby vangloria » 20 Oct 2009 01:43

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.

tomills
New Cone
New Cone
Posts: 2
Joined: 05 Oct 2009 15:19

Re: Streaming screen capture + audio

Postby tomills » 21 Oct 2009 22:56

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?

liskowgreg
New Cone
New Cone
Posts: 4
Joined: 06 May 2009 00:29

Re: Streaming screen capture + audio

Postby liskowgreg » 30 Dec 2009 04:23

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

liskowgreg
New Cone
New Cone
Posts: 4
Joined: 06 May 2009 00:29

Re: Streaming screen capture + audio

Postby liskowgreg » 30 Dec 2009 04:45

Sorry, spoke to soon. it freezes at the first frame and streaming to file only captures audio :roll:

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: Streaming screen capture + audio

Postby kdh » 30 Dec 2009 05:19

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.

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 27 Jul 2010 20:18

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

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 03 Aug 2010 21:05

Appears it doesn't (slave audio input at least), though bridging mode has some potential...

mehdadoo
New Cone
New Cone
Posts: 3
Joined: 14 Aug 2010 10:38

Re: Streaming screen capture + audio

Postby mehdadoo » 14 Aug 2010 14:04

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!

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 30 Aug 2010 21:15

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?

RoohBear
New Cone
New Cone
Posts: 4
Joined: 08 Aug 2009 18:51

Re: Streaming screen capture + audio

Postby RoohBear » 10 Sep 2010 15:08

Why is it that some command line parameters start with ":" and others start with "--"?

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 18 Nov 2010 00:27

They're interchangeable...I think so anyway...

ady477
New Cone
New Cone
Posts: 3
Joined: 22 Jul 2011 11:12

Re: Streaming screen capture + audio

Postby ady477 » 22 Jul 2011 13:27

is the problem solved? if it is then please suggest me the command line.
regards

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 22 Jul 2011 18:19

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 :)

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Streaming screen capture + audio

Postby rogerdpack » 01 Sep 2011 16:45

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.

vnsakumar
New Cone
New Cone
Posts: 1
Joined: 21 Oct 2013 15:32

Re: Streaming screen capture + audio

Postby vnsakumar » 21 Oct 2013 15:36

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Streaming screen capture + audio

Postby mederi » 21 Oct 2013 17:14

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 24 guests