Enchufa2 / video-tester

A multiple-metric framework for video quality assessment over IP networks
http://enchufa2.github.io/video-tester/
GNU General Public License v3.0
30 stars 13 forks source link

Errors while running client #4

Open pitfisher opened 5 years ago

pitfisher commented 5 years ago

I've got a couple of errors during work of client side of the app. Here is the log:

petr@Petr-PC:~/Documents/video-tester$ sudo VT client
[sudo] password for petr: 
[2019-05-18 14:09:06,755] INFO : Client running!
[2019-05-18 14:09:06,763] INFO : Connected to XMLRPC Server at 127.0.0.1:8000
[2019-05-18 14:09:06,763] INFO : Evaluating: video1, h264, 2085 kbps, 25 fps, udp
[2019-05-18 14:09:06,766] INFO : PID: 7266 | Sniffer started
[2019-05-18 14:09:07,767] INFO : Starting GStreamer receiver...
[2019-05-18 14:10:05,486] INFO : GStreamer receiver stopped
[2019-05-18 14:10:05,560] INFO : PID: 7266 | Sniffer stopped
[2019-05-18 14:10:05,560] INFO : Making reference...
[2019-05-18 14:11:08,908] INFO : Reference made
[2019-05-18 14:11:08,908] INFO : Starting packet parser...
[2019-05-18 14:11:10,881] INFO : Packet parser stopped
[2019-05-18 14:11:10,881] INFO : Parsing videos...
[2019-05-18 14:14:18,956] INFO : Starting QoSmeter...
[2019-05-18 14:14:18,956] INFO : - Measuring: Latency
[2019-05-18 14:14:18,957] INFO : - Measuring: Delta
[2019-05-18 14:14:18,959] INFO : - Measuring: Jitter
[2019-05-18 14:14:18,967] INFO : - Measuring: Skew
[2019-05-18 14:14:18,969] INFO : - Measuring: Bandwidth
[2019-05-18 14:14:19,582] INFO : - Measuring: PLR
[2019-05-18 14:14:19,585] INFO : - Measuring: PLD
[2019-05-18 14:14:19,590] INFO : Starting BSmeter...
[2019-05-18 14:14:19,590] INFO : - Measuring: StreamEye
[2019-05-18 14:14:19,590] INFO : - Measuring: refStreamEye
[2019-05-18 14:14:19,590] INFO : - Measuring: GOP
[2019-05-18 14:14:19,590] INFO : - Measuring: IFLR
[2019-05-18 14:14:19,590] ERROR : float division by zero
[2019-05-18 14:14:19,590] INFO : Starting VQmeter...
[2019-05-18 14:14:19,590] INFO : - Measuring: PSNR
[2019-05-18 14:15:00,317] INFO : - Measuring: G.1070
[2019-05-18 14:15:00,317] INFO : ----------getQoSm----------
[2019-05-18 14:15:00,317] INFO : Starting QoSmeter...
[2019-05-18 14:15:00,317] INFO : - Measuring: PLR
[2019-05-18 14:15:00,320] INFO : ---------------------------
[2019-05-18 14:15:00,320] INFO : - Measuring: PSNRtoMOS
[2019-05-18 14:15:42,160] ERROR : 'tuple' object does not support item assignment
[2019-05-18 14:15:42,160] INFO : - Measuring: MIV
[2019-05-18 14:16:23,043] ERROR : 'tuple' object does not support item assignment
[2019-05-18 14:16:23,043] INFO : Saving measures...
[2019-05-18 14:16:23,255] INFO : Client stopped!

I assume those are caused by some data type changes in libraries. Are you willing to fix it? Also I'd like to know if you have plans to port this app to Python 3 since support of Python 2 is coming to it's end.

Enchufa2 commented 5 years ago

I think I found the problem. Could you try now, please?

About Python 3, I would like to, but it's very low in my priority list, because I don't work on this topic anymore.

pitfisher commented 5 years ago
petr@Petr-PC:~/Documents/video-tester$ sudo VT client
[sudo] password for petr: 
[2019-05-19 18:51:37,686] INFO : Client running!
[2019-05-19 18:51:37,691] INFO : Connected to XMLRPC Server at 127.0.0.1:8000
[2019-05-19 18:51:37,692] INFO : Evaluating: video0, h264, 2045 kbps, 25 fps, udp
[2019-05-19 18:51:37,694] INFO : PID: 30659 | Sniffer started
[2019-05-19 18:51:38,695] INFO : Starting GStreamer receiver...
[2019-05-19 18:52:36,466] INFO : GStreamer receiver stopped
[2019-05-19 18:52:36,541] INFO : PID: 30659 | Sniffer stopped
[2019-05-19 18:52:36,541] INFO : Making reference...
[2019-05-19 18:53:39,788] INFO : Reference made
[2019-05-19 18:53:39,788] INFO : Starting packet parser...
[2019-05-19 18:53:42,577] INFO : Packet parser stopped
[2019-05-19 18:53:42,577] INFO : Parsing videos...
[2019-05-19 18:56:57,788] INFO : Starting QoSmeter...
[2019-05-19 18:56:57,788] INFO : - Measuring: Latency
[2019-05-19 18:56:57,788] INFO : - Measuring: Delta
[2019-05-19 18:56:57,791] INFO : - Measuring: Jitter
[2019-05-19 18:56:57,799] INFO : - Measuring: Skew
[2019-05-19 18:56:57,802] INFO : - Measuring: Bandwidth
[2019-05-19 18:56:58,462] INFO : - Measuring: PLR
[2019-05-19 18:56:58,465] INFO : - Measuring: PLD
[2019-05-19 18:56:58,470] INFO : Starting BSmeter...
[2019-05-19 18:56:58,470] INFO : - Measuring: StreamEye
[2019-05-19 18:56:58,470] INFO : - Measuring: refStreamEye
[2019-05-19 18:56:58,470] INFO : - Measuring: GOP
[2019-05-19 18:56:58,471] INFO : - Measuring: IFLR
[2019-05-19 18:56:58,471] ERROR : float division by zero
[2019-05-19 18:56:58,471] INFO : Starting VQmeter...
[2019-05-19 18:56:58,471] INFO : - Measuring: PSNR
[2019-05-19 18:57:40,953] INFO : - Measuring: G.1070
[2019-05-19 18:57:40,953] INFO : ----------getQoSm----------
[2019-05-19 18:57:40,954] INFO : Starting QoSmeter...
[2019-05-19 18:57:40,954] INFO : - Measuring: PLR
[2019-05-19 18:57:40,956] INFO : ---------------------------
[2019-05-19 18:57:40,956] INFO : - Measuring: PSNRtoMOS
[2019-05-19 18:57:59,799] INFO : - Measuring: MIV
[2019-05-19 18:58:37,488] INFO : Saving measures...
[2019-05-19 18:58:37,709] INFO : Client stopped!

Looks better now, only SSIM gave me a mass of errors about module cv. One division-by-zero error is still present.

Enchufa2 commented 5 years ago

OpenCV is used just for computing the SSIM. Probably the best approach here is to use sciki-image instead.

pitfisher commented 5 years ago

I'll be able to try to replace it next week.

parthpadhiar commented 1 month ago

Not able to install all libraries "pcap" and not running it What to do?

I am using python3.12 and ubuntu18.04