Bulk Video Processing

Former Member
Former Member
Hi All,
I am currently using the Virb XE as a video recorder for road assessments. While this works very well for the job i am finding myself spending hours sitting in front of the computer processing the video files to display the lat/long and time stamps on each video using the gmetrix.
I was wondering if anyone knows of a way to obtain the same result via a bulk/batch processing script so i can simply set the computer off to run through a set of videos?
Any help on the matter would be greatly appreciated as i have over 7000 video files to go through and export with the gmetrix overlay.

Thanks
Wade
  • Former Member
    0 Former Member over 8 years ago
    As it happens, there is something that may be able simplify your workflow some. In the same directory as VirbEdit.exe, there is a file called "MediaFoundation.tests.exe" This executable is actually something I developed to automate export testing because it is very time consuming (as noted elsewhere on the forums, it can also do performance profiling). To use it, copy your Database folder located at "C:\Users\<your username>\AppData\Roaming\Garmin\VIRB Edit" into the same directory as MediaFoundation.tests.exe, and rename it to "TestingDatabase". Now run the MediaFoundation.tests.exe and it will go through each project in your database and export it. A couple things to be aware of:

    1. Since this is primarily designed a testing application, it will attempt to export all your projects using all combinations of encoders and decoders, meaning it will export everything 6 times. Luckily, it exports all your videos with 1 combination then starts over with a new combination. So stop it before it creates 42000 files ;) The output on the screen will tell you what encoder / decoder it is using for the "test". Once that changes to a new combination, it has exported all your files and you can stop it.
    2. The output files it produces will be written to your VirbEdit directory in a folder called "Exports" the sub folders in Exports will indicate what encoder decoder combination was used
    3. Before you let it run for a week straight, make sure your output files actually have GMetrix drawn on them. I vaguely recall there was a problem in my test app that may not have drawn overlays. I'm not sure if that was working in 4.2.3 or not. Obviously if this isn't working it won't do you much good. It will be fixed in the next version of VirbEdit if it isn't working now

    Hopefully that will help speed things up for you a bit. Let me know if you have questions
  • Former Member
    0 Former Member over 8 years ago
    So I actually happen to be working with this today and realized some additional restrictions. Your source videos are going to need to be in <My Videos>/VIRB/test. If they aren't there the test app can't find them.
  • Former Member
    0 Former Member over 7 years ago
    Hi Purdington,
    I have managed to run through the process you have provided me and it has exported the videos, unfortunately without any overlays, but i can live with this.
    One question i do have left. When exporting through the Edit program it will produce a gpx file for each video. Through this method it does not produce this file. I was planning on using the gpx files to locate and name each of the roads videos with their roadnames. Do you know of a way that i can get this information? i have been playing around with extracting the information out of the fit files captured on the xe but am not having any success in being able to align them with video files manually.

    Thanks for you help so far.

    Wade
  • Former Member
    0 Former Member over 7 years ago
    @wahickey
    I'm glad my tool has been useful. Producing a GPX file is not something the export app does, so there's not currently a way to get the gpx file produced exporting in any way except exporting, which isn't overly useful to you.
    I was planning on using the gpx files to locate and name each of the roads videos with their road names.

    This is certainly possible, but off hand I don't know of any pre made solution that will do this for you.

    If you find GPX files easier to work with, you can create GPX files from fit files in a few different ways. Open Street Maps has a nice write up at http://wiki.openstreetmap.org/wiki/FIT