Video and filmstrip issues with mobile
|
10-08-2014, 12:53 AM
Post: #1
|
|||
|
|||
Video and filmstrip issues with mobile
I'm trying to use a mac as a nodejs mobile agent. I used brew to install nodejs, ffmpeg, adb, android platform tools, and imagemagick.
Everything is working great with my rooted Nexus 5. The only issue is filmstrips and videos. They aren't showing up in the results. The page for the filmstrip is looking in the path below, but that directory is empty on the server. results/14/10/07/NK/C/video_1/ However, this directory has the actual video: results/14/10/07/NK/C/1_video.mp4 results/14/10/07/NK/C/1_Cached_video.mp4 Any ideas about what's missing or where it may be breaking? I'm assuming there is something that breaks up the video that is missing or causing this to bomb. |
|||
10-08-2014, 01:01 AM
Post: #2
|
|||
|
|||
RE: Video and filmstrip issues with mobile
In order to break up the video into filmstrips and generate a video for display, you'll need a UrlBlast Agent on Windows. It's that that does the video processing.
Pat is looking to move processing server-side in the near-future as it's now the only reason you'd need a UrlBlast Agent. |
|||
10-08-2014, 01:24 AM
Post: #3
|
|||
|
|||
RE: Video and filmstrip issues with mobile
(10-08-2014 01:01 AM)brassic_lint Wrote: In order to break up the video into filmstrips and generate a video for display, you'll need a UrlBlast Agent on Windows. It's that that does the video processing. Thanks for the prompt response. I'm going to fix it so the film strip doesn't prevent video playback. |
|||
10-08-2014, 01:40 AM
Post: #4
|
|||
|
|||
RE: Video and filmstrip issues with mobile
Actually, urlblast is only used for going from filmstrip to rendered video.
The breaking up of the video is done on the server with ffmpeg and imagemagick. It requires a specific version of ffmpeg though (relies on some debug information to include the frame times while de-duping frames). What platform is the server running? |
|||
10-08-2014, 01:44 AM
(This post was last modified: 10-08-2014 01:46 AM by craig2005.)
Post: #5
|
|||
|
|||
RE: Video and filmstrip issues with mobile
(10-08-2014 01:40 AM)pmeenan Wrote: Actually, urlblast is only used for going from filmstrip to rendered video. So why is this just mobile related? Tests run on the desktop windows agents show video and filmstrip just fine. The server is running Centos 6 and again, this is just happening for mobile which runs from my mac. Desktop agents (windows based) work fine. |
|||
10-08-2014, 01:58 AM
Post: #6
|
|||
|
|||
RE: Video and filmstrip issues with mobile
Desktop agents capture video as individual frames directly. Mobile uses on-device video capture support to capture the mp4 video and then takes care of breaking it up into the unique frames on the server.
What version information do you get on your server when you run "ffmpeg" from the shell? It needs to be from the 1.x series: Code: ffmpeg version 1.2.3 Copyright (c) 2000-2013 the FFmpeg developers If it a 64-bit centos I have the static build of ffmpeg that I use on the WPT server that you can download from here: http://www.webpagetest.org/software/ffmpeg Just make sure to overwrite the one installed by the system ot at least make sure it's the one in the path so the web user will run it. |
|||
10-08-2014, 02:02 AM
Post: #7
|
|||
|
|||
RE: Video and filmstrip issues with mobile
btw, the plan is to move the video processing to the nodejs machine so the server isn't a bottleneck. I'll see if there is something in the newer ffmpeg releases that gives similar information about the stream to hopefully make it less brittle.
Using the built-in frame de-duplication in ffmpeg reduces the video processing overhead by at least an order of magnitude so it's pretty critical. Unfortunately when the unique frames are output there's no way to get the original time (they just come out in numbered sequence 1,2,3,etc). The debug information is used to reconstruct the original timestamp where each frame occurred. |
|||
10-09-2014, 12:29 AM
Post: #8
|
|||
|
|||
RE: Video and filmstrip issues with mobile
(10-08-2014 01:58 AM)pmeenan Wrote: Desktop agents capture video as individual frames directly. Mobile uses on-device video capture support to capture the mp4 video and then takes care of breaking it up into the unique frames on the server. Thanks Pat. I built my own ffmpeg on the server which didn't work. Then I tried your version and it didn't work. What i mean by doesn't work is existing tests that didn't have filmstrips and wouldn't play videos, still don't. Are the filmstrips only created when the test is initially sent to the server? Code: [root@c1-wpt1 bin]# ffmpeg |
|||
10-09-2014, 12:33 AM
Post: #9
|
|||
|
|||
RE: Video and filmstrip issues with mobile
Yes, the videos are only extracted on first upload. If you have video/reprocess.php on the server (not sure when I added it) you can force a video to be reprocessed by loading http://<server>/video/reprocess.php&test=<testID>
|
|||
10-09-2014, 12:36 AM
(This post was last modified: 10-09-2014 12:59 AM by craig2005.)
Post: #10
|
|||
|
|||
RE: Video and filmstrip issues with mobile
(10-09-2014 12:33 AM)pmeenan Wrote: Yes, the videos are only extracted on first upload. If you have video/reprocess.php on the server (not sure when I added it) you can force a video to be reprocessed by loading http://<server>/video/reprocess.php&test=<testID> Sweet tip! Thanks! (10-09-2014 12:33 AM)pmeenan Wrote: Yes, the videos are only extracted on first upload. If you have video/reprocess.php on the server (not sure when I added it) you can force a video to be reprocessed by loading http://<server>/video/reprocess.php&test=<testID> Didn't work. The filmstrip still isn't present. http://server/video/reprocess.php?test=141007_RS_J Reprocessing ./results/14/10/07/RS/J/1_Cached_video.mp4... Reprocessing ./results/14/10/07/RS/J/1_video.mp4... I don't see anything in the logs either. I guess its bombing gracefully somewhere :-) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)