Can't get video capture working
|
09-10-2015, 12:17 AM
Post: #1
|
|||
|
|||
Can't get video capture working
I'm using a private instance of WPT running in an Ubuntu VM and a Nexus 5, and I'm trying to get video capture to work so that I can get speed index working.
It's enabled; this is the command I'm using to start the agent: Code: ./wptdriver.sh --browser android:0cfe40ea1408275a --serverUrl http://localhost:80/ --location Nexus5 --processvideo yes However, I'm getting this error in the output: Code: I Sep_07_12:27:11.202 wd_server.js:1300 WebDriverServer.<anonymous> : Video processing error: python lib/video/visualmetrics.py -i runtmp/0cfe40ea1408275a/video.mp4 -d runtmp/0cfe40ea1408275a/video --orange --viewport --force --quality 75 --histogram runtmp/0cfe40ea1408275a/histograms.json --timeline runtmp/0cfe40ea1408275a/trace.json failed, code 1, stderr[210] CRITICAL:root:Error extracting the video frames from /home/vagrant/wpt/agent/js/runtmp/0cfe40ea1408275a/video.mp4 What could be causing this and how can I fix it? Thanks! |
|||
09-11-2015, 12:11 AM
Post: #2
|
|||
|
|||
RE: Can't get video capture working
tyr running "python lib/video/visualmetrics.py --check" and see if all of the dependencies check out ok. It's also possible that the video file itself didn't get captured but more likely that ffmpeg, imagemagick or pillow aren't installed and in the path correctly.
|
|||
09-11-2015, 01:13 AM
(This post was last modified: 09-11-2015 01:15 AM by callumacrae.)
Post: #3
|
|||
|
|||
RE: Can't get video capture working
Pillow failed to install the first time and I didn't notice, have fixed that now and the error has changed.
Code: vagrant@precise32:~/wpt/agent/js$ python lib/video/visualmetrics.py --check Are all of them essential? I'm struggling to install pyssim (which is what I'm assuming is requested). And the new error: (more if you scroll) Code: I Sep_10_15:11:03.182 wd_server.js:1300 WebDriverServer.<anonymous> : Video processing error: python lib/video/visualmetrics.py -i runtmp/0cfe40ea1408275a/video.mp4 -d runtmp/0cfe40ea1408275a/video --orange --viewport --force --quality 75 --histogram runtmp/0cfe40ea1408275a/histograms.json --timeline runtmp/0cfe40ea1408275a/trace.json failed, code 1, stderr[1332] ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers |
|||
09-11-2015, 02:00 AM
Post: #4
|
|||
|
|||
RE: Can't get video capture working
Ignore pyssim but ffmpeg is critical to video processing. ffmpeg and ubuntu have a weird relationship because they used to alias it to avconv. I usually grab the static build from here: http://johnvansickle.com/ffmpeg/
Then you need to extract it and put ffmpeg in /usr/local/bin |
|||
09-11-2015, 02:50 AM
Post: #5
|
|||
|
|||
RE: Can't get video capture working
I've done that now.
There's no error anymore, but I still have no video: Code: $ ./wptdriver.sh --browser android:0cfe40ea1408275a --serverUrl http://localhost:80/ --location Nexus5 --processvideo yes Also, I'm not getting screenshots. Quote:ffmpeg: OK |
|||
09-11-2015, 03:04 AM
Post: #6
|
|||
|
|||
RE: Can't get video capture working
Can you run wptdriver.sh with the "-m debug" flag? That will spew tons more information about what it is doing at every step. It could be an issue on the server side as well if the post requests are failing with the screen shots/video frames (might need to check the web server error log).
|
|||
09-11-2015, 07:21 PM
Post: #7
|
|||
|
|||
RE: Can't get video capture working
There are a few errors in here. Not sure which of them are significant, though: https://gist.github.com/callumacrae/a9ee...28ab65b902
I'm guessing all the timeouts aren't a great thing! |
|||
09-11-2015, 10:27 PM
Post: #8
|
|||
|
|||
RE: Can't get video capture working
The debug log looks like everything worked fine on the agent side though the requested tests don't look like video capture was requested. Was the capture video checkbox checked for that test?
I see the screen shots got captured and attached to the result so you should have had screen shots and if not then it's a problem on the server side (does http://<wpt_server>/install/ look clean?) |
|||
09-11-2015, 10:50 PM
(This post was last modified: 09-11-2015 11:12 PM by callumacrae.)
Post: #9
|
|||
|
|||
RE: Can't get video capture working
Yep, the box was checked. Nothing that isn't optional is missing.
My latest test had a speed index! It was 77993, where running it on webpagetest.org is about 7000. Also, it had a load time of 0.000s—looks like something has gone wrong again. video/create.php doesn't ever return a video (at least, not within a couple minutes). Filmstrip view worked, though. It also had a thumbnail. EDIT: The reason the speed index was so high is that the internet went down while I was testing. Forgot about that. EDIT 2: Everything seems to be working now. This is odd, because I haven't changed anything… Weird. Thanks for your help! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)