Local Video and Streaming Audio output

About encoding, codec settings, muxers and filter usage
balz333
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2020 14:05

Local Video and Streaming Audio output

Postby balz333 » 27 Apr 2020 14:11

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Local Video and Streaming Audio output

Postby Rémi Denis-Courmont » 27 Apr 2020 15:58

You need to use the CLI. Please refer to the streaming output documentation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

balz333
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2020 14:05

Re: Local Video and Streaming Audio output

Postby balz333 » 27 Apr 2020 16:05

That means, it is basically possible? And I can output with the CLI version the video locally too? Sounds great.

Thanks again!
Mario

balz333
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2020 14:05

Re: Local Video and Streaming Audio output

Postby balz333 » 27 Apr 2020 21:06

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?

balz333
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2020 14:05

Re: Local Video and Streaming Audio output

Postby balz333 » 29 Apr 2020 10:19

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

balz333
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2020 14:05

Re: Local Video and Streaming Audio output

Postby balz333 » 29 Apr 2020 14:12

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 33 guests