Skip to content

jitsi/jitsi-psnr

Repository files navigation

Jitsi Video Quality Analyzer (JiViQA)

The Jitsi Video Quality Analyzer project is a full-reference Objective Video
Quality Model and Assesement tool.

A collection of scripts to measure video quality and fluidity.  You can grab
some test sequences from here: https://media.xiph.org/video/derf/y4m/. It
requires ffmpeg and dmtx-utils.

Use this command to expand the frames.

```
ffmpeg -i video-file -f image2 ~/Videos/Captures/ATT-LTE-driving-2016_p2p_meet_1121212111212/%03d.png"
```

We use this command to capture. It encodes lossless h264 (https://trac.ffmpeg.org/wiki/Encode/H.264). We set the resolution at the receiver to be 1280x720, so
no re-scaling is necessary to compare the PSNR.

```
ffmpeg -loglevel quiet -video_size 1280x720 -framerate 30 -f x11grab -draw_mouse 0 -i :0.0 -c:v libx264 -crf 0 -preset ultrafast Videos/Captures/ATT-LTE-driving-2016_p2p_meet_`date +%s`.mp4
```

We use this command to emulate with Mahimahi. 31250 bytes is 100ms @ 2.5Mbps

```
mm-delay 50 mm-link uplink downlink --uplink-queue=droptail --downlink-queue=droptail --uplink-queue-args=bytes=31250 --downlink-queue-args=bytes=31250 [ -- command... ]
```