Windows Media foundation: IMFSinkWriter WriteSample API returning error...
I have a requirement of receiving RTP stream(H264) and exporting them to a MP4 file. We are using media foundation to export frames received in RTP stream to mp4 file. So we extract H264 frames(from...
View ArticleIs UWP suitable for windows media applications?
Hi all,Is UWP something I can use for playing video/audio files in an application? or should I stick with windows media foundation? the app will mostly deal with media files.Thanks
View ArticleConverting audio using MFT was successful on windows 7 but failed on windows 10
When we implement the conversion of video with Audio sample rate from 16Khz to 44.1 Khz, there was a problem as follows: - On windows 7, the program worked successful. - On Windows 10, the program...
View ArticleUsing and implementing IMFSeekInfo::GetNearestKeyFrames
I'm looking for guidance both on how IMFSeekInfo should be used and how it should be implemented by third parties. In particular, I'm interested in what should be returned in the last output parameter...
View ArticlePoor performance of H264 decoding
I'm decoding a H264 video stream using Media Foundation. It works, but performance is really poor on both Windows (desktop) and HoloLens 2 (UWP). Decoding a single 1920x1080 frame takes 30 ms on a...
View ArticleTopoedit can not resolve topology for playing .wtv file?
Hi all,I'm learning about MF and I was using the topoedit tool (windows 10) to render different files (like mp3, avi, wtv, etc). I see that it worked on all except wtv files. It looks like the decoder...
View ArticleMedia foundation: Writing G711 PCMU to mp4
We have a requirement (Windows UWP app) to store audio and video data received from cameras(RTP packets) in mp4.Video format is h264 and audio is g711 pcmu We are using media foundation(c# using MF...
View ArticleMFCreateSinkWriterFromURL creates mp4 file with wrong duration
Hello, I'm using MFCreateSinkWriterFromURL to create an mp4 file from an existing audio/video stream. By existing, I mean the capture is started before the sink writer and the stream is already sent to...
View ArticleDXVA 2.0 Video Decoding as D3D Texture
Hi guys,I'm starting out with Windows Media Foundation video decoding using the DXVA 2.0 API. Basically I would like to decode avideo frame and then read that frame from the corresponding D3D surface...
View ArticleWMP Mute when UiMode is None
I have a problem when trying to mute sound from my Playlist when in UiMode "none".The codeCWMPPlaylistCollection playlistCollection = m_player.GetPlaylistCollection(); CWMPPlaylist playList =...
View ArticleHandling different keyboard layouts with WM_CHAR message?
We have an app that is using WM_CHAR messages for keyboard input.I have the "Lithuanian Standard" keyboard layout loaded onto my Windows 10. If I have that activated and type a w on my regular English...
View ArticleSubtitles? How to add text to mp4
Hello, Is it possible to add subtitles to a video, using media foundation? I know it is possible to include subtitles into a mp4 file, but I can't find anything about it regarding media foundation.The...
View ArticleCan I call C++/WinRT inside Device MFT?
I'm writing Device MFT and using Windows Vision Skill to process image. I had the problem when integrating Windows Vision Skill into Device MFT. Since Windows Vision Skill is C++/WinRT, so I think the...
View ArticleDoes mediafoundation or dshow support avchd?
Does mediafoundation or dshow support avchd?
View ArticleIMFSequencerSource:AppendTopology returns 0xC00D36D5 (MF_E_NOT_FOUND) for...
Hi,I am using the source sequencer to play out a playlist of video content, and am getting the above error when calling AppendTopolgy. I am manually creating the Microsoft H264 decoder transform node...
View ArticleMediaPlayerElement does not work with DRM in XAML islands
Hi,I faced with an issue that it is not possible to play DRM content using MediaPlayerElement in WPF Core 3.1 (XAML Islands).I tried sample app Adaptive streaming and on UWP it work, but on WPF it...
View ArticleDshowbridge enable between Media foundation and Directshow
If I enable Dshowbridge in camera device or system, what portion in MF & Directshow is enable?could you share the more detail for Dshowbridge?
View ArticleH264 decoder problem : artifacts on decoded image
Hello,I usually succeed at decoding an AVI/H264 with Microsoft Media Foundation, but I have a problem with a movie, that exhibits artificats when decoded by me. VLC or Windows Media player do not have...
View ArticleRandom failures trying to decode .HEIC images.
Hello, we are adding the support of .HEIC images to our software. But we’ve faced strange random failures: sometimes CopyPixels returns HRESULT 0xc00d36bb (“An unexpected error has occurred in the...
View ArticleUndocumented(?) limitation constraints for H264 encoding
Hello,I am trying to understand why an MSMF H264 encoding session is refused for some not-so large image sizes.For instance, 1280x1024 is accepted, but not 1024x1280. So my assumption that the bitrate...
View Article