Use specific port for output audio and video in streaming

About encoding, codec settings, muxers and filter usage
triplebit
Blank Cone
Blank Cone
Posts: 61
Joined: 19 Mar 2008 21:05

Use specific port for output audio and video in streaming

Postby triplebit » 10 Jul 2011 14:14

I use LibVlc.dll in my application.
I saw in the documentation that the audio output stream port may be set as different that the video.
Can they share the same output port?
What is the advantage of using specific port for each?
Regards
Kishon

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

Re: Use specific port for output audio and video in streamin

Postby Rémi Denis-Courmont » 10 Jul 2011 15:42

I assume you mean RTP output? RTP cannot deal with multiple concurrent sessions on the same port. To share port for audio and video, you need to multiplex (to MPEG-TS) first.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

triplebit
Blank Cone
Blank Cone
Posts: 61
Joined: 19 Mar 2008 21:05

Re: Use specific port for output audio and video in streamin

Postby triplebit » 11 Jul 2011 06:32

Thanks Remi
Ictually I use UDP with the same port for both.
Can I use specific ports for that also?
Is there any document that elaborates on that?
Regards
Kishon


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests