Stream screen and speaker audio together
Posted: 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.
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
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
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