Re: Splitting an AVI with ltmmSampleTarget
Started by twhif at 02-13-2008 23:47. Topic has 8 replies.
|
|
02-13-2008, 23:47
|
twhif
Joined on 12-30-2007
Posts 9
|
Splitting an AVI with ltmmSampleTarget
|
 
 
|
|
|
The code provided in the SDK for splitting an AVI into multiple bitmaps works great with uncompressed videos but when I try a compressed video file the sample data retrieved from ltmmSampleTarget->GetSample doesn't appear to be a bitmap. I'm assuming the sample's data buffer contains a compressed bitmap instead considering the values of the sample's BufferSize and ActualDataLength are much smaller than a frame's bitmap size (height X width X bytes/pixel). If this is the case, then how can I get the uncompressed bitmap for a sample like you would get when using a callback filter?
|
|
|
|
|
Report
|
|
|
|
02-17-2008, 21:16
|
twhif
Joined on 12-30-2007
Posts 9
|
Re: Splitting an AVI with ltmmSampleTarget
|
 
 
|
|
|
I think I'm missing something here.
When I try adding the RGB converter filter my test app crashes when the filter is added to the converter's selected processors. Even when I don't use the ltmmSampleTarget object and just set the converter target file to NUL then StartConvert fails.
I have 4 sample videos I'm testing with. The count.avi video used by the LEADTOOLS samples works fine. The other 3 are all avi files encoded with different codecs.
Each video works fine when I use the callback filter, however, there are other reasons I can't use that filter. Also, the still image writer filter doesn't sound like it would work for what I'm trying to do.
I feel that I'm missing a step. Is there a limitation as to the types of source videos the RGB convert filter can handle? Is there another filter I might try instead?
|
|
|
|
|
Report
|
|
|
|
02-19-2008, 0:02
|
twhif
Joined on 12-30-2007
Posts 9
|
Re: Splitting an AVI with ltmmSampleTarget
|
 
 
|
|
|
The .NET C# player and convert demos work (with and without the RGB filter). The C++ player and convert demos crash.
I've attached a test video I've been using. I got it somewhere off the Microsoft website. It's an old video but behaves the same as the new videos I'll be working with.
Another bit of information. When I try using ltmmSampleTarget in a C# test app, I have a problem similar to the C++ test app I've mentioned previously. Specifically I can't set both the TargetObject of a converter to an ltmmSampleTarget object and also set the RGB filter for the converter. I've tried changing the order these are set and the app always crashes or hangs when setting the second one.
|
|
|
|
|
Report
|
|
|
|
02-19-2008, 0:05
|
twhif
Joined on 12-30-2007
Posts 9
|
Re: Splitting an AVI with ltmmSampleTarget
Attachment: SAMPLE.zip
|
 
 
|
|
|
I don't see my attachment. Let's try posting without previewing first...
|
|
|
|
|
Report
|
|
|
|
03-07-2008, 8:59
|
twhif
Joined on 12-30-2007
Posts 9
|
Re: Splitting an AVI with ltmmSampleTarget
|
 
 
|
|
|
Sorry for the delay in following up on this...
The C++ player sample crashes when calling IltmmPlay::put_SourceFile well before trying to play the video. I tried checking the filter graph prior to this call but when I connect to the remote graph using GraphEdit nothing appears. I assume that's because the filter graph not in place at this point.
How can I check the versions of the files being used? I'm using the LEADTOOLS Multimedia 15 setup dated 11/29/2007. I'm also building with the Msft DirectX SDK from November 2007.
I'm not sure what else to check or how to check it.
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Enduser » Capture & Conve... » Re: Splitting an AVI with ltmmSampleTarget
|
|
Copyright LEAD Technologies, Inc. 2008
