-
Notifications
You must be signed in to change notification settings - Fork 2
Download video of median run from WPT as part of the sitespeed report #1
Comments
Yep I agree, we should add it. I tried it a year ago or so but then the HTML for the video that you got from the API had some privacy issues (I think you also got a js that made a call to New Relic if I remember correctly) but it could be that it only happens using the public version and not a private instance, I don't think I tested that. Let me try again. |
This means that I need some time to test, I can test this in a week or so. |
Ok here is what it would look like using iframe https://www.webpagetest.org//video//view.php?embed=1&id=170909_49ee1530fe4303cd88e5acad4d3159865907f06d so that will not work for privacy issues. But we could download the mp4. We need to make it configurable though. |
Yep I think we should download each mp4 per run, then we have the same functionality as Browsertime. We need to call createVideo to create the video, and from the response we can take the video id: response.data.videoId and then finally download the video from https://WEBPAGETEST_HOST/video/download.php?id=VIDEO_ID |
I think video is automatically created with the default settings passed to WPT by sitespeed.io. Video is necessary for the speed index calculation. So, its only a matter of downloading the files.
|
Hi @UltraNemesis it works like this: WPT records a video with FFMPEG, but only screenshots with changes are kept, and when you "create" the video those screenshots are put together to the video, that we can use. |
I'll take this up this week when WebPageTest is working, it will be really nice to have. |
Pushed a branch https://github.com/sitespeedio/sitespeed.io/tree/download-wpt-video where the video is downloading. One bug right now is that it downloads the same video independent of runs (how do the API work?) and we should have a way of turning it on/off. And when it turned on add it to the HTML result page. |
I think this is perfect for a WebPageTest user to take on. |
Would it be possible to collect the video generated by WPT for the median run and put it along with the html report. We get video with browsertime in the result, but not for WPT.
The text was updated successfully, but these errors were encountered: