DirectX Video Questions
Posted: Mon Apr 25, 2005 4:52 am
				
				In the near future I'll be doing some video display stuff in one of my programs.  How good is directx doing with video?  My previous (VB) implementation used MCI commands rather than DirectX.  This was because I had finer control over the position of the video.  DirectX for VB didn't give me the ability to seek to a particular frame and show it correctly.  From what I remember at the time, DirectX for VB would seek but not frame accurate.  It would go to the nearest frame.  And then I couldn't get it to refresh the display when I wanted.  If I recall, you had to be playing a video and then seek and then stop (or pause) for it to show the frame you're seeking to.  With MCI I could seek all I want without having to play the file or do anything else and it would display the frame just fine.
Is the DirectX useable from PB able to overcome this? I *thought* there was some command in DX that could refresh the display but it wasn't available in the DX wrapper for VB at the time.
The main things I need to do is to be able to load a video (avi or mpg or whatever is supported on the system) and then quickly seek to a specific time in the video. No actual video playing would occur unless I told it to play the video. The seeking would just to show certain frames to the user. I also need the ability to save a specific frame or even (would be nice) copy the frame into memory as a bitmap and display it in an imagegadget.
Would MCI still be better than DX for this? And if DX is better, is there any way I could load specific filters (if that's what they're called) from memory? For example, if I have a video file and then a file containing subtitles for the video file. Now suppose I have a DX registered filter (plugin? I have no idea what these are called) - can I load that filter into the created DX video display window and tell it to use the specific subtitle file all without user interaction?
I appreciate y'alls thought on the matter.
			Is the DirectX useable from PB able to overcome this? I *thought* there was some command in DX that could refresh the display but it wasn't available in the DX wrapper for VB at the time.
The main things I need to do is to be able to load a video (avi or mpg or whatever is supported on the system) and then quickly seek to a specific time in the video. No actual video playing would occur unless I told it to play the video. The seeking would just to show certain frames to the user. I also need the ability to save a specific frame or even (would be nice) copy the frame into memory as a bitmap and display it in an imagegadget.
Would MCI still be better than DX for this? And if DX is better, is there any way I could load specific filters (if that's what they're called) from memory? For example, if I have a video file and then a file containing subtitles for the video file. Now suppose I have a DX registered filter (plugin? I have no idea what these are called) - can I load that filter into the created DX video display window and tell it to use the specific subtitle file all without user interaction?
I appreciate y'alls thought on the matter.