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