PC Review


Reply
Thread Tools Rate Thread

Capture driver for MPEG2 stream !

 
 
ShaqLee
Guest
Posts: n/a
 
      8th Apr 2004
Hello.

I need some help to write capture driver which receive MPEG2 stream from USB
capture device.
Here is the description:

I modify the capture driver of DDK USB PC camera to change driver's out
stream from video to MPEG2.
Result render is ok, but the driver stream data can't be play by
DirectShow(I have correct MPEG2 decoder in the Capture Graph).
The GraphEdit display error code is "0x800706f8" and error message is "The
graph could not change state, provide to request user buffer is invalid".
I try to trace the capture driver, I find stream state already from pause to
run and data is prepare to read,
but no any read command to read MPEG2 stream from AP. In the meanwhile I use
another tool--"KsStudio",
it display "KSDATAFORMAT.FormatSize (152) does not match the size of the
specified format (sizeof(KSDATAFORMAT) = 64)"
after capture driver receive SRB_GET_DATA_INTERSECTION from stream class
driver.
I only change MajorFormat, SubFormat and Specifier of DataRange structure
from original DDK source code.
(The MajorFormat parameter is 'STATIC_KSDATAFORMAT_TYPE_STREAM',
the SubFormat parameter is 'STATIC_KSDATAFORMAT_TYPE_MPEG2_TRANSPORT' and
the Specifier parameter is 'STATIC_KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO').

After above-mentioned method fail, I try another solution as DDK mentioned
to change DataRange and DataForamt structure.
DataRange use 'KS_DATARANGE_MPEG2_VIDEO' structure and DataFormat use
'KS_MPEGVIDEOINFO2' structure.
The MajorFormat, SubFormat and Specifier parameter same as above-mentioned
method. Result is still fail.

Help, please! What am I doing wrong???
I will be happy to hear any clues.
Thanks.

Shaq



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing MPEG2 stream? Tomppa Microsoft Dot NET Compact Framework 1 6th Mar 2007 04:48 PM
MPEG2 screen capture =?Utf-8?B?Sm9hY2hpbQ==?= Windows XP Video 3 11th Mar 2006 05:46 PM
MPEG2 screen capture =?Utf-8?B?Sm9hY2hpbQ==?= Windows XP General 0 10th Mar 2006 05:37 AM
MPEG2 Video Capture to a BMP =?Utf-8?B?Sm9ubnlSZWRCaWtl?= Microsoft Dot NET Framework 3 19th Mar 2004 01:40 PM
Anyone capture MPEG2? Help please. Ar Q ATI Video Cards 12 26th Jan 2004 12:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:55 PM.