LEADTOOLS Support
General
General Questions
Connecting motion detector filter to MPEG4 encoder filter?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, May 3, 2011 10:40:37 PM(UTC)
Groups: Registered
Posts: 5
Hi,
I'm trying to use the CLSID_LMVMtnDet motion detector filter with the CLSID_LMMP4Encoder MPEG 4 encoder filter.
My current app, before adding the motion detector, which works fine (both with MPEG 4 and H264 encoders),
connects the output pin from our source filter with an input pin on the encoder, and then an output pin from the encoder to the input pin on our stream sink filter.
If I try to insert the motion detector filter after our source and before the MPEG 4 encoder it fails.
Our source filter can be connected to the motion detector.
The graph->Connect(motionDetectorOutPin, encoderInPin) fails,
returning 0x80040217.
I can build a graph in GraphEdit like:
CaptureFilter ==> MotionDetectFilter ==> MP4Encoder ==>MP4Decoder ==> VideoRenderer
And that works fine.
Both the motion detector filter and the MP4 encoder filter have no available settings that I can find for types, subtypes, or format.
Thanks,
David
#2
Posted
:
Wednesday, May 4, 2011 5:46:50 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
David,
Like most of our processing filters, the LEAD Video Motion Detection Filter has only one subtype used for both input and output pins, which is MEDIASUBTYPE_RGB24.
This is documented in the topic "Video Motion Detection Filter (2.0)" in our multimedia filters help file.
The MPEG4 encoder accepts several subtypes, one of which is RGB24. This is documented in the same filters help file in the topic named "LEAD MPEG-4 Encoder."
This and the fact it works in Graph Edit could indicate the problem is specific to your code.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
General Questions
Connecting motion detector filter to MPEG4 encoder filter?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.