[Debconf-video-commits] r725 - package/trunk/src/preroles

Ben Hutchings benh at alioth.debian.org
Sun Nov 6 14:23:33 UTC 2011


Author: benh
Date: 2011-11-06 14:23:32 +0000 (Sun, 06 Nov 2011)
New Revision: 725

Modified:
   package/trunk/src/preroles/genPrerole.py
Log:
Use correct options to add silent audio to video


Modified: package/trunk/src/preroles/genPrerole.py
===================================================================
--- package/trunk/src/preroles/genPrerole.py	2011-11-06 13:50:19 UTC (rev 724)
+++ package/trunk/src/preroles/genPrerole.py	2011-11-06 14:23:32 UTC (rev 725)
@@ -225,10 +225,8 @@
     #cat the first part of the prerole in front of the edittedt one
     result = commands.getstatusoutput('cat preprerole.dv '+ args.workdir+args.id +'.tmp > '+ args.workdir+args.id +'.tmp1')
 
-    result = commands.getstatusoutput("ffmpeg -f dv -target pal-dv -i "+args.workdir+args.id+".tmp1 -f u16le -i silence -vcodec copy -t "+prerole_duration+" "+args.workdir+args.id+"_prerole.dv")
-    #if result[0] == 1:
-    # no idea why ffmpeg is not returning 0 at this call
-    if True:
+    result = commands.getstatusoutput("ffmpeg -f dv -i "+args.workdir+args.id+".tmp1 -f s16le -ar 48000 -ac 2 -i silence -target pal-dv -vcodec copy -t "+prerole_duration+" "+args.workdir+args.id+"_prerole.dv")
+    if result[0] == 0:
         commands.getstatusoutput("rm -f "+args.workdir+args.id+".tmp "+args.workdir+args.id+".tmp1")
     else:
         print "audio fix not applied"




More information about the Debconf-video-commits mailing list