MPEG4 Playback: Video RenderEx Error(Error code is 0x80040231)
hi all:
when I use RenderEx to render my filter, it reports the error code(0x80040231), it drives me to crazy!!!
1. (My pc likes below :
os: xp en
hardware: HP 5100)
On the pc but not in one process, I call RenderEx for many times ,it runs well;
On the pc and in one process, I call RenderEx twice, it reports the error code(0x80040231);
2.(My pc likes below:
os: xp en
hardware : HP 5000)
RenderEx runs well whenever how to use it
The error code(0x80040231) means that the filter graph is circular, but i can not understand it and the reason of the error, can anyone tell me? Thank you very much! Sorry for my poor english!
[723 byte] By [
wangfang] at [2007-12-26]
The circular error is irrelevant. If you fail to build a graph, the graph manager will have tried lots of connections and they will all have failed. It attempts some heuristics to return the most "interesting" error, but that goes wrong as in this case.
The best way to diagnose this is to use graphedt and turn off intelligent connect. Then build the graph you want step-by-step. If I understand you, you will need to render the file one, and then build a second graph in the same graphedt window for it to fail. With intelligent connect turned off, you should see the correct error code when you try to manually build the graph.
G
Thanks for your help!
I've tried what you had said, but the result is that it ran well in the graphedit.
In my application, I got the debug information below when it ran. what it means?!!!!!
>>>>>>>>>>>>>>>>>>>>>> Debug Information Begin >>>>>>>>>>>>>>>>>>>>>>>>>>>>
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
D3D9 Helper: Enhanced D3DDebugging disabled; Application was not compiled with D3D_DEBUG_INFO
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (INFO) :======================= Hal SWVP device selected
Direct3D9: (INFO) :HalDevice Driver Style 8
Direct3D9: :BackBufferCount not specified, considered default 1
Direct3D9: :DoneExclusiveMode
Direct3D9: (INFO) :Using P4 PSGP
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
D3D9 Helper: Enhanced D3DDebugging disabled; Application was not compiled with D3D_DEBUG_INFO
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (INFO) :======================= Hal SWVP device selected
Direct3D9: (INFO) :HalDevice Driver Style 8
Direct3D9: :BackBufferCount not specified, considered default 1
Direct3D9: :DoneExclusiveMode
Direct3D9: (INFO) :Using P4 PSGP
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
D3D9 Helper: Enhanced D3DDebugging disabled; Application was not compiled with D3D_DEBUG_INFO
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (WARN) :driver set D3DDEVCAPS_TEXTURENONLOCALVIDMEM w/o DDCAPS2_NONLOCALVIDMEM:turning off D3DDEVCAPS_TEXTURENONLOCALVIDMEM
Direct3D9: (INFO) :======================= Hal SWVP device selected
Direct3D9: (INFO) :HalDevice Driver Style 8
Direct3D9: :BackBufferCount not specified, considered default 1
Direct3D9: :DoneExclusiveMode
Direct3D9: (INFO) :Using P4 PSGP
Direct3D9: (ERROR) :Unsupported guid specified. CreateDXVADevice fails.
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Invalid format specified for texture
Direct3D9: (ERROR) :Failure trying to create a texture
Direct3D9: (ERROR) :This format is not supported. CreateSurface fails.
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Invalid format specified for texture
Direct3D9: (ERROR) :Failure trying to create a texture
Direct3D9: (ERROR) :This format is not supported. CreateSurface fails.
'SonapsDesktop.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', No symbols loaded.
'SonapsDesktop.exe': Loaded 'C:\WINDOWS\system32\qdvd.dll', No symbols loaded.
'SonapsDesktop.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', No symbols loaded.
Direct3D9: (ERROR) :Invalid format specified for texture
Direct3D9: (ERROR) :Failure trying to create a texture
Direct3D9: (ERROR) :This format is not supported. CreateSurface fails.
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Invalid format specified for texture
Direct3D9: (ERROR) :Failure trying to create a texture
Direct3D9: (ERROR) :This format is not supported. CreateSurface fails.
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Destination textures passed to StretchRect or ColorFill must have D3DUSAGE_RENDERTARGET set
Direct3D9: (ERROR) :Failed to lock driver mip-map surface
Direct3D9: (ERROR) :Invalid format specified for texture
Direct3D9: (ERROR) :Failure trying to create a texture
Direct3D9: (ERROR) :This format is not supported. CreateSurface fails.
>>>>>>>>>>>>>>>>>>>>>> Debug Information End>>>>>>>>>>>>>>>>>>>>>>>>>>>>