[linux-dvb] Finding Section bitrate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Manu Abraham wrote:
> Hi,
> 
> I was looking at how i can find the rate at which a section arrives. If 
> i do a read() in userspace, applying a filter for that particular 
> section, since the data is already buffered, the rate that i can 
> calculate might not be correct ? But if i take a look at from a driver 
> point of view, i will be able to find the rate of the entire stream only 
> (that which is transferred out of the card). Any thoughts as to how i 
> can work this out correctly ? Any suggestions would be appreciated.
> 
> Thanks,
> Manu
> 
> _______________________________________________
> 
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
hi,

if you mean the bitrate for a PID (that carries sections)
you might try dvbsnoop.

-bash-3.00# dvbsnoop 0x00 -s bandwidth
dvbsnoop V1.4.01 -- http://dvbsnoop.sourceforge.net/

---------------------------------------------------------
PID bandwidth statistics...
PID: 0 (0x0000)
---------------------------------------------------------
packets read:   1/(1)   d_time:  0.155 s  =     9.703 kbit/s   (Avrg:     9.703 kbit/s) [bad: 0]
packets read:   1/(2)   d_time:  0.192 s  =     7.833 kbit/s   (Avrg:     8.669 kbit/s) [bad: 0]
packets read:   1/(3)   d_time:  0.189 s  =     7.958 kbit/s   (Avrg:     8.418 kbit/s) [bad: 0]
packets read:   1/(4)   d_time:  0.192 s  =     7.833 kbit/s   (Avrg:     8.264 kbit/s) [bad: 0]
packets read:   1/(5)   d_time:  0.190 s  =     7.916 kbit/s   (Avrg:     8.192 kbit/s) [bad: 0]
packets read:   1/(6)   d_time:  0.192 s  =     7.833 kbit/s   (Avrg:     8.130 kbit/s) [bad: 0]
packets read:   1/(7)   d_time:  0.186 s  =     8.086 kbit/s   (Avrg:     8.123 kbit/s) [bad: 0]
packets read:   1/(8)   d_time:  0.188 s  =     8.000 kbit/s   (Avrg:     8.108 kbit/s) [bad: 0]
packets read:   1/(9)   d_time:  0.198 s  =     7.596 kbit/s   (Avrg:     8.048 kbit/s) [bad: 0]
packets read:   1/(10)   d_time:  0.187 s  =     8.043 kbit/s   (Avrg:     8.047 kbit/s) [bad: 0]
packets read:   1/(11)   d_time:  0.184 s  =     8.174 kbit/s   (Avrg:     8.058 kbit/s) [bad: 0]
packets read:   1/(12)   d_time:  0.197 s  =     7.635 kbit/s   (Avrg:     8.021 kbit/s) [bad: 0]
packets read:   1/(13)   d_time:  0.186 s  =     8.086 kbit/s   (Avrg:     8.026 kbit/s) [bad: 0]
packets read:   1/(14)   d_time:  0.188 s  =     8.000 kbit/s   (Avrg:     8.024 kbit/s) [bad: 0]
packets read:   1/(15)   d_time:  0.191 s  =     7.874 kbit/s   (Avrg:     8.014 kbit/s) [bad: 0]
packets read:   1/(16)   d_time:  0.193 s  =     7.793 kbit/s   (Avrg:     8.000 kbit/s) [bad: 0]
packets read:   1/(17)   d_time:  0.185 s  =     8.130 kbit/s   (Avrg:     8.008 kbit/s) [bad: 0]
packets read:   1/(18)   d_time:  0.192 s  =     7.833 kbit/s   (Avrg:     7.998 kbit/s) [bad: 0]
packets read:   1/(19)   d_time:  0.193 s  =     7.793 kbit/s   (Avrg:     7.987 kbit/s) [bad: 0]
packets read:   1/(20)   d_time:  0.187 s  =     8.043 kbit/s   (Avrg:     7.989 kbit/s) [bad: 0]

maybe this is what you meant.

regards
marcel


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux