Page 1 of 1

How to modify DSCP value inside source code

Posted: 04 Dec 2012 03:43
by ymsaputra
Dear VLC forumers,

As far as I know, the DSCP value for differentiate the QoS just can be determined by inputing the value by user. In my case I want to decide the DSCP value inside the source code, for example I want to decide the DSCP value based on the frame type of encoded video. So it will assign the DSCP value automatically, not manually

What should I do to satisfy this question?

Thank you so much for the answers :D

Re: How to modify DSCP value inside source code

Posted: 04 Dec 2012 14:57
by Jean-Baptiste Kempf
See src/libvlc-module.c and src/network/udp.c

Re: How to modify DSCP value inside source code

Posted: 06 Dec 2012 01:35
by ymsaputra
Thank you,

I have already taken a look at those files and i have one more question,

Is it possible to make different DSCP value for each packet? so before writing the packet on the network, I want to mark each packet with different DSCP value according to the frame type.

Thank you for the answers

Re: How to modify DSCP value inside source code

Posted: 11 Dec 2012 03:55
by ymsaputra
Hello Edith,

Did you succeed to differentiate each packet with different DSCP value?
As fas as I know, the DSCP value can not be changed for that stream.

Can anyone else know how to differentiate DSCP value in one stream?