Advertisement

06.29.2007 at 07:57AM PDT, ID: 22666868 | Points: 500
[x]
Attachment Details

ISampleGrabber in any video based filtergraph

Tags: isamplegrabber
Hi there,

I am trying to use a SampleGrabber within an automatically rendered filter graph.

When I create the filter graph I add the SampleGrabber with the following media type,

mt.majortype = MEDIATYPE_Video;
mt.subtype = GUID_NULL;
mt.formattype = FORMAT_VideoInfo;

Unfortunately I have to set the subtype to GUID_NULL as it will not connect into every graph automatically othewise.  I am registering the filter graph with graphedit so that I can view it to make sure that it has all connected correctly.

Unfortunately when connected like this it does not appear in the correct place, instead it ends up coming before the decoder so I end up with gibberish being put through the sample grabber.

Basically what I am trying to achieve is the *simplest* way to connect a Sample Grabber to *any* filter graph.

One method I thought of was to render the graph then add the sample grabber after by placing it before the video renderer.  Which to me; makes perfect sense.  Unfortunately, firstly I could not disconnect the the pin between the last 2 filters even though I was informed that the disconnection was a success.  And secondly I would then need some way of converting any input YUV, YUV2 etc to RGB24 (my desired bitmap format).

If anyone has some advice on this It would be greatly appreciated!
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: tcarmich
Question Asked On: 06.29.2007
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
06.30.2007 at 07:35PM PDT, ID: 19397631

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.04.2007 at 08:50AM PDT, ID: 19419163

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.04.2007 at 08:52AM PDT, ID: 19419182

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.22.2008 at 01:37AM PDT, ID: 21185319

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
06.30.2007 at 07:35PM PDT, ID: 19397631

Rank: Wizard

you might bet better reponses from the code writing topics here at EE.
can this assist you,
from the code gurus and i always thank them
Real-time video image processing / frame grabber using a minimalistic approach
http://www.codeproject.com/useritems/VideoImageGrabber.asp
Using the Sample Grabber  
http://msdn2.microsoft.com/en-us/library/ms787867.aspx

start again from scratch
How To Get Data from a Microsoft DirectShow Filter Graph
This document contains the following topics:
The DirectShow Basics You Need to Know
Provides a quick summary of the DirectShow filter graph architecture.
Writing a Sample Grabber Filter
Describes how to write a custom sample grabber filter.
Sample Application Code
Presents example code that uses the filter in an application.
Speeding Up the Connection Time
Explains how to optimize the pin connection process.
Forcing the Filter To Deliver to Your Buffer
Describes how to write a custom allocator object for a sample grabber filter.
Handling Format Changes
Describes how to respond to dynamic format changes.
Limitations of the DirectShow Sample Grabber
Explains some of the limitations of the default sample grabber filter provided in DirectShow.
http://msdn2.microsoft.com/en-us/library/ms867162.aspx
google it
cheers M
 
07.04.2007 at 08:50AM PDT, ID: 19419163
This was posted into code writing topics, it was posted into several topics.
 
07.04.2007 at 08:52AM PDT, ID: 19419182
and sorry "google it",  do you not think that I may have done that already?  You might as well have told me to go and suck an egg.  I'm going to close thiis now as unanswered as I have a different solution, and no, none of your "googled" links were of any help, I am quite capable of doing that myself.
 
03.22.2008 at 01:37AM PDT, ID: 21185319

Rank: Wizard

Do you still require assistance,
Your question is still open?
Is your account still active
You can now close your own question> use the delete link
 
 
20080236-EE-VQP-29