title: The defined BANDWIDTH in M3U8 and Linux tc
body: <p>I have the following m3u8 file </p>
  
  <pre><code>#EXTM3U
  #EXT-X-VERSION:7
  #EXT-X-STREAM-INF:BANDWIDTH=87835,RESOLUTION=426x240,CODECS="avc1.640015"
  240-34/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=177512,RESOLUTION=426x240,CODECS="avc1.640015"
  240-28/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=267977,RESOLUTION=854x480,CODECS="avc1.640015"
  480-34/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=499454,RESOLUTION=1280x720,CODECS="avc1.640015"
  720-34/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=957645,RESOLUTION=1920x1080,CODECS="avc1.640015"
  1080-34/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=1903257,RESOLUTION=1920x1080,CODECS="avc1.640015"
  1080-28/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=3907896,RESOLUTION=1920x1080,CODECS="avc1.640015"
  1080-22/media_0.m3u8
  #EXT-X-STREAM-INF:BANDWIDTH=8265879,RESOLUTION=1920x1080,CODECS="avc1.640015"
  1080-16/media_0.m3u8
  </code></pre>
  
  <p>I want to run a Linux tc command to shape the bandwidth for each defined bandwidth in the previous file, but I am not sure the bandwidth value is bps or kbps.</p>
  
  <p>for example, I want to run a tc command for the follows</p>
  
  <pre><code>#EXT-X-STREAM-INF:BANDWIDTH=87835,RESOLUTION=426x240,CODECS="avc1.640015"
  240-34/media_0.m3u8
  </code></pre>
  
  <p>which command is right </p>
  
  <pre><code>tc qdisc add dev eth1 root tbf rate 87835kbit burst 16kbit latency 2ms
  </code></pre>
  
  <p>or </p>
  
  <pre><code>tc qdisc add dev eth1 root tbf rate 87835 burst 16kbit latency 2ms
  </code></pre>