Hi…
Is the streaming flag being set on .mov’s that are being made, or is there a flag to add this?
Seems like all our qt’s that are being fed to a web browser are downloading before playing…
Thanks,
-Andrew
Hi…
Is the streaming flag being set on .mov’s that are being made, or is there a flag to add this?
Seems like all our qt’s that are being fed to a web browser are downloading before playing…
Thanks,
-Andrew
Currently there is no flag to add this, but you can use the following function to create a new copy of your movie with FastStart enabled:
Draft.QTFastStart( inFilename, outFilename )
great… thanks
-andrew
So would this be something that I could add at the end of a template?
for example if I just want to enable QTFastStart on the same clip without making a second qt…
videoEncoder.FinalizeEncoding()
Draft.QTFastStart(params[‘outFile’],params[‘outFile’])
Unfortunately using the same file for inFilename and outFilename will cause problems. I’d suggest using a temporary file, along these lines:
[code]import os
…
(outFileHead, outFileTail) = os.path.split( params[‘outFile’] )
tempOutFile = os.path.join( outFileHead, ‘~temp_’ + outFileTail )
videoEncoder = Draft.VideoEncoder( tempOutFile, … )
…
videoEncoder.FinalizeEncoding()
Draft.QTFastStart( tempOutFile, params[‘outFile’] )
os.remove( tempOutFile )[/code]
That did the trick… thanks!
Great, thank you for letting us know!