Custom Audio Decoder DMO problem

Windows Media

    Next

  • 1. Streaming over UDP/IP
    Hello, I'm new to the video streaming subject so this is a newbie question. Please help me if you can. I have an Ethernet Camera JVC C30U that can connect to the directly to the Internet using Fast Ethernet 10/100 mbps cable and able to stream MPEG1 or JPEG data over UDP/IP. UDP is needed in order to support unreliable connectionless mode. However, On the receiving side, i need an application/encoder (Like WIndows Media Player) that receives this UDP MPEG1 or JPEG data and display it. The question is does Windows Media Player support UDP and MPEG1/JPEG? If not is there any encoder that will support this requirements? Any ideas or suggestions are welcomed? Thanks in advance! Sam
  • 2. Saving compressed samples and uncompressed samples to a file, failed...
    When output a wmv file, after writing some uncompressed video samples using IWMWriter::WriteSample(), I tried to write compressed video samples from a file to the same file using IWMWriterAdvanced::WriteStreamSamples(). The writing process returns no error. However, the output file has some problem when playing it. When playing to the time of the beginning of compressed samples are written, the video image is broken. This broken status continues for a while. After a while, the video image is okay. What causes the broken image?? How to fix it?? Please help....
  • 3. Inserting Filters into WMP?
    I am writing a C++ application that uses windows media player as a backend for playing music. I have written my own "scope" filter that lets me visualize audio data. I would like to use this filter to visualize the data output by windows media player. Is there anyway that I can insert my own custom rendering filter into the graph programmatically? I can't write a visualization plugin since my app is a directx based one and I can't show any of the regular UI windows for WMP including the visualization. I know I could write a DSP plugin that the data will get passed through, however, I believe this would require the user to manually select it for it to get used? Is there a way to manually insert a DSP filter programmatically so I could accomplish the same thing and not have to worry about whether the user enabled it or not and have it only be used when my app is running?
  • 4. SDK 9.5 documentaiton in MSDN Library
    Its still there but what happen to the menu on the left? There is no longer a Graphics and Mutimedia category.
  • 5. Problem installing WMP9 Rights Manager...
    Hi, We're trying to install the WMP toolchain to encrypt content and use it on a website with a try-before-you-buy (play) button. Based on what we've read, we are trying to install the following components in the order listed below: 1. WMP9 Encoder SDK 2. WMP9 SDK 3. WMP9 Service 4.1 SDK 4. WMP9 Rights Manager The SDK's install without any problems but when we get to the Rights Manager (#4), we get the following error message. --- error message --- Cannot install Microsoft Windows Media Rights Manager This Setup Program cannot install Microsoft Windows Media Rights Manager on your computer, because the following requirements are not met by your computer: - Microsoft Windows Media tools - Internet Information Server (IIS) version 4.0 is not installed. For links to the required components, press the "Support..." button. --- error message --- What's "Microsoft Windows Media tools" we've not been able to find any references to it. The dialogue has "Support" and "Continue" buttons. The Support button takes you to a generic support page... We've tried the installation under Win2K, XP Pro, and Windows 2003 Advanced Server with the same error. Thanks, Roupen N. ---

Custom Audio Decoder DMO problem

Postby snicka » Thu, 20 May 2004 07:41:48 GMT

I am working on some test code to learn a bit more about dshow and
windows media player. I have written an application that saves a
compressed audio and video stream to an asf file and a set of DMOs to
decode those streams.
 Both DMO's are nearly identical except for the types of input and
