Stream screen and speaker audio together

About encoding, codec settings, muxers and filter usage
FilippoChiappo
New Cone
New Cone
Posts: 1
Joined: 02 Feb 2020 18:00

Stream screen and speaker audio together

Postby FilippoChiappo » 02 Feb 2020 18:56

Hi,
I would like to stream my screen and the audio that came from the speakers to a chromecast clone in DLNA way.
For the format and encoding of the stream I use this configuration: HTTP, mpeg-ts, mpeg4 (video), mp3 for audio.

Code: Select all

:sout=#transcode{vcodec=mp4v,scale=Auto,acodec=mp3,ab=128,channels=1,samplerate=44100,scodec=none}:http{mux=ts,dst=:8080/video.mpeg} :sout-all :sout-keep
This encoding is acceptated by my chromecast clone.

Now, I can only stream one of them (video and audio) at time, because if I stream togheter, audio and desktop, with the input-slave option VLC transmit only the desktop and forget the audio, which is in input-slave mode. Since I deduced that screen:\\ and dshow:\\ they don't fit together.
The debug is here: [url]https://drive.google.com/file/d/1URAp4RW6WRyt3iQGHGuVL1kNqKs_zw2G/view?usp=sharing[/url]

To bypass this problem, I used the idea of creating before a RTSP stream of the audio (captured by Strereo Mix), than I create the principal stream in HTTP of the Desktop where I included, with the input-slave, the RTSP streaming. But also this technique did not work. Also in this case VLC transmitted only the video.
The debug is RTSP HTTP audio video: [url]https://drive.google.com/file/d/1fuPHuaxO0y_grvJ6IrpAPuYpVQX0czJS/view?usp=sharing[/url]

Now I ask you, Is there a solution of my problem?, Can I stream the desktop and the audio simultaneously?

Thank you

todecideaname
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2020 01:18

Re: Stream screen and speaker audio together

Postby todecideaname » 25 Feb 2020 22:31

Hey, have you tried to select the audio device on the 'capture device' settings? There's a "video mode" menu, with your web camera, or tv capture, if you have one, and an audio, with the options "none", and "the name of your mic".


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 21 guests