Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Browsing all 1079 articles
Browse latest View live

IMFMediaEngineClassFactoryEx::CreateMediaSourceExtension flags and attributes

What are the valid flags for IMFMediaEngineClassFactoryEx::CreateMediaSourceExtension?  Also, are there any usable attributes?

View Article


IMFMediaEngineEx::GetResourceCharacteristics flags

The docs for IMFMediaEngineEx::GetResourceCharacteristics are confusing.  Does it return a "bitwise OR of zero or more flags"?  Or discrete values?  For example, does 3 mean "live" + "seekable"?  Or...

View Article


How to distinguish between multiple joysticks?

Hi,How to distinguish between multiple joysticks?I'm using 2 (the same) joysticks in my software, but sometimes (after a computer restart) joystick API report the same joystick (on the same USB port)...

View Article

IMFTransform::GetInputStreamInfo & MFT_INPUT_STREAM_PROCESSES_IN_PLACE

In an effort to understand MFTs better, I decided to try changing the mft_grayscale sample to support MFT_INPUT_STREAM_PROCESSES_IN_PLACE (as described here).  While Grayscale doesn't require a great...

View Article

Writing MFTs for MediaFoundation

I recently discovered that there are (at least) two different sets of code inside MF used to drive MFTs.  People creating general-purpose MFTs should be aware of this fact so that their MFTs can be...

View Article


How to capture raw format image using media foundation?

Hello, I am new to MediaFoundation's video capture API. But I have an app that performs a video capture preview of a webcam. I picked up most of the ideas from this sample code CaptureEngine video...

View Article

MF doesn't play h264 video from my source

I’m developing a media foundation-based h264 player.I open my URL.The framework creates and initializes my media source, which in turn creates and initializes my 2 streams, audio and video.Then it asks...

View Article

How to find the performance bottleneck when playing a 4K video?

I am running into frames being dropped from time to time when playing a 4K video with Media Foundation. The test movie I am using has an average bitrate of 20 mbps and a peak of 37 mbps and is h264...

View Article


Problem with seek operation in MF Media Source

I am using TopoEdit for playing audio stream of local file. I have specified "(MFMEDIASOURCE_CAN_PAUSE | MFMEDIASOURCE_CAN_SEEK)" in IMFMediaSource::GetCharacteristics and MFBYTESTREAM_IS_SEEKABLE of...

View Article


serious bug in IDXGISwapChain1::Present1()

Depending on the situation, the "SyncInterval" parameter in the Present1() call has a different meaning:...

View Article

MFTs & MFT_MESSAGE_COMMAND_TICK and MFT_MESSAGE_DROP_SAMPLES

While the docs do a very good job of describing how & when most messages are sent and how MFTs are expected to respond, the docs for MFT_MESSAGE_COMMAND_TICK and MFT_MESSAGE_DROP_SAMPLES are...

View Article

Problems with IMFSampleGrabberSinkCallback and MP4 files

I am implementing a IMFSampleGrabberSinkCallback based class to capture and preview video frames from video files.The IMFMediaType passed in to MFCreateSampleGrabberSinkActivate() specifies...

View Article

how to configure encoder settings in SinkWriter

Hi,I'm new to Media Foundation development and I have some questions in using SinkWriter.I already know that I can use SinkWriter to write in to a file on disk like described here...

View Article


Access a hidden file programatically in Windows RT?

Is there any way to access hidden files programatically in Windows RT? Whenever I try to do GetFileAsync for a hidden file, I get UnauthorizedAccessException.

View Article

Storing variables when windows app is closed and accessing them later

Is there any way by which I can store some values in any variables and access them when windows app is started next time. I tried storing values in text file and later accessing them but due to some...

View Article


Capture image from still pin using media session technique in media foundation

Hi, I am beginner for media foundation.I'm using media session topology technique to show preview from USB Camera device.I built the topology to show preview and capture video,both are working...

View Article

Rotation and Distortion issue when I rotate device from landscape mode to...

I have camera application with container size 640x480, when I keep Device in Landscape mode, I have perfect Image (live preview), when I rotate device 90 / 270 Degrees into Portrait mode with live...

View Article


Surface Pro 3, Front and rear cameras: MFCaptureToFile does not work

I tested MFCaptureToFile on Surface Pro 3 with front and rear cameras. They don't work. https://msdn.microsoft.com/en-us/library/windows/desktop/ee663604%28v=vs.85%29.aspxExternal cameras, as expected...

View Article

Image may be NSFW.
Clik here to view.

Virtual Cable and output

Hello All,We need Virtual Cable for the following requirement :Here is the complete explanation with drawing :We need to dynamically switch from case 1 to case 2 programmatically, please help in...

View Article

Source Resolver CreateObjectFromUrl hangs when called from ByteStreamHandler

HiI have a  MediaFoundation Bytestreamhandler for a specific extension and for a specific case  I have to create a mediasource from a modified URL within the Bytestreamhandler.  I am trying to do this...

View Article
Browsing all 1079 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>