• Final Cut Server,  Mac OS X Server,  Xsan

    Scripting Video Changes in Lion: avconvert, pcastaction & podcast

    The avconvert command is a new addition in OS X Lion that allows administrators to quickly and easily convert video from one format to another using presets for video conversion. The presets are mostly common Apple formats tuned to specific devices. In its simplest form, avconvert uses a preset, a source and then an output to convert the source to the output using the preset to define the format to use for conversion. A useful preset is the 640×480 one. To convert this using this idea: /usr/bin/avconvert --preset Preset640x480 --source /Convert/test.mov --output Converted/test.mov While some of the presets are pretty self explanatory, I haven’t gone through them all to see…

  • Mac OS X Server

    Deleting a Podcast in Podcast Producer

    In an earlier post I looked at querying feeds and removing objects from Podcast Producer in a somewhat broad manner. To delete a single podcast (not a feed), you need to first find the ID for the podcast, then delete the corresponding podcast bundle (pdb). Removing assets is one of the only processes with regards to Podcast Producer that isn’t intuitive, and it’s just waiting for someone to wrap these steps into a nice pretty GUI… To find the ID of the podcast, first let’s query the sql database for the title: sqlite3 /Volumes/pcp/PodcastProducer/Server/db.sqlite3 'SELECT * FROM episodes' | grep "TITLE" Note the date and the ID (the big long…

  • Mac OS X Server

    Stupid Podcast Producer Tricks

    The document handler in Podcast Producer has been exposed to the command line in the form of a tool called document2images (located in the /usr/libexec/podcastproducer directory), which takes a pdf and converts it into a set of tiff files. In its most basic iteration the documents2images tool simply inputs a document and then outputs a couple of tiff files per page of that document. 15 pages will typically net you 30 tiffs and an xml output (not that you can put Humpty Dumpty back together again very easily). When you use document2images you will need to specify the pdf using the –document option, the xml file to output using the…

  • Mac OS X Server

    Podcast Producer Error Codes

    When you are using Podcast Producer, whether you are looking in your log files on a server in Server Admin or whether you are looking in Console on a client, if there are any problems submitting jobs you should find a numeric reference code. The meaning can be cryptic, although I’ll try a little bit here: -500 = Camera agent went offline -501 = Podcast Producer agent timed out -502 = Agent failed to communicate -600 = Tunnel protocol mismatch -601 = Tunnel could not connect -602 = Tunnel timed out -603 = Tunnel failed 1 = Internal camera agent is failing 3 = Capture failed to run 4 =…

  • Mac OS X Server

    pcastaction verbs

    pcastaction comes with a number of verbs, each specific to a type of automation that can be used in Podcast Producer. These include: unpack – extract a folder archive before running the automation shell – run a command or shell script preflight – run a script before the automation postflight – run a script after an automation encode – input a standard video file and then output a video file using a different codec annotate – annotate a files metadata qceffect – run a custom Quartz Composer composition against a file watermark – insert a watermark into an indicated video file title – provide a title for the resultant file…