output (i haven't gotten to the decoding part yet). Both the DMOs work
perfectly in graphedit, they are automatically added to the graph when
rending the pins on the ASF Reader. Windows Media Player is another
matter however. The video decoder works like a charm, processing
input, etc. But the Audio decoder is never even instantiated.
 I have registered the DMO in the exact same way as the video DMO and
I know the subtypes are correct (works in graphedit automatically). So
my question is this; is there anything else I am supposed to do to
register an audio decoder DMO with Windows Media Player? I am using
WMP9 and DX9. Thanks in advance for any help you can give.

Mike Bagdanoff

Re: Custom Audio Decoder DMO problem

Postby snicka » Fri, 21 May 2004 01:40:07 GMT

Ahhhhh.. nm I figured it out finally, I was calling DMORegister with 0
output types (as I do with the video decoder) but when I registered it
to support output to PCM it started working.




Similar Threads:

1.A problem in DMO Audio Decoder(single sample per buffer)

I've finished a asf muxer using third-party codec, and then started to write 
Video/Audio DMO decoder for these ASF files. I succeeded in Video decoder, 
but met some problems in writing audio decoder.

The internalProcessInput method provides input buffer containing valid data, 
and in internalGetInputStreamInfo function, I set *pFlag = 
DMO_INPUT_STREAMF_WHOLE_SAMPLES  |DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER 
|DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE. 
As the result, the buffer provided by  internalProcessInput method should 
only contain a single whole sample. However, I got a buffer contains several 
sample (For example, the sample size in my asf file is 96 Bytes, but the 
internalProcessInput method provides me 1408 Bytes valid data).
If anybody knows why it happens, please reply! 
Best regards!



2.Plugin to win media player (custom mp3 decoder as DMO)

hi everybody,

I have written a DMO (wrapper ) above my custom MP3 decoder ,and
successfully able to register it and get it working (decodes) using my
own app.
Now what i wanted to do isi want make this as a plugin to win media
player 10.
i am still learning  win media player SDK.I created a DSP plugin(using
SDK wizard) and merged my DMO code with that.
In my DoProcessOutput call i am just dng a copy of input to output.
But the PROBLEM is when data reaches this point it is already decoded.I
want to get the raw data at this point so that i can call my own mp3
decode.
What could be the problem?
Am i following the correct procedure here?
Do i need to put it into another plugin (rendering..) to decode using
my own decoder DMO?

any kind of help would be appreciated.

TIA
anand

3.WMV Decoder DMO Problem

I am developing an ActiveX control for use in a Video Conferencing
project. This control basically acts as a DSP, capturing video using
DirectShow and a SampleGrabber, then giving functions that will encode
and/or decode each frame using Windows Media Video 9 or greater. I have

been able to initialize the WM Encoder 9 DMO by enumerating and finding

it based on my input and output media types. The problem is, when I go
to initialize the Decoder DMO on the other side, I fail to initialize
the decoder, even though I am simply swapping my Media Types and
handing them to the Decoder DMO.

Enabling my encoder looks something like this


OpenVideoEncoder
Original SubType is RGB24
Source Width: 320
Source Height: 240
Source FPS: 30
Enc Width: 320
Enc Height: 240
Enc FPS: 30
Created DMO with code 0x0
Get Interface for DMO with code 0x0
Got stream count for DMO with code 0x0
Number of Input Streams: 1
Number of Output Streams: 2
Created property bag with return code with code 0x0
Wrote VBR Enable property with code 0x0
Wrote VBR Quality property with code 0x0
Wrote Buffer Window property with return code with code 0x0
Key Frame property with return code with code 0x0
Wrote Crispness property with return code with code 0x0
Tested input type with code 0x0
Set input type for DMO with return code with code 0x0
Got CodecPrivateData with code 0x0
Set Private Data Partial output with code 0x0
Got private data size with code 0x0
Size of Private data is 1024
Got private data with code 0x0
Tested output type with code 0x0
Set output type for DMO with return code with code 0x0


But, when I enable my decoder, it looks something like this:


OpenVideoDecoder
Original SubType is RGB24
Source Width: 320
Source Height: 240
Source FPS: 30
Enc Width: 320
Enc Height: 240
Enc FPS: 30
Created DMO with code 0x0
Get Interface for DMO with code 0x0
Got stream count for DMO with code 0x0
Number of Input Streams: 1
Number of Output Streams: 1
Tested input type with code 0x80040205
Set input type for DMO with return code with code 0x80040205
Tested output type with code 0x80040203
Set output type for DMO with return code with code 0x80040203


I have noticed that my computer has a WMVideo9 Encoder, but there is
only a WMVideo8 and WMVideo Decoder DMO, and when my enumeration method

finishes, it picks the WMV9 Encoder and the WMV Decoder.


Does anyone know why I might be getting this behavior and how I might
make this work? Thanks 


Nathan

4.Windows Media Video Decoder DMO problems

I am developing an ActiveX control for use in a Video Conferencing
project. This control basically acts as a DSP, capturing video using
DirectShow and a SampleGrabber, then giving functions that will encode
and/or decode each frame using Windows Media Video 9 or greater. I have
been able to initialize the WM Encoder 9 DMO by enumerating and finding
it based on my input and output media types. The problem is, when I go
to initialize the Decoder DMO on the other side, I fail to initialize
the decoder, even though I am simply swapping my Media Types and
handing them to the Decoder DMO.

Enabling my encoder looks something like this

OpenVideoEncoder
Original SubType is RGB24
Source Width: 320
Source Height: 240
Source FPS: 30
Enc Width: 320
Enc Height: 240
Enc FPS: 30
Created DMO with code 0x0
Get Interface for DMO with code 0x0
Got stream count for DMO with code 0x0
Number of Input Streams: 1
Number of Output Streams: 2
Created property bag with return code with code 0x0
Wrote VBR Enable property with code 0x0
Wrote VBR Quality property with code 0x0
Wrote Buffer Window property with return code with code 0x0
Key Frame property with return code with code 0x0
Wrote Crispness property with return code with code 0x0
Tested input type with code 0x0
Set input type for DMO with return code with code 0x0
Got CodecPrivateData with code 0x0
Set Private Data Partial output with code 0x0
Got private data size with code 0x0
Size of Private data is 1024
Got private data with code 0x0
Tested output type with code 0x0
Set output type for DMO with return code with code 0x0

But, when I enable my decoder, it looks something like this:

OpenVideoDecoder
Original SubType is RGB24
Source Width: 320
Source Height: 240
Source FPS: 30
Enc Width: 320
Enc Height: 240
Enc FPS: 30
Created DMO with code 0x0
Get Interface for DMO with code 0x0
Got stream count for DMO with code 0x0
Number of Input Streams: 1
Number of Output Streams: 1
Tested input type with code 0x80040205
Set input type for DMO with return code with code 0x80040205
Tested output type with code 0x80040203
Set output type for DMO with return code with code 0x80040203

I have noticed that my computer has a WMVideo9 Encoder, but there is
only a WMVideo8 and WMVideo Decoder DMO, and when my enumeration method
finishes, it picks the WMV9 Encoder and the WMV Decoder.

Does anyone know why I might be getting this behavior and how I might
make this work? Thanks

Nathan

5.Imaging framework , and PIMG (passing YUV through custom decoder and custom encoder)

Hi All,

Does anyone knows how to pass a "Undefined Image pixel format (YUV422
for example )" between a custom decoder and a custom encoder on
Imaging framework?

I'm trying to manipulate YUV422 buffer between a custom decoder and a
custom sink encoder, and the PIMG app always wants RGB24 in order to
manipulate it , but im sending YUV422 buffer and YUV422 buffer size,
and due to that I can't pass this buffer from decoder to sink
encoder.  I have the decoder and  encoder configured to accept
"Undefined Image pixel formal", but PIMG rejects that "connection" .

Is there something that I could do for my problem?
does anyone knows how the PIMG works internally?



6. DMO_MEDIA_TYPE, DMO, Codec, Encoder and Decoder

7. Using DMO to Access Windows Media Decoder

8. Interlacing and decoder DMO



Return to Windows Media

 

Who is online

Users browsing this forum: No registered users and 55 guest