UDP streaming - Possible to set TOS/DiffServ?

About encoding, codec settings, muxers and filter usage
teo
Blank Cone
Blank Cone
Posts: 15
Joined: 31 Aug 2006 14:01

UDP streaming - Possible to set TOS/DiffServ?

Postby teo » 31 Aug 2006 14:04

Hello,

I'm using VLC to stream several UDP Multicast streams, but I would like to have this traffic prioritized in my switches routers. Is it possible to specify TOS/DiffServ values on the outgoing packets in VLC?

Or is there any other way to make QoS with VLC?


Thanks,
Anders

teo
Blank Cone
Blank Cone
Posts: 15
Joined: 31 Aug 2006 14:01

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby teo » 03 Sep 2006 21:51

Hello,

I'm using VLC to stream several UDP Multicast streams, but I would like to have this traffic prioritized in my switches routers. Is it possible to specify TOS/DiffServ values on the outgoing packets in VLC?

Or is there any other way to make QoS with VLC?


Thanks,
Anders
I figured out this was not possible, so I wrote a patch to enable this.

TheIlliterate
New Cone
New Cone
Posts: 1
Joined: 07 Sep 2006 10:21

Postby TheIlliterate » 07 Sep 2006 11:13

Hi Teo

I read your post in the form that you have beeen able to ome up with a patch that enables the TOS/DSCP options to be set on the VLC player.
Teo I need that patched up player for testing. Can you please share that player with me? I'll be thankfull to you! :)


Thanks
Regards
TheIllterate

teo
Blank Cone
Blank Cone
Posts: 15
Joined: 31 Aug 2006 14:01

Postby teo » 07 Sep 2006 17:41

Hello,

I sent you a patched VLC installer by email.

Cheers,
Anders

robertas
New Cone
New Cone
Posts: 1
Joined: 12 Sep 2006 16:58

Postby robertas » 12 Sep 2006 17:05

Teo,
I read your post about ToS/DiffServ for VLC - this is exactly what I am was looking for. Can you me a copy of this patched VLC version?



TIA,
Robertas

teo
Blank Cone
Blank Cone
Posts: 15
Joined: 31 Aug 2006 14:01

Postby teo » 21 Sep 2006 13:50

Robertos,

If you pm me your email adress I can mail you a patched VLC 0.8.5 Windows version.

Cheers,
Teo

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 21 Sep 2006 15:44

Could you send this patch from a up-to-date tree to vlc-devel@vid.... ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

teo
Blank Cone
Blank Cone
Posts: 15
Joined: 31 Aug 2006 14:01

Postby teo » 22 Sep 2006 14:47

Could you send this patch from a up-to-date tree to vlc-devel@vid.... ?
Actually courmish (?) commit'ed an updated network core with the exact same feature I added. So the only thing missing in the SVN is the GUI to set of the parameter and actually setting the value in the stream out module.

My patch handles only setting of this value from the UDP stream out (Which is what I needed), but ofcourse I can send this if it is of interrest.

rmg
New Cone
New Cone
Posts: 1
Joined: 27 Sep 2006 20:21

Postby rmg » 27 Sep 2006 20:25

Hi teo, it would a nice patch. I'd like to try it too.

flobe
New Cone
New Cone
Posts: 3
Joined: 17 Nov 2008 16:47

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby flobe » 17 Nov 2008 16:54

Is there any new information about DiffServ support in VLC (>= 0.9.4)? I tried to set the DSCP on a UDP stream with the following command line:

vlc.exe --dscp 0x01 "myfile.mp3" :sout=#transcode{acodec=mp4a,ab=32,channels=1}:duplicate{dst=std{access=udp,mux=ts,dst=192.168.6.1:1234}} :ttl=10

Wireshark tells me DSCP is still zero. What is the right command line parameter for setting DSCP?
(using VLC V0.9.4, Windows version).

Thanks in advance,
Flobe.

flobe
New Cone
New Cone
Posts: 3
Joined: 17 Nov 2008 16:47

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby flobe » 20 Feb 2009 15:59

Is there anybody out there who is capable and willing to give some information, whether the --dscp feature in vlc under Windows is working? I really tried to figure out in the documentation how to influence the DSCP value in UDP paket streams, but so far I failed.

ANY hints appreciated (even if it's RTFD, in case there is some information available I missed).

Regards,
Flobe.

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

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby Rémi Denis-Courmont » 20 Feb 2009 18:25

The code is there. Whether it works on Windows is a different matter.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

flobe
New Cone
New Cone
Posts: 3
Joined: 17 Nov 2008 16:47

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby flobe » 23 Feb 2009 16:59

Microsoft Knowledge Base states that IP_TOS sock option is not supported on Windows XP (and newer). So, under Windows the Microsoft GQoS API must be used for that purpose :( Unfortunately, setting the DSCP value is not straightforward with this API as far is I understand it.

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

Re: UDP streaming - Possible to set TOS/DiffServ?

Postby Rémi Denis-Courmont » 23 Feb 2009 17:37

Then it's certainly not going to happen.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests