Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: detect hardware button press with MediaFoundation (what still pin did in directshow) #3

Open
eduramiba opened this issue Jan 6, 2025 · 0 comments

Comments

@eduramiba
Copy link

Dear mofo7777,

I am currently working on a project where I need to detect a hardware button press on an external camera to capture a photo. While I have a working example using DirectShow with the still pin, my application utilizes MediaFoundation to handle the webcam video stream.

I came across your insightful response on StackOverflow, which helped me understand the issue better. My device provides two streams: a 25fps video stream and a secondary 1fps stream.

However, I am encountering difficulties when trying to read samples from the 1fps stream. Currently, I only receive one sample flagged with MF_SOURCE_READERF_STREAMTICK, and no further samples are being processed.

Could you provide guidance or assistance on how to properly read and handle samples from the 1fps stream using MediaFoundation?

Of course, I am open to discussing compensation that reflects the effort and expertise required for this assistance.

Thank you!
Eduardo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant