Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with BeginWriting API when using MFVideoFormat_H264 & MFMediaType_Video
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ramkumar  
View profile  
 More options Aug 23 2011, 10:55 am
Newsgroups: microsoft.public.windowsmedia.sdk
From: Ramkumar <rk.ps...@gmail.com>
Date: Tue, 23 Aug 2011 07:55:55 -0700 (PDT)
Local: Tues, Aug 23 2011 10:55 am
Subject: Problem with BeginWriting API when using MFVideoFormat_H264 & MFMediaType_Video
Hi,

I have been trying to write an ASF file using encoded H264 video data
using Microsoft Windows Media Format SDK. I am asking this question in
Media Foundation because I could not see a forum which displays as the
one for Media Format SDK. Apart from that, I am using bits and pieces
of MediaFoundation Framework as well. Here is my problem:

When trying to complete all the steps mentioned in this link :
http://msdn.microsoft.com/en-us/library/dd743762(v=vs.85).aspx , I am
using MFVideoFormat_H264 as the subtype and MFMediaType_Video for
setting in the Type information as mentioned in Step 3.1 in the above
link. I am using them because I could not find any format for H264 in
Windows Media Format SDK. However, I have installed Windows SDK and
Visual Studio 2010 in my system. I have ensured that the required
video encoder for MFVideoFormat_H264(mfh264enc.dll) is installed in
the system using regedit and also I have ensured that the appropriate
library (mfuuid.lib) is included in my project. But , after having
done all this, when I try to run the code to write the frames into the
file, the BeginWriting function call fails and gives the error
0xC00D0BC4 NS_E_VIDEO_CODEC_NOT_INSTALLED error.

But when I create some custom random subtype using GUIDGenerator and
used that in my subtype information and type as WMMediaType_Video, the
call succeeds but ultimately, the codec subtype which I have specified
is invalid and hence the file is not playable at all. Now, what do I
need to do in order to make the BeginWriting succeed with the correct
codec type. One more thing to note is that all my frames are
supposedly getting written properly into the file if I use the custom
subtype.

Please let me know if you have any questions. I look forward getting
an answer and thanks a lot for the help!

Ramkumar PS


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »