Import XML as markers

RedRob-CandlelightProdctns wrote on 5/22/2018, 5:44 PM

Background -- I use a NINJA Blade to record my live switch output from an ATEM. When we have a "bad switch" which needs to be changed in post, I use the Ninja's "flag" feature to simply mark the spots that need fixing. Post-event I use "Export" to create a .FCPXML file that contains these markers.

The file contains the clip-name, and for each marker, a start-time and duration (I don't actually care about duration here), and the value "reject" or "favorite" (different values apply to different versions of the NINJA). Start time is in absolute time (I believe in milliseconds)... dividing by 30000 gives the correct position relative to the start of the clip.

Need -- import this XML file into Vegas such that each clip has the markers embedded (similar to when marking clips in the trimmer). Ideally, the "reject" and "favorites" would somehow be marked differently (marker name would work fine for this).

 

Does anyone have any sample code which parses and imports an XML file, that could help with this?

Here's a sample snip of the XML file.

The sample can be downloaded here:

https://www.dropbox.com/s/6c34kuwo68ooyj1/NINJABLD.FCPXML?dl=0

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

Comments

Former user wrote on 5/22/2018, 9:09 PM

Vegasaur can import various types of markers, you might contact the author and see if the FCPXML can be used as is or if he can update it to include this format.

RedRob-CandlelightProdctns wrote on 5/22/2018, 9:37 PM

Thanks @Former user! I love Vegasaur and did speak with them about it in June 2017.. about a year ago.. they seemed interested in the possibility of adding this but as far as I can see nothing came of it. I'll follow up (thanks for the reminder!)

 

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio