Jeff Cremeen
Forum Replies Created
-
Jeff Cremeen
July 9, 2014 at 10:25 pm in reply to: looking for a script – import mediasite export into Vegas.Well, thanks again. This is going to save the mp4 guy a ton of time. We are hoping that Mediasite will come out with an automatic server system that doesn’t cost thousand of dollars. But this is a better work around than the screen capture thing that they have been doing.
Jeff
-
Jeff Cremeen
July 9, 2014 at 8:22 pm in reply to: looking for a script – import mediasite export into Vegas.look at that!
It works!
Thanks!
How tough would it be to have it also import the mp4 file as well on another track? So both are lined up? With the mp4 track lined up in a pic in pic arrangement? (very small lower right)
I am trying to automate as much of the process as possible since the guy that currently makes the downloadable version doesn’t know vegas and he could be up and running with minimal training…
I am going to test it with another file where I see the slides in the video framing to compare accuracy.
Jeff
-
Jeff Cremeen
July 9, 2014 at 7:02 pm in reply to: Verticle “Letterbox” bars for 4:3 vid in DVD Architect Studio are not blackI would take the 4×3 videos and run them through vegas and make them 16×9.
I took a 4×3 B&W video and noticed that the left right bars were not truly black as well in the preview. Interesting, never really took notice since I don’t work with 4×3 without going through vegas first and outputting the 16×9.
Maybe someone one else can be of more help..
-
Jeff Cremeen
July 9, 2014 at 6:11 pm in reply to: Verticle “Letterbox” bars for 4:3 vid in DVD Architect Studio are not blackIf you are doing any video plug-in processing on the master then it will affect the whole screen including the black bars.
You can engage your video scopes and make sure that your black level is black as well.
-
Jeff Cremeen
July 9, 2014 at 6:06 pm in reply to: looking for a script – import mediasite export into Vegas.I am working with the extracted (unzipped) files derived from the publish to go download.
-
Jeff Cremeen
July 9, 2014 at 6:03 pm in reply to: looking for a script – import mediasite export into Vegas. -
Jeff Cremeen
July 8, 2014 at 9:17 pm in reply to: looking for a script – import mediasite export into Vegas. -
Jeff Cremeen
July 8, 2014 at 8:18 pm in reply to: looking for a script – import mediasite export into Vegas.Also, All of my computers are running vegas x64 win7 versions…
-
Jeff Cremeen
July 8, 2014 at 8:06 pm in reply to: looking for a script – import mediasite export into Vegas.poking at it meant… when I copied the text from the forum into “notepade”, I lost all the carriage returns. So I went back to the email from the forum where the carriage returns were in place but then the “\\” became “\\” which caused errors in js. So I compared the two files to reinsert the carriage returns into one and changed the backslashes into backlashes in the other. This gave me two versions to compare to make sure I got the copy correct. I figured this out through my limited knowledge of object oriented languages and counting the line number in the error description given. Of course, this had nothing to do with your code just the whole copying off the forum issue.
we are on version 6.1 but the xml file is still named the same as your code does…
I did try it on vegas 12 and it acts the same as in 11 and 13. But in my reading, I found out that vegas 13 implemented Net4.0 and once 13 is installed it defeats the earlier net versions on the earlier installed versions of vegas.. Would that cause any scripting issues? Both of my locations that have vegas 12 also have 13 installed.
So what I am experiencing is that I run the script, get the browse window, select the correct folder, click OK, then the window goes away, a video track appears and the timecode is changed to seconds. No media is imported into the session, nor on the timeline.
I will try installing 12 on another laptop in my office that has never had vegas before to see if other revisions might have something do to.
-
Jeff Cremeen
July 7, 2014 at 9:27 pm in reply to: looking for a script – import mediasite export into Vegas.So after some poking at it, I got it now to give me selection menu and it adds a track but then it stops. I am wondering since the xml file says “the time”
is it getting hung up on the second ?
I have both 11 and 13 on my computer. Will try it on my laptop with 12 tomorrow.
————————
///////////////////////////////////////////////////////////
// //
// Script that automates the Mediasite XML process //
// //
// Taylor Calderone, 2014 //
// //
///////////////////////////////////////////////////////////import System; // Stuff needed for the code to work
import System.Collections //
import System.Text; //
import System.IO; //
import System.Drawing; //
import System.Windows.Forms; //
import Sony.Vegas; //var skipEverything = false; //
var fbd = new FolderBrowserDialog(); // initializes the folder browser
fbd.Description = “Select the Mediasite folder”; // sets the folder browser’s description
fbd.ShowNewFolderButton = false; // hides the ‘New Folder’ button
var result = fbd.ShowDialog(); // activates the browser and saves the button clicked
var wharr = fbd.SelectedPath; // grabs the filepath that the user selects
if (result == “Cancel”) // if the cancel button is pressed
{ //
MessageBox.Show(“Script Cancelled D:”); // show a message box
skipEverything = true; // and skip the rest of the script to prevent a crash exit
} //if (skipEverything == false){ // makes the cancel button not cause a exit crash
var blarg = new VideoTrack (1); // create an empty track
Vegas.Project.Tracks.Add(blarg); // adds the empty track to the project
var yarr : ArrayList = new ArrayList(); // initialize ArrayList
var imageNumber = 1; // initialize some variables
var r = 0; //
Vegas.Project.Ruler.Format = RulerFormat.Seconds; // change ruler format to secondsvar squarg: StreamReader = new StreamReader(wharr + “\\MediasitePresentation_60.xml”); // Reads an external file and executes code
var line : String; // for each non-empty line of it
while ((line = squarg.ReadLine()) != null) {
if (line != String.Empty) {
if (line.substring(0, 16) == “”) { // If a timestamp is detected in the XML file
yarr.Add(line.slice(16, -7)); // Store the timestamp in the array
}
}
}
squarg.Close();
}for (var q in yarr) { // for each entry in the array
if (imageNumber < 10) { imageNumber = “000” + imageNumber; } else // Adds the extra zeroes to ImageNumber
if (imageNumber < 100) { imageNumber = “00” + imageNumber; } else // (terrible hack because
if (imageNumber < 1000) { imageNumber = “0” + imageNumber; } // .toString(“0000”); isn’t working)Vegas.OpenFile(wharr + “\\Content\\slide_” + imageNumber + “_full.jpg”); // add an image to the timeline
imageNumber++; // increment the imageNumber for the next loopif (r+1 < yarr.Count) { // (this prevents the script from exiting with a crash)
var length = yarr[r+1] – yarr[r]; // calculate length of current slide
var time = new Timecode(yarr[r]/1000); // convert timestamps to Vegas friendly timecode
length = new Timecode(length/1000); //
r++; // increment the counter
} else {
var time = new Timecode(yarr[r]/1000); // custom behaviour for final image
length = new Timecode(30000); } // arbitrary length of 30 secondsfor (var cow in Vegas.Project.Tracks) { // Give the image the correct location & length
for (var moo in cow.Events) { //
if (moo.Selected == true) { moo.AdjustStartLength(time, length, false); } //
} } //
}

