cgarlock

Raster to Video Tool

Discussion created by cgarlock on Mar 27, 2013
Latest reply on Jun 30, 2016 by bsriramak
I'm having an issue exporting my .avi video
I am using a version of the following script:

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "c:/data"

#Set local variables
inFolder = "images"
outputVideoFile = "outputVideo.avi"

#Execute RaserToVideo
arcpy.RasterToVideo_conversion(inFolder, outputVideoFile, "BMP", "Microsoft Video 1", "TIME", "35", "90")



It says that the codec is "optional" but when I leave it out I get an error stating the value is not a member of Microsoft Video 1 etc...

When I leave the "Microsoft Video 1" in the code, the video is exported but when I try to play the video I get an error saying the file type is supported by the playet but the file was compressed using codec that is not supported. I'm using Windows Media player,

What do I need to change to get this to play?

Outcomes