|
Sjq4Comskip1
First example of setting up comskip in SJQv4; returning tasks to queue until "safe"
Phase-Deploy IntroductionThis document will guide you through a complete example of how to setup comskip. This is only one way to do this, there are many other ways to accomplish this task in SJQv4. As a matter of fact, you'll find there are many different ways to do the same thing in SJQv4. This is the advantage of moving to a proper, complete scripting environment for SJQv4. Separating SD and HD Comskip TasksMy first requirement is that I needed to separate SD and HD tasks. Processing H.264 video is way more taxing on my system that processing MPG2 so I want to separate the two types of tasks. So for this reason, I have two different comskip tasks defined in my setup: "SDCOMSKIP" and "HDCOMSKIP". So for any recording I want comskipped I will actually queue up an SD and HD comskip task and then one of them will be skipped and the other will run, as desired. Configure the HDCOMSKIP and SDCOMSKIP TasksFirst, you need to configure one or more task clients to perform these tasks. This document assumes you've already installed and configured the engine and at least one task client. See the User Guide if that's not the case. NOTE: You must have the SJQv4 GUI plugin installed to perform the following actions as described in the document. Go to Setup > SJQ > Show Clients and select the client you wish to configure. Click on Create New Task. The following screen shot shows my setup. You can copy everything you see, but obviously some paths will have to be changed for your setup.
Save the SDCOMSKIP task and create a new one, HDCOMSKIP. Basically the same thing except replace the mpg arg with ts. You should now have a task client configured to run both SDCOMSKIP and HDCOMSKIP tasks. Now you're ready to queue up tasks to be executed. Queuing the Comskip TasksI've decided to queue up comskip tasks by attaching them to favourites. The advantages of this approach are:
Disadvantages:
For this example, I'll be attaching the comskip tasks to a favourite I already have setup for The Office. Go to Setup > SJQ > Manage Favorites and select any favourite you wish to setup comskip for. Select Add beside SJQ Actions, as shown below.
Next, select SDCOMSKIP and HDCOMSKIP as the tasks to run when this favourite records. You'll notice that I've chosen to queue the tasks when the recording starts. You could also choose to wait and queue the tasks until the recording has stopped. The choice is yours.
Configure PretestWhen you created the tasks you defined a pretest and copied the comskip_test.groovy file. Open that file now. Ignore everything in the file except for the block shown below. /*************** CONFIGURE VALUES IN THIS BLOCK ONLY! ***************/ boolean checkRecordingType = true; // Check the recording is of the type specified on the command line (i.e. only process mpg recordings) boolean checkForEdl = true; // If true, mark the task as skipped if an edl already exists String edlType = "edl"; // The edl extension (i.e. some people use .txt comskip files instead of .edl files) boolean comskipLive = false; // If false, this test will push the task back to the queue while the recording is in progress /********************************************************************/ You can configure the pretest by changing the values in this block. The comments explain what each option controls. For boolean options you can set them to true or false (case sensitive). The checkForEdl option will skip the task if an edl (or equivalent) already exists for the recording. The comskipLive option will delay the start of comskip until the recording completes. All Done!Hopefully, your comskip tasks are being queued. If not then go over this example again and ask questions in the SJQv4 user forum as necessary. | |