VEGAS TO JSON (or to other)????

JHendrix2 wrote on 6/22/2012, 5:15 PM
OK i know it might be a stretch but is there any way to get my regions (names and times) to web formats like json or xml - other?

when you got about 300 1-3 minute clips destined for streaming video you start thinking about this stuff. (trying to avoid hand entry of all clips in web documents)

or even: to excel (with proper timecode) > to web

Comments

Steve Mann wrote on 6/22/2012, 9:28 PM
Here's an old script I found in my collection - I have never run it, but it might help:

Export Track As Storyboard.zip

Feedback would be appreciated.
JHendrix2 wrote on 6/23/2012, 6:29 AM
seems to have the right idea but is not current

-----------------
i did get this

Start End Length Name
00:00:00.000 00:00:48.715 00:00:48.715 1
00:00:48.715 00:01:19.279 00:00:30.564 2
00:00:48.715 00:00:59.092 00:00:10.377 2a
00:00:59.092 00:01:19.279 00:00:20.187 2b

from script menu

and this

Length Name
00:00:48.715 1
00:00:30.564 2
00:00:10.377 2a
00:00:20.187 2b

is all i would need....

where 2 is the same as 2a + 2b (created by overlapping regions) and could be used in something like this:

[
// this is a single video clip. (toc stands for table of contents)//
{
"toc": [
{
"title": "SINGLE-CLIP-AS-SINGLE",
"description": "a single clip",
"thumb_url": "media/playlist-2.jpg",
"poster_url": "media/im.jpg",
"video_hd_url": "media/im.mp4",
"video_url": "media/im.mp4",
"duration": "2:48"
},
// this is the same single video clip - but with "sub-chapter" points, playback of videos must be able to laod sinlges or singles with seek points using "start" parameter as shown below//
{
"title": "SINGLE-CLIP-AS-CHAPTER",
"duration": "2:48",
"videos": [
{
"title": "Section 1",
"description": "This is the first section in the this chapter",
"thumb_url": "media/playlist-2.jpg",
"poster_url": "media/im.jpg",
"video_hd_url": "media/im.mp4",
"video_url": "media/im.mp4",
"duration": "1:24",
"start": "0"
},

{
"title": "Section 2",
"description": "This is the second section in this chapter",
"thumb_url": "media/playlist-2.jpg",
"poster_url": "media/im.jpg",
"video_hd_url": "media/im.mp4",
"video_url": "media/im.mp4",
"duration": "1:24",
"start": "84"
}
]
},

]
}
]


Steve Mann wrote on 6/23/2012, 10:09 AM
I just put the DLL here:
C:\Program Files\Sony\Vegas Pro 11.0\Script Menu
And in tools, scripting, scan the script menu again and there it is.

Pretty cool. I can't think of a use for it, but it's pretty cool.
JHendrix2 wrote on 6/23/2012, 11:00 AM
i'll give it a try

i just noticed the export regions as subtitles (txt option) yields this

00:00:30.564

but selected in timeline is this

00:00:30.17

what is 564 in

00:00:30.564

other than that, the extension does work and yes it out put timecode but based on clip start and end not based on regions
rcampbel wrote on 6/24/2012, 3:04 PM
You can copy the Region info to Excel by using the Edit Details window in Vegas. Select View/Edit Details, then select Regions from the drop down, select the entire grid, press CTRL/C to copy, then paste into Excel.
Former user wrote on 6/24/2012, 5:14 PM
JHendrix,

Most Subtitle and Caption file work in 100th's or 10th's of a second. That is why you are getting the .564 instead of 17 frames.

Dave T2
JHendrix2 wrote on 6/26/2012, 6:31 PM
too bad, would be nice to export region timecode as normal timecode