Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, May 3, 2011 10:40:37 PM(UTC)


Groups: Registered
Posts: 5


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.



Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, May 4, 2011 5:46:50 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

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.

Maen Badwan
LEADTOOLS Technical Support
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.051 seconds.