[Debconf-video-commits] r435 - package/trunk/src
Ben Hutchings
benh at alioth.debian.org
Sat Jun 20 14:58:34 UTC 2009
Author: benh
Date: 2009-06-20 14:58:33 +0000 (Sat, 20 Jun 2009)
New Revision: 435
Modified:
package/trunk/src/dc-do-transcoding
Log:
Fix up metadata variables for both ffmpeg and ffmpeg2theora
Modified: package/trunk/src/dc-do-transcoding
===================================================================
--- package/trunk/src/dc-do-transcoding 2009-06-20 14:57:31 UTC (rev 434)
+++ package/trunk/src/dc-do-transcoding 2009-06-20 14:58:33 UTC (rev 435)
@@ -97,6 +97,11 @@
else:
return False
+ author = config['PUBLISH_AUTHOR']
+ organisation = config['PUBLISH_ORG']
+ licence = config['PUBLISH_LICENSE']
+ venue = config['VENUE_NAME']
+
# Use ffmpeg2theora if possible, otherwise ffmpeg
if ((job.container_name, job.video_codec_name, job.audio_codec_name)
== ('ogg', 'theora', 'vorbis')):
@@ -122,12 +127,12 @@
argv.extend(['-c', str(job.audio_channel_count)])
argv.extend(['-A', str(job.audio_bit_rate // 1000)])
# metadata
- argv.extend(['--artist', config['PUBLISH_AUTHOR'],
- '--location', config['VENUE_NAME'],
+ argv.extend(['--artist', author,
+ '--location', venue,
'--date', str(job.recording_time)[:10], # ugh
- '--organization', config['PUBLISH_ORG'],
- '--copyright', config['PUBLISH_AUTHOR'],
- '--license', config['PUBLISH_LICENSE']])
+ '--organization', organisation,
+ '--copyright', author,
+ '--license', licence])
else:
argv = ['ffmpeg']
# input, output
More information about the Debconf-video-commits
mailing list