2. VideoTester.measures — Measures package

class VideoTester.measures.Meter

Generic meter.

run()

Run registered measures. For each measure in measures, this method calls Measure.calculate().

Returns:The list of measures.
Return type:list
class VideoTester.measures.Measure

Generic measure.

calculate()

Compute the measure.

Returns:Results (see data).
Return type:dict

Note

This method MUST be overwritten by the subclasses.

graph(x, y)

Set axes, max, min and mean for bar or plot graphs (see data).

Parameters:
  • x (list) – x axis.
  • y (list) – y axis.
class VideoTester.measures.QoSmeter(selected, data)

Bases: VideoTester.measures.core.Meter

QoS meter.

class VideoTester.measures.QoSmeasure((lengths, times, sequences, timestamps, rtt))

Bases: VideoTester.measures.core.Measure

QoS measure type.

class VideoTester.measures.Latency(data)

Bases: VideoTester.measures.qos.QoSmeasure

Latency: end-to-end delay.

  • Type: value.
  • Units: ms.
class VideoTester.measures.Delta(data)

Bases: VideoTester.measures.qos.QoSmeasure

Delta: gap between two consecutive packets.

  • Type: plot.
  • Units: ms per RTP packet.
class VideoTester.measures.Jitter(data)

Bases: VideoTester.measures.qos.QoSmeasure

Jitter: latency deviation (see RFC 3550#page-94).

  • Type: plot.
  • Units: ms per RTP packet.
class VideoTester.measures.Skew(data)

Bases: VideoTester.measures.qos.QoSmeasure

Skew: time deviation from RTP timestamp.

  • Type: plot.
  • Units: ms per RTP packet.
class VideoTester.measures.Bandwidth(data)

Bases: VideoTester.measures.qos.QoSmeasure

Instantaneous bandwidth: data received in the last second.

  • Type: plot.
  • Units: kbps per second.
class VideoTester.measures.PacketLossRate(data)

Bases: VideoTester.measures.qos.QoSmeasure

Packet Loss Rate.

  • Type: value.
  • Units: rate.
class VideoTester.measures.PacketLossDist(data)

Bases: VideoTester.measures.qos.QoSmeasure

Packet Loss Distribution: loss rate distribution.

  • Type: bar.
  • Units: Packet Loss Rate per time.
class VideoTester.measures.BSmeter(selected, data)

Bases: VideoTester.measures.core.Meter

Bit-stream meter.

class VideoTester.measures.BSmeasure(codecdata)

Bases: VideoTester.measures.core.Measure

Bit-stream measure type.

class VideoTester.measures.StreamEye(data, video='')

Bases: VideoTester.measures.bs.BSmeasure

Stream Eye: visualization of the compressed frames (received video).

  • Type: videoframes.
  • Units: bytes per frame.
class VideoTester.measures.RefStreamEye(data)

Bases: VideoTester.measures.bs.StreamEye

ref Stream Eye: visualization of the compressed frames (reference video).

  • Type: videoframes.
  • Units: bytes per frame.
class VideoTester.measures.GOP(data)

Bases: VideoTester.measures.bs.BSmeasure

GOP: estimation of Group Of Pictures size for received video.

  • Type: value.
  • Units: GOP size.
class VideoTester.measures.IFrameLossRate(data)

Bases: VideoTester.measures.bs.BSmeasure

I-Frame Loss Rate.

  • Type: value.
  • Units: rate.
class VideoTester.measures.VQmeter(selected, data)

Bases: VideoTester.measures.core.Meter

Video quality meter.

class VideoTester.measures.VQmeasure((conf, rawdata, codecdata, packetdata))

Bases: VideoTester.measures.core.Measure

Video quality measure type.

getBSm(measures)

Get bit-stream measures.

Parameters:measures (string or list) – Selected bit-stream measures.
Returns:Calculated bit-stream measures.
Return type:list
getQoSm(measures)

Get QoS measures.

Parameters:measures (string or list) – Selected QoS measures.
Returns:Calculated QoS measures.
Return type:list
class VideoTester.measures.PSNR(data, yuv=False, yuvref=False)

Bases: VideoTester.measures.vq.VQmeasure

PSNR: Peak Signal to Noise Ratio (Y component).

  • Type: plot.
  • Units: dB per frame.
class VideoTester.measures.SSIM(data)

Bases: VideoTester.measures.vq.VQmeasure

SSIM: Structural Similarity index (Y component).

  • Type: plot.
  • Units: SSIM index per frame.
class VideoTester.measures.G1070(data)

Bases: VideoTester.measures.vq.VQmeasure

ITU-T G.1070 video quality estimation.

  • Type: value.
  • Units: -.
class VideoTester.measures.PSNRtoMOS(data, yuv=False, yuvref=False)

Bases: VideoTester.measures.vq.VQmeasure

PSNR to MOS mapping used on Evalvid <http://www.tkn.tu-berlin.de/research/evalvid/>.

  • Type: plot.
  • Units: MOS per frame.
class VideoTester.measures.MIV(data)

Bases: VideoTester.measures.vq.VQmeasure

MIV metric used on Evalvid <http://www.tkn.tu-berlin.de/research/evalvid/>.

  • Type: plot.
  • Units: Distortion in Interval.