[Debconf-video-commits] r324 - package/branches/pycon09/src
benh at alioth.debian.org
benh at alioth.debian.org
Mon Mar 16 02:39:42 UTC 2009
Author: benh
Date: 2009-03-16 02:39:41 +0000 (Mon, 16 Mar 2009)
New Revision: 324
Modified:
package/branches/pycon09/src/dc-do-transcoding
Log:
Use either -f or -target option to set output format, as appropriate.
Modified: package/branches/pycon09/src/dc-do-transcoding
===================================================================
--- package/branches/pycon09/src/dc-do-transcoding 2009-03-16 02:37:26 UTC (rev 323)
+++ package/branches/pycon09/src/dc-do-transcoding 2009-03-16 02:39:41 UTC (rev 324)
@@ -141,10 +141,10 @@
argv.extend(['-ss', str(start_time)])
if end_time:
argv.extend(['-t', str(end_time - (start_time or 0))])
- # XXX The schema says that container_name is a
- # format name but we actually use it as a target
- # name here.
- argv.extend(['-target', job.container_name])
+ if re.match(r'(?:pal|ntsc|film)-', job.container_name):
+ argv.extend(['-target', job.container_name])
+ else:
+ argv.extend(['-f', job.container_name])
# video parameters
argv.extend(['-deinterlace'])
if job.video_width and job.video_height:
More information about the Debconf-video-commits
mailing list