Page 1 of 1

Local Video and Streaming Audio output

Posted: 27 Apr 2020 14:11
by balz333
Hello together,

sorry for my bad english but I hope you understand my sentences. I have a question about the VLC player if I want to use local and streaming output together at the same time.

My goal shall be the following but I don't know if this to realize with VLC.

1. From a media file (MP4 Movie) shall only the video part play to the local HDMI ouput
2. The audio part shall via HTTP streaming sended out via network
3. The video part needs a little bit delay, because of the streaming from the audio part it is a little bit slower

Unfortunately with the standard VLC wizard I can't configure this scenario. Maybe somebody can help me with my project.

Many thanks for your help
Mario

P.S. I use VLC player 3.0.8 with Windows

Re: Local Video and Streaming Audio output

Posted: 27 Apr 2020 15:58
by Rémi Denis-Courmont
You need to use the CLI. Please refer to the streaming output documentation.

Re: Local Video and Streaming Audio output

Posted: 27 Apr 2020 16:05
by balz333
That means, it is basically possible? And I can output with the CLI version the video locally too? Sounds great.

Thanks again!
Mario

Re: Local Video and Streaming Audio output

Posted: 27 Apr 2020 21:06
by balz333
I have tried to understand the CLI syntax and started with the first of my questions. For that I used the following command:

vlc file:///"C:/temp/Video/Test.mp4" --sout=#display{sout-display-audio=0}

Unfortunately the audio is still coming out locally (I want only play the video part locally). I oriented at the following CLI description

% vlc input_stream --sout "#module1{option1=parameter1{parameter-option1},option2=parameter2}:module2{option1=…,option2=…}:…"

module1 = display
option1 = sout-display-audio
parameter1 = disable (or 0 ?)

Where is my mistake?

Re: Local Video and Streaming Audio output

Posted: 29 Apr 2020 10:19
by balz333
Hello together,

the first and second point I have find out. But I have no idea for the delay problem. Here my command line until now

vlc file:///"C:/temp/Video/Test.mp4" --delay=-2000 --sout=#duplicate{dst=http{mux=ffmpeg{mux=flv},dst-audio=:8080/},dst=display{noaudio} :no-sout-all :sout-keep

My video part is a little bit ahead the streamed audio. What is the correct parameter to adjust this mismatch?

--delay or --audio-desync or other ?

Thanks for your help!
Mario

Re: Local Video and Streaming Audio output

Posted: 29 Apr 2020 14:12
by balz333
I have now recognized the video is streamed out too with my settings. Not good, only the audio should be streamed.

I hope it is correct that I use the delay parameter to adjust the display delay ?

Is there nobody how can give me please a hint about the audio? This is my current command line

vlc file:///"C:/temp/Video/Test.mp4" --sout=#duplicate{dst=http{mux=ffmpeg{mux=flv},dst-audio=:8080/},dst=display{noaudio, delay=1470} :no-sout-all :sout-keep

Thank you very much!
Mario