DirectShow Error and Success Codes

Header: vfwmsgs.h

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

This topic lists the HRESULT return codes that are defined for DirectShow. Note that DirectShow APIs can return other HRESULT values not shown here. For additional HRESULT values, see COM Error Codes.

The following table contains DirectShow-specific error and success codes in numerical order. Return codes beginning with VFW_S_ indicate success. An operation might partially succeed and still have a successful return value. For example, VFW_S_SOME_DATA_IGNORED indicates that a file was rendered by ignoring some of its property settings. Return codes beginning with VFW_E_ indicate an error.

These values are defined in the header file Vfwmsgs.h.

SymbolicCodeDescription
VFW_S_NO_MORE_ITEMS0x00040103Reached the end of the list; no more items in the list. (Filter developers: The CBasePin::GetMediaType method is expected to return this value.)
VFW_S_DUPLICATE_NAME0x0004022DAn attempt to add a filter with a duplicate name succeeded with a modified name.
VFW_S_STATE_INTERMEDIATE0x00040237The state transition is not complete.
VFW_S_PARTIAL_RENDER0x00040242Some of the streams are in an unsupported format.
VFW_S_SOME_DATA_IGNORED0x00040245The file contained some property settings that were not used.
VFW_S_CONNECTIONS_DEFERRED0x00040246Some connections failed and were deferred.
VFW_S_RESOURCE_NOT_NEEDED0x00040250The resource specified is no longer needed.
VFW_S_MEDIA_TYPE_IGNORED0x00040254A GraphEdit (.grf) file was loaded successfully, but at least two pins were connected using a different media type than the media type stored in the GraphEdit file.
VFW_S_VIDEO_NOT_RENDERED0x00040257Cannot play back the video stream: could not find a suitable renderer.
VFW_S_AUDIO_NOT_RENDERED0x00040258Cannot play back the audio stream: could not find a suitable renderer.
VFW_S_RPZA0x0004025ACannot play back the video stream: format 'RPZA' is not supported.
VFW_S_ESTIMATED0x00040260The value returned had to be estimated. Its accuracy can't be guaranteed.
VFW_S_RESERVED0x00040263This success code is reserved for internal purposes within DirectShow.
VFW_S_STREAM_OFF0x00040267The stream was turned off.
VFW_S_CANT_CUE0x00040268The filter is active, but cannot deliver data. See IMediaFilter::GetState .
VFW_S_NO_STOP_TIME0x00040270The sample had a start time but not a stop time. In this case, the stop time that is returned is set to the start time plus one.
VFW_S_NOPREVIEWPIN0x0004027EPreview was rendered throught the Smart Tee filter, because the capture filter does not have a preview pin.
VFW_S_DVD_NON_ONE_SEQUENTIAL0x00040280The current title is not a sequential set of chapters (PGC), so the timing information might not be continuous.
VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE0x0004028CThe audio stream does not contain enough information to determine the contents of each channel.
VFW_S_DVD_NOT_ACCURATE0x0004028DThe seek operation on the DVD was not frame accurate.
VFW_E_INVALIDMEDIATYPE0x80040200The specified media type is invalid.
VFW_E_INVALIDSUBTYPE0x80040201The specified media subtype is invalid.
VFW_E_NEED_OWNER0x80040202This object can only be created as an aggregated object.
VFW_E_ENUM_OUT_OF_SYNC0x80040203The state of the enumerated object has changed and is now inconsistent with the state of the enumerator. Discard any data obtained from previous calls to the enumerator and then update the enumerator by calling the enumerator's Reset method.
VFW_E_ALREADY_CONNECTED0x80040204At least one of the pins involved in the operation is already connected.
VFW_E_FILTER_ACTIVE0x80040205This operation cannot be performed because the filter is active.
VFW_E_NO_TYPES0x80040206One of the specified pins supports no media types.
VFW_E_NO_ACCEPTABLE_TYPES0x80040207There is no common media type between these pins.
VFW_E_INVALID_DIRECTION0x80040208Two pins of the same direction cannot be connected.
VFW_E_NOT_CONNECTED0x80040209The operation cannot be performed because the pins are not connected.
VFW_E_NO_ALLOCATOR0x8004020ANo sample buffer allocator is available.
VFW_E_RUNTIME_ERROR0x8004020BA run-time error occurred.
VFW_E_BUFFER_NOTSET0x8004020CNo buffer space has been set.
VFW_E_BUFFER_OVERFLOW0x8004020DThe buffer is not big enough.
VFW_E_BADALIGN0x8004020EAn invalid alignment was specified.
VFW_E_ALREADY_COMMITTED0x8004020FThe allocator was not committed. See IMemAllocator::Commit .
VFW_E_BUFFERS_OUTSTANDING0x80040210One or more buffers are still active.
VFW_E_NOT_COMMITTED0x80040211Cannot allocate a sample when the allocator is not active.
VFW_E_SIZENOTSET0x80040212Cannot allocate memory because no size has been set.
VFW_E_NO_CLOCK0x80040213Cannot lock for synchronization because no clock has been defined.
VFW_E_NO_SINK0x80040214Quality messages could not be sent because no quality sink has been defined.
VFW_E_NO_INTERFACE0x80040215A required interface has not been implemented.
VFW_E_NOT_FOUND0x80040216An object or name was not found.
VFW_E_CANNOT_CONNECT0x80040217No combination of intermediate filters could be found to make the connection.
VFW_E_CANNOT_RENDER0x80040218No combination of filters could be found to render the stream.
VFW_E_CHANGING_FORMAT0x80040219Could not change formats dynamically.
VFW_E_NO_COLOR_KEY_SET0x8004021ANo color key has been set.
VFW_E_NOT_OVERLAY_CONNECTION0x8004021BCurrent pin connection is not using the IOverlay transport.
VFW_E_NOT_SAMPLE_CONNECTION0x8004021CCurrent pin connection is not using the IMemInputPin transport.
VFW_E_PALETTE_SET0x8004021DSetting a color key would conflict with the palette already set.
VFW_E_COLOR_KEY_SET0x8004021ESetting a palette would conflict with the color key already set.
VFW_E_NO_COLOR_KEY_FOUND0x8004021FNo matching color key is available.
VFW_E_NO_PALETTE_AVAILABLE0x80040220No palette is available.
VFW_E_NO_DISPLAY_PALETTE0x80040221Display does not use a palette.
VFW_E_TOO_MANY_COLORS0x80040222Too many colors for the current display settings.
VFW_E_STATE_CHANGED0x80040223The state changed while waiting to process the sample.
VFW_E_NOT_STOPPED0x80040224The operation could not be performed because the filter is not stopped.
VFW_E_NOT_PAUSED0x80040225The operation could not be performed because the filter is not paused.
VFW_E_NOT_RUNNING0x80040226The operation could not be performed because the filter is not running.
VFW_E_WRONG_STATE0x80040227The operation could not be performed because the filter is in the wrong state.
VFW_E_START_TIME_AFTER_END0x80040228The sample start time is after the sample end time.
VFW_E_INVALID_RECT0x80040229The supplied rectangle is invalid.
VFW_E_TYPE_NOT_ACCEPTED0x8004022AThis pin cannot use the supplied media type.
VFW_E_SAMPLE_REJECTED0x8004022BThis sample cannot be rendered.
VFW_E_SAMPLE_REJECTED_EOS0x8004022CThis sample cannot be rendered because the end of the stream has been reached.
VFW_E_DUPLICATE_NAME0x8004022DAn attempt to add a filter with a duplicate name failed.
VFW_E_TIMEOUT0x8004022EA time-out has expired.
VFW_E_INVALID_FILE_FORMAT0x8004022FThe file format is invalid.
VFW_E_ENUM_OUT_OF_RANGE0x80040230The list has already been exhausted.
VFW_E_CIRCULAR_GRAPH0x80040231The filter graph is circular.
VFW_E_NOT_ALLOWED_TO_SAVE0x80040232Updates are not allowed in this state.
VFW_E_TIME_ALREADY_PASSED0x80040233An attempt was made to queue a command for a time in the past.
VFW_E_ALREADY_CANCELLED0x80040234The queued command was already canceled.
VFW_E_CORRUPT_GRAPH_FILE0x80040235Cannot render the file because it is corrupt.
VFW_E_ADVISE_ALREADY_SET0x80040236An IOverlay advise link already exists.
VFW_E_NO_MODEX_AVAILABLE0x80040238No full-screen modes are available.
VFW_E_NO_ADVISE_SET0x80040239This advise cannot be canceled because it was not successfully set.
VFW_E_NO_FULLSCREEN0x8004023AFull-screen mode is not available.
VFW_E_IN_FULLSCREEN_MODE0x8004023BCannot call IVideoWindow methods while in full-screen mode.
VFW_E_UNKNOWN_FILE_TYPE0x80040240The media type of this file is not recognized.
VFW_E_CANNOT_LOAD_SOURCE_FILTER0x80040241The source filter for this file could not be loaded.
VFW_E_FILE_TOO_SHORT0x80040243A file appeared to be incomplete.
VFW_E_INVALID_FILE_VERSION0x80040244The file's version number is invalid.
VFW_E_INVALID_CLSID0x80040247This file is corrupt: it contains an invalid class identifier.
VFW_E_INVALID_MEDIA_TYPE0x80040248This file is corrupt: it contains an invalid media type.
VFW_E_SAMPLE_TIME_NOT_SET0x80040249No time stamp has been set for this sample.
VFW_E_MEDIA_TIME_NOT_SET0x80040251No media time was set for this sample.
VFW_E_NO_TIME_FORMAT_SET0x80040252No media time format was selected.
VFW_E_MONO_AUDIO_HW0x80040253Cannot change balance because audio device is monoaural only.
VFW_E_NO_DECOMPRESSOR0x80040255Cannot play back the video stream: could not find a suitable decompressor.
VFW_E_NO_AUDIO_HARDWARE0x80040256Cannot play back the audio stream: no audio hardware is available, or the hardware is not supported.
VFW_E_RPZA0x80040259Cannot play back the video stream: format 'RPZA' is not supported.
VFW_E_PROCESSOR_NOT_SUITABLE0x8004025BDirectShow cannot play MPEG movies on this processor.
VFW_E_UNSUPPORTED_AUDIO0x8004025CCannot play back the audio stream: the audio format is not supported.
VFW_E_UNSUPPORTED_VIDEO0x8004025DCannot play back the video stream: the video format is not supported.
VFW_E_MPEG_NOT_CONSTRAINED0x8004025EDirectShow cannot play this video stream because it falls outside the constrained standard.
VFW_E_NOT_IN_GRAPH0x8004025FCannot perform the requested function on an object that is not in the filter graph.
VFW_E_NO_TIME_FORMAT0x80040261Cannot access the time format on an object.
VFW_E_READ_ONLY0x80040262Could not make the connection because the stream is read-only and the filter alters the data.
VFW_E_BUFFER_UNDERFLOW0x80040264The buffer is not full enough.
VFW_E_UNSUPPORTED_STREAM0x80040265Cannot play back the file: the format is not supported.
VFW_E_NO_TRANSPORT0x80040266Pins cannot connect because they don't support the same transport. For example, the upstream filter might require the IAsyncReader interface, while the downstream filter requires IMemInputPin .
VFW_E_BAD_VIDEOCD0x80040269The Video CD can't be read correctly by the device or the data is corrupt.
VFW_E_OUT_OF_VIDEO_MEMORY0x80040271There is not enough video memory at this display resolution and number of colors. Reducing resolution might help.
VFW_E_VP_NEGOTIATION_FAILED0x80040272The video port connection negotiation process has failed.
VFW_E_DDRAW_CAPS_NOT_SUITABLE0x80040273Either DirectDraw has not been installed or the video card capabilities are not suitable. Make sure the display is not in 16-color mode.
VFW_E_NO_VP_HARDWARE0x80040274No video port hardware is available, or the hardware is not responding.
VFW_E_NO_CAPTURE_HARDWARE0x80040275No capture hardware is available, or the hardware is not responding.
VFW_E_DVD_OPERATION_INHIBITED0x80040276This user operation is prohibited by DVD content at this time.
VFW_E_DVD_INVALIDDOMAIN0x80040277This operation is not permitted in the current domain.
VFW_E_DVD_NO_BUTTON0x80040278Requested button is not available.
VFW_E_DVD_GRAPHNOTREADY0x80040279DVD-Video playback graph has not been built yet.
VFW_E_DVD_RENDERFAIL0x8004027ADVD-Video playback graph building failed.
VFW_E_DVD_DECNOTENOUGH0x8004027BDVD-Video playback graph could not be built due to insufficient decoders.
VFW_E_DDRAW_VERSION_NOT_SUITABLE0x8004027CThe DirectDraw version number is not suitable. Make sure to install DirectX 5 or higher.
VFW_E_COPYPROT_FAILED0x8004027DCopy protection could not be enabled.
VFW_E_TIME_EXPIRED0x8004027FSeek command timed out.
VFW_E_DVD_WRONG_SPEED0x80040281The operation cannot be performed at the current playback speed.
VFW_E_DVD_MENU_DOES_NOT_EXIST0x80040282The specified DVD menu does not exist.
VFW_E_DVD_CMD_CANCELLED0x80040283The specified command was canceled or no longer exists.
VFW_E_DVD_STATE_WRONG_VERSION0x80040284The DVD state information contains the wrong version number.
VFW_E_DVD_STATE_CORRUPT0x80040285The DVD state information is corrupted.
VFW_E_DVD_STATE_WRONG_DISC0x80040286The DVD state information is from another disc and not the current disc.
VFW_E_DVD_INCOMPATIBLE_REGION0x80040287The region is not compatible with the drive.
VFW_E_DVD_NO_ATTRIBUTES0x80040288The requested attributes do not exist.
VFW_E_DVD_NO_GOUP_PGC0x80040289The operation cannot be performed because no GoUp program chain (PGC) is available.
VFW_E_DVD_LOW_PARENTAL_LEVEL0x8004028AThe operation is prohibited because the parental level is too low.
VFW_E_DVD_NOT_IN_KARAOKE_MODE0x8004028BThe DVD Navigator is not in karaoke mode.
VFW_E_FRAME_STEP_UNSUPPORTED0x8004028EFrame stepping is not supported.
VFW_E_DVD_STREAM_DISABLED0x8004028FThe requested stream is disabled.
VFW_E_DVD_TITLE_UNKNOWN0x80040290The operation requires a title number, but there is no current title. This error can occur when the DVD Navigator is not in the Title domain or the Video Title Set Menu (VTSM) domain.
VFW_E_DVD_INVALID_DISC0x80040291The specified path is not a valid DVD disc.
VFW_E_DVD_NO_RESUME_INFORMATION0x80040292The Resume operation could not be completed, because there is no resume information.
VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD0x80040293Pin is already blocked on the calling thread.
VFW_E_PIN_ALREADY_BLOCKED0x80040294Pin is already blocked on another thread.
VFW_E_CERTIFICATION_FAILURE0x80040295Use of this filter is restricted by a software key. The application must unlock the filter.
VFW_E_VMR_NOT_IN_MIXER_MODE0x80040296The Video Mixing Renderer (VMR) is not in mixing mode. Call IVMRFilterConfig::SetNumberOfStreams (VMR-7) or IVMRFilterConfig9::SetNumberOfStreams (VMR-9).
VFW_E_VMR_NO_AP_SUPPLIED0x80040297The application has not yet provided the VMR filter with a valid allocator-presenter object.
VFW_E_VMR_NO_DEINTERLACE_HW0x80040298The VMR could not find any de-interlacing hardware on the current display device.
VFW_E_VMR_NO_PROCAMP_HW0x80040299The VMR could not find any hardware that supports ProcAmp controls on the current display device.
VFW_E_DVD_VMR9_INCOMPATIBLEDEC0x8004029AThe hardware decoder uses video port extensions (VPE), which are not compatible with the VMR-9 filter.
VFW_E_NO_COPP_HW0x8004029BThe current display device does not support Content Output Protection Protocol (COPP); or the VMR has not connected to a display device yet.
VFW_E_BAD_KEY0x800403F2A registry entry is corrupt.
VFW_E_DVD_NONBLOCKING0x8004029CThe DVD navigator cannot complete the requested operation, because another operation is still pending.
VFW_E_DVD_TOO_MANY_RENDERERS_IN_FILTER_GRAPH0x8004029DThe DVD Navigator cannot build the DVD playback graph because the graph contains more than one video renderer.
VFW_E_DVD_NON_EVR_RENDERER_IN_FILTER_GRAPH0x8004029EThe DVD Navigator cannot add the Enhanced Video Renderer (EVR) filter to the filter graph because the graph already contains a video renderer.
VFW_E_DVD_RESOLUTION_ERROR0x8004029FDVD Video output is not at a proper resolution.
VFW_E_CODECAPI_LINEAR_RANGE0x80040310The specified codec parameter has a linear range, not an enumerated list.
VFW_E_CODECAPI_ENUMERATED0x80040311The specified codec parameter has an enumerated range of values, not a linear range.
VFW_E_CODECAPI_NO_DEFAULT0x80040313The specified codec parameter does not have a default value.
VFW_E_CODECAPI_NO_CURRENT_VALUE0x80040314The specified codec parameter does not have a current value.
E_PROP_ID_UNSUPPORTED0x80070490The specified property identifier is not supported.
E_PROP_SET_UNSUPPORTED0x80070492The specified property set is not supported.
S_WARN_OUTPUTRESET0x00009DD4The rendering portion of the graph was deleted. The application must rebuild it.
E_NOTINTREE0x80040400The object is not contained in the timeline.
E_RENDER_ENGINE_IS_BROKEN0x80040401Operation failed because project was not rendered successfully.
E_MUST_INIT_RENDERER0x80040402Render engine has not been initialized.
E_NOTDETERMINED0x80040403Cannot determine requested value.
E_NO_TIMELINE0x80040404There is no timeline object.
159 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.