I am trying to broadcast some videofiles using windows streaming
server with windows media encoder.
I need to compress the files with a third party codec and broadcast
it. So, can any please tell me how to do this in windows media
encoder?
I saw some stuff saying I need to write my own encoding application.
Could anyone please
help me where can I get the help to develop the application.
And I found someone saying that we need to develop a directshow filter
or direct media object.
Could anyone please help me where can I get the information regarding
this.
regards.
FWIW you will probably have to write a DMO. You must also consider the
downstream (playback) experience. How are you going to get teh decoder onto
the client PC.
Iain
thank u for u r reply. I am just a beginner in doing this. So, now I
am in search of this functionalities only. For that reason only i have
posted so that i can find any help.
anywhere thank u, i will try to find it in that group.
regards,
sirisha
>> I need to compress the files with a third party codec and broadcast
>> it. So, can any please tell me how to do this in windows media
>> encoder?
> YOu want to be asking this in the windowsmedia\sdk group as it is not a
> DirectShow question.
>
> FWIW you will probably have to write a DMO. You must also consider the
> downstream (playback) experience. How are you going to get teh decoder onto
> the client PC.
The OP has already been told (last week) in the encoder group that the WM
Encoder does not support output of anything other than ASF formats.
AFAIK, you can't do this with the WM Format SDK either.
--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
> The OP has already been told (last week) in the encoder group that the WM
> Encoder does not support output of anything other than ASF formats.
Correct.
> AFAIK, you can't do this with the WM Format SDK either.
You can use it to pack already compressed data into an ASF stream by using
the IWMWriterAdvanced2 interface. You can get that same interface from the
DirectShow ASF Writer but you can't use it in a DirectShow way. I.e. the
writer expects you to deliver samples via the connected pin but instead you
have to call IWMWriterAdvanced2::WriterStreamSample().
--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
> You can use it to pack already compressed data into an
> ASF stream by using the IWMWriterAdvanced2 interface.
> You can get that same interface from the DirectShow ASF
> Writer but you can't use it in a DirectShow way. I.e.
> the writer expects you to deliver samples via the
> connected pin but instead you have to call
> IWMWriterAdvanced2::WriterStreamSample().
If you call
IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
the WMASFWriter will use
IWMWriterAdvanced::WriteStreamSample() instead of
IWMWriter::WriteSample().
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
> If you call
> IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
> the WMASFWriter will use
> IWMWriterAdvanced::WriteStreamSample() instead of
> IWMWriter::WriteSample().
Well that makes it a lot easier!
>> If you call
>> IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
>> the WMASFWriter will use
>> IWMWriterAdvanced::WriteStreamSample() instead of
>> IWMWriter::WriteSample().
>
> Well that makes it a lot easier!
Except that to find that out you have to read the QASF
reference hidden among the tutorials in the WMF SDK docs
because the reference and tutorials in the DS docs are
incomplete. I wish they would merge those 2 references.
"Alessandro Angeli" wrote:
>
> If you call
> IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
> the WMASFWriter will use
> IWMWriterAdvanced::WriteStreamSample() instead of
> IWMWriter::WriteSample().
>
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> // http://www.riseoftheants.com/mmx/faq.htm
>
>
>
Anyone know if this will work when you only want to use a 3rd party codec
for the Audio stream? I still want to use WMV9 for the video stream...
> Anyone know if this will work when you only want to use a
> 3rd party codec for the Audio stream? I still want to
> use WMV9 for the video stream...
Why shouldn't it work with audio? The technique never
depends on the media type. There is only a limitation: the
audio media type must match
MEDIATYPE_Audio/FOURCCMap(wFormatTag)/FORMAT_WaveFormatEx.
"Alessandro Angeli" wrote:
> From: "billbrasky"
>
> > Anyone know if this will work when you only want to use a
> > 3rd party codec for the Audio stream? I still want to
> > use WMV9 for the video stream...
>
> Why shouldn't it work with audio? The technique never
> depends on the media type. There is only a limitation: the
> audio media type must match
> MEDIATYPE_Audio/FOURCCMap(wFormatTag)/FORMAT_WaveFormatEx.
>
>
> --
Right, but
IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
Is on the writer itself, not the stream. I still want it to compress the
video with WMV9, but use a custom audio codec. Is it smart enough to see
that there's uncompressed RGB on the video pin and compress it?
> IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS),
> Is on the writer itself, not the stream. I still want it
> to compress the video with WMV9, but use a custom audio
> codec. Is it smart enough to see that there's
> uncompressed RGB on the video pin and compress it?
I see what you mean. You can not use the ASFWMWriter filter
in a mixed mode. You can either configure it to mux
compressed samples and compress the video yourself using the
encoder DMO or use the WMWriter object directly outside of a
DirectShow graph (that, where you have the ASFWMWriter,
insert a SampleGrabber per stream and use the samples you
get to write the data to the WMWriter).