Encoding wmv files using WM ASF Writer filter in DirectShow...
- From: Mark Stevens <MarkStevens@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Aug 2005 09:05:02 -0700
I apologize in advance for the length of this question.
We have an application that captures content from a live cable(Analog) feed,
and encodes to wmv using the WM ASF Writer filter through DirectShow.
I've read through most of the documentation provided with the Windows Media
Format 9 SDK pertaining to the above mentioned scenario. I attempted to use
the WME Profile Editor to create a profile that was acceptable to our user.
This worked fine. I then attempted to load the profile from file into a
string. Still fine, string looked good in memory during debug. I then
created a profile object using IWMProfileManager::LoadProfileByData with no
error. When I passed the profile object to the filter using
IConfigAsfWriter::ConfigureFilterUsingProfile it returned E_POINTER.
Disappointed, I then attempted something that was deemed a bad practice by
the documentation. I analyzed the WMSysPrf9.prx file, and added my profile's
contents to the file.
The profile was not included in the available profiles under WMT_VER_8_0. I
noticed that the profile version attribute of my profile was unique, 589824.
I changed my version attribute to match a profile that was made available in
SetSystemProfileVersion(WMT_VER_8_0). I set my profile version to 524288.
This made my profile available and works fine.
The problem is that when I encode at multiple bit rates such as:
Video Stream 1 - 720x486 - 5mb
Video Stream 2 - 320x240 - 384k
The encode process seems to drop frames when encoded with our application or
using graphedit. I immediately thought the problem may be due to a hardware
limitation. However, when I encode using the same profile in WME it doesn't
seem to have any encoding problems.
This is what led to this post. What could possibly be going on in WME to
overcome the dropped frames that I'm seeing using the same profiles on the
same box.
Any suggestions or thoughts would be greatly appreciated.
On a side note, some of the files that I have encoded using the
preconfigured system profiles show up as Windows Media Video 8 Codec. Is
this possible? I have the Version 9 runtime on my box. The documentation
states that the runtime dictates the codec, not the profile.
Thanks,
Mark Stevens
.
- Prev by Date: Re: UI Background Plugin and timer
- Next by Date: Re: New to Windows Media
- Previous by thread: How can I make wmppsReady state??
- Next by thread: How to control DVD Menus
- Index(es):
Relevant Pages
|