Alexander, As far as I know, the "if" clause only checks the presence or absence of a certain variable, but you cannot define comparisons directly on the workflow definition. That would be certainly very convenient, but for the moment what you're asking for requires either modifying the workflow service to allow such constructions or modifying the "composer" operation handler so that you can specify a property (<configuration key="minimum_width">800</configuration>) and you skip the operation if such property does not meet certain requirements.
Please not the difficulty of what you're asking: there is no such thing as "sourcevideo", since that operation "source-flavor" may match several different tracks, so the workflow engine should be able to "selectively skip" the operation according to the condition provided. As I said, this sounds like a very useful feature, but I don't see it doable in the short term. However I encourage you to create a "Community feature request" so that this idea can be taken into account in future developments. Best regards Rubén Pérez TELTEK Video Research www.teltek.es 2013/1/18 Alexander Bias <[email protected]> > Hello, > > I have a Matterhorn workflow here which encodes a video with 3 different > qualities which are appropriately tagged (low-quality, medium-quality, > high-quality). > > Now, I would like to skip the high-quality version if the source video's > resolution is too small (perhaps because it is a legacy video which has > been uploaded to Matterhorn). Is there any possibility to do this? Perhaps > with the if-attribute in the compose operation like in the following > pseudo-code example? > > <operation > id="compose" > if="${sourcevideo.width} > 800" > fail-on-error="true" > exception-handler-workflow="error" > description="Encode presenter in high quality"> > <configurations> > <configuration > key="source-flavor">presenter/trimmed</configuration> > <configuration > key="target-flavor">presenter/delivery</configuration> > <configuration key="target-tags">engage, > rss, atom, high-quality</configuration> > <configuration > key="encoding-profile">kiz-mp4-presenter-high.http</configuration> > </configurations> > </operation> > > If this is possible, what is the exact variable to check and the exact > syntax for the value comparison? > > Thanks in advance :) > > Best regards > Alexander Bias > > University of Ulm > kiz information systems > > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > >
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
