Skip to content

Return Codes

Return Codes

Return CodeReason
imNoErrOperation has completed without error.
imTooWideFile dimensions too large.
imBadFileBad file format.
To defer an unsupported subtype to a lower priority importer, return this during imOpenFile8 or imGetInfo8.
imUnsupportedUnsupported selector.
imMemErrMemory error.
imOtherErrUnknown error.
imNoContentNo audio or video.
imBadRateBad audio rate.
imBadCompressionBad compression.
imBadCodecCodec not found.
imNotFlatUnflattened QuickTime movie.
imBadSndCompBad sound compression.
imNoTimecodeTimecode supported, but not found.
imMissingComponentMissing component needed to open the file.
imSaveErrError saving file.
imDeleteErrError deleting file.
imNotFoundErrThe requested metadata chunk was not found.
imSetFileReturn this from imGetPrefs8 only if you are a custom importer and you need Premiere to alter it’s file access information (e.g. a new path or filename is created).
imIterateStreamsReturn from imGetInfo8 to indicate that there are more streams to describe.
Premiere will send imGetInfo8 for the next stream.
imBadStreamIndexReturn from imGetInfo8 after interating through streams to indicate that there are no more streams to describe.
imCantTrimReturn from imCheckTrim if the file cannot be trimmed by the importer.
imDiskFullReturn from imTrimFile8 if there is not enough space to complete the trim operation.
imDiskErrReturn from imTrimFile8 if there is a general disk or I/O error during the trim operation.
imFileShareViolationReturn from imOpenFile8 if file cannot be opened due to another process having exclusive read access
imIterateFrameSizesReturn from imGetPreferredFrameSize, to be called again to describe more frame sizes for a particular pixel format.
imMediaPendingReturn from imGetSourceVideo or imCreateAsyncImporter if the importer is still processing the file and cannot return video frames yet.
imDRMControlledReturn from imOpenFile8 if the file cannot be opened because it is under rights management.
imActivationFailedActivation of a component failed (usually due to user cancellation).
This is used by Premiere Elements.
imFrameNotFoundNew in CS4. Return if an importer could not find the requested frame (typically used with async importers)
imBadHeaderNew in CS5. The file cannot be opened because of a header error
imUnsupportedCompressionNew in CS5. The file has a compression type that the importer does not support
imFileOpenFailedNew in CS5. The importer was unable to open the file on disk
imFileHasNoImportableStreamsNew in CS5. The file has no audio or video stream
imFileReadFailedNew in CS5. A read from an open file failed
imUnsupportedAudioFormatNew in CS5. The importer cannot import something in the audio format
imUnsupportedVideoBitDepthNew in CS5. The video bit depth of this file is unsupported by the importer
imDecompressionErrorNew in CS5. The importer hit an error decompressing the audio or video
imInvalidPreferencesNew in CS5. Invalid prefs data was passed to the importer
inFileNotAvailableNew in CS5. Return from imQueryContentState if the file/stream is no longer available because it is offline or deleted
imRequiresProtectedContentNew in CS5.5. Return from imInit if the importer depends on a library that has not been activated yet.
imNoCaptionsNew in CC. Return from imInitiateAsyncClosedCaptionScan if the clip has no closed captions, or return from imGetNextClosedCaption when there are no more captions.
imCancelReturn from imGetPrefs8 if user cancels or the plugin cannot open the file (custom/synthetic importer).
imBadFormatIndexReturn this when given an out of range format index, and from imGetIndFormat when plugin has no more formats to enumerate.
imIsCacheableReturn from imInit if a plugin does not need to be called to initialize every time Premiere is launched.
This will help reduce the time to launch the application.