Setting QoS priorities in VLC

About encoding, codec settings, muxers and filter usage
matthank
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2007 22:21

Setting QoS priorities in VLC

Postby matthank » 14 Mar 2007 22:37

I am attempting to stream video, and have a need to set QoS Priorities on the stream. I know that this can be set with setsockopt. Is there a way to do this with VLC, or is there a patch available?

I am using VLC 0.8.6a as both server and client on Windows 2K and XP.

Any help will be greatly appreciated.

Regards,
Matt Davis
Sr. QA Test Engineer
DSP Group, Inc.

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

Postby teo » 16 Mar 2007 23:21

I made a patch for VLC 0.8.5 which enables setting the TOS field with setsockopt.
Windows installer can be downloaded here: http://home.online.no/~andethe/vlc-0.8.5-win32.exe

Keep also in mind that normally Windows controls the ToS field so you need to do this: http://support.microsoft.com/default.as ... US;q248611

Edit: You can set the TOS value you want under: Settings->Preferences->Stream Output->Access output->UDP (check for advanced options). Works only for UDP streaming.

matthank
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2007 22:21

Many thanks for your response

Postby matthank » 17 Mar 2007 01:13

Teo,

Thank you very much. By making my boss very happy, you have made me happy.

Thanks again.

Matt Davis

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 » 17 Mar 2007 01:56

teo: what about releasing your patch and introducing it in trunk ?
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.

matthank
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2007 22:21

Additional questions

Postby matthank » 19 Mar 2007 17:31

Teo,

I am having trouble setting the TID with your changes to VLC. I note there are four settings and am wondering if there is any interaction or if I am setting something wrong. When I set the TOS value to 5, I am expecting the TID in a packet to also be 5 (0110) but on a Sniffer captrue, the TID is consistently 0 (0000). The caching value is set to 300 (default), TTL I've set to 0, 150, and 1000 with no change, and Group Packets is set to the default (1).

I have verified that the DisableUserTOSSetting is disabled in registry on both the transmitting machine and the receiving machine.

Any ideas as to what I am doing wrong?

Thanks for your help!!
--Matt Davis

matthank
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2007 22:21

Now I get it...

Postby matthank » 19 Mar 2007 21:04

Teo,

Now I get it. Once I set the TOS setting to, for example, 160, then I did see the TID change to 5 (Video Priority). Took a little knowledge gathering on my part to understand what the TOS setting really meant.

Thanks for your help!!!

--Matt

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

Postby teo » 20 Mar 2007 17:01

Matt,

Glad to hear you got it working :)

j-b,

I'll be gladly release the patch, it's however based on 0.8.5. I tried checking out the trunk from SVN but could not compile (problem posted in Windows VLC forum).
Hopefully someone can help me sort out the compile issues and I'll adapt it to the trunk and post it here.

ehudkedar
New Cone
New Cone
Posts: 1
Joined: 27 Mar 2008 10:11

Re: Setting QoS priorities in VLC

Postby ehudkedar » 27 Mar 2008 10:13

I am unable to download the special TOS version.
I really need it

Thanks

:D


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests