Page 1 of 1

Create a multicast stream

Posted: 25 Jun 2023 11:04
by support_fxtdigital
I need to create a stream multicast using libVLC.

Now I used the player with command line:
vlc --intf dummy -vvv file:///C:/temp/Test.mp4 --sout="#rtp{mux=ts, dst=239.255.0.1, port=5004, sap, name=TEST}" :no-sout-all :sout-keep

How make the same using libVLC?

Thanks

Re: Create a multicast stream

Posted: 25 Jun 2023 11:55
by RĂ©mi Denis-Courmont
You don't. You just create a VLC child process with that same command line.

LIBVLC is a playback library. There are plans to add proper APIs for output but they have not been actualised so far.

Besides you should always create a separate process where possible - it's more robust.