The Sample Grabber filter is a directshow filter, which provides a way to retrieve samples as they pass through the filter graph. It is a transform filter with one input pin and one output pin. It passes all samples downstream unchanged, so you can insert it into a filter graph without altering the data stream. Your application can then retrieve individual samples from the filter by calling methods on the ISampleGrabber interface.
Questions tagged [samplegrabber]
35 questions
1
vote
2 answers
Samplegrabber works fine on AVI/MPEG files but choppy with WMV
I have been using the latest version of the WPFMediaKit. What I am trying to do is write a sample application that will use the Samplegrabber to capture the video frames of video files so I can have them as individual Bitmaps.
So far, I have had…

Jon Comtois
- 1,824
- 1
- 22
- 29
1
vote
0 answers
DirectShow: SampleGrabber and Null Render
I want to create a Filter Graph that allows me to take image samples from a (webcam) video stream that should not be rendered.
I have already created a Filter Graph that allows me to preview my webcam video stream and take image samples from it.
So…

peugas
- 181
- 15
1
vote
2 answers
How to implement you own custom DirectShow renderer?
How to implement you own custom DirectShow renderer that could work a-la or instead of SampleGrabber?

Rella
- 65,003
- 109
- 363
- 636
1
vote
2 answers
How to get the realtime resolution in directshow?
How to get the current resolution of SamleGrabber in DirectShow?
I tried the below code, it doesn't work.
The value you get is always 1920x1080, while the source resolution changed from 1920x1080 to 1680x1050.
void…

senggen
- 41
- 3
1
vote
1 answer
iSampleGrabber, callback method. Code works, but might need some love?
Okay. So I've got my isamplegrabber callback method to work, and I am able to get the data into opencv. But due to the fact that this is totally new to me, I just want to get some feedback if the code is "correct", cause it doesn't seem to be a good…

Easyrider
- 3,199
- 5
- 22
- 32
1
vote
0 answers
Memory leak at Microsoft DTV-DVD Video decoder?
During rendering h.264 at AVI container video file memory consumption of my application rising with big speed, aroud 150 Mb/min.
This is the link for image of my graph: http://picturepush.com/public/8926555
If using LAV video decoder insted - no…

Survarium
- 190
- 2
- 6
0
votes
1 answer
Using Php how to get Javascript Object Value
its javascript code from another website
var images = {
article_id : '1111',
channel : '$11111',
image_license : 'https://website.com/test',
name : 'numbers"
}
Using Php
how to get the value of the image _license ( https://website.com/test )
the…

shehabmustafaaa
- 13
- 3
0
votes
0 answers
Can't Get DirectShow MPEG-2 Decoder to Output YV12/NV12 Progressive
I am attempting to get the MPEG-2 Decoder (aka DTV-DVD Video Decoder) to give me progressive YV12 or NV12 frames that can be uploaded to OpenGL for rendering. But what I'm seeing rendered looks like some form of uncompressed adaptive motion…

Mark Coniglio
- 351
- 1
- 10
0
votes
1 answer
Seeking key frames using IMediaSample DirectShow.Net
As far as I know, inorder to check if a frame is a key frame or not, I have to check the IMediaSample::IsSyncPoint() method, which returns 0 (S_OK) if the frame is a key frame, or false in the other case.
But the IsSyncPoint() method is simply…

bhootjb
- 1,501
- 1
- 21
- 33
0
votes
1 answer
IMediaSample returned by Sample Grabber has unexpected buffer size
I was working on a audio/video capture library for Windows using Media Foundation. However, I faced the issue described in this post for some webcams on Windows 8.1. I have thus decided to have another implementation using Directshow to support in…

skuallpa
- 1,147
- 3
- 13
- 28
0
votes
1 answer
ISampleGrabber::GetCurrentBuffer() returns E_OUTOFMEMORY
I am new to directshow and using DirectShow Sample "FrameGrabberDemo" and facing issue in getting the image. I tried with .avi and .mpg, both are giving same issue.
First issue might be the S_FALSE return value from IMediaControl::Run(). However, it…

Jawad Akhtar
- 172
- 9
0
votes
1 answer
Audio/Video synchronization issues using samplegrabber filter
I am using DirectShow for a movie playback. I modify video/audio data and render everything myself in my app. Therefore, I am using SampleGrabber filters and NULL renderers.
The problem arises when I rewind the movie (using IMediaSeeking interface)…

Dalamber
- 1,009
- 1
- 12
- 32
0
votes
0 answers
DirectShow ISampleGrabberCB stops after Ctrl+Alt+Del
I have created and rendered a directshow graph. The graph itself is being rendered into a ISampleGrabberCB and all is well.
However, if I press Ctrl+Alt+Del, the BufferCB on the ISampleGrabberCB stops getting called. I have checked the graph and it…

Paul Knopf
- 9,568
- 23
- 77
- 142
0
votes
0 answers
I need to make a Windows CE 7 frame grabber using DirectShow
I need to make a Windows CE 7 frame grabber using DirectShow.
All examples on the internet are pointing to the custom implementation of ISampleGrabber that is deprecated but still available. I need any solution that works.
I tried the solution from…

Patrik
- 1,286
- 1
- 31
- 64
0
votes
1 answer
can ISampleGrabber convert the video frames to a specific mediaType?
I found this nice example on the internet explaining how directshow works.
http://alax.info/trac/public/browser/trunk/Utilities/SetLifeCamStudioResolutionSample/SetLifeCamStudioResolutionSample.cpp
In that example there is two samplegrabbers. One…

Easyrider
- 3,199
- 5
- 22
- 32