Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Sun, 27 Jul 2008 01:20:58 -0700 (PDT),    group: microsoft.public.win32.programmer.directx.video        back       


Custom Asf Writer filter : NS_E_INVALID_DATA   
Hi,

I am writing a custom ASF Writer renderer filter. My renderer filter
is essentially a wrapper over the IWMWriter interface used to write
ASF files.

The reason for writing the filter and not using the WM ASF Writer
filter is because i need more control of how my filter works.

The profile is read from a .prx file and then loaded when setting up
the IWMWriter ie I call SetProfile on the IWMWriter.

I have implemented the IFIleSinkFilter and i have my transcoding graph
working for audio files.ie i can generate .wma files.

However, for video this does not seem to work. WriteSample returns
NS_E_INVALID_DATA when writing the second video sample. The docs
provide the following as an explanation for this return code:
"The sample is not valid. This can occur when an input script stream
contains a script sample that is not valid."

Could any of the directshow gurus be kind enough to advise on where i
could be going wrong?

I already ensure that the appropriate streams are properly in sync
using timestamp info so i dont believe that is the problem.

Thanks

Folabi
date: Sun, 27 Jul 2008 01:20:58 -0700 (PDT)   author:   Orimslala

Re: Custom Asf Writer filter : NS_E_INVALID_DATA   
On Jul 27, 3:20 am, Orimslala  wrote:
> Hi,
>
> I am writing a custom ASF Writer renderer filter. My renderer filter
> is essentially a wrapper over the IWMWriter interface used to write
> ASF files.
>
> The reason for writing the filter and not using the WM ASF Writer
> filter is because i need more control of how my filter works.
>
> The profile is read from a .prx file and then loaded when setting up
> the IWMWriter ie I call SetProfile on the IWMWriter.
>
> I have implemented the IFIleSinkFilter and i have my transcoding graph
> working for audio files.ie i can generate .wma files.
>
> However, for video this does not seem to work. WriteSample returns
> NS_E_INVALID_DATA when writing the second video sample. The docs
> provide the following as an explanation for this return code:
> "The sample is not valid. This can occur when an input script stream
> contains a script sample that is not valid."
>
> Could any of the directshow gurus be kind enough to advise on where i
> could be going wrong?
>
> I already ensure that the appropriate streams are properly in sync
> using timestamp info so i dont believe that is the problem.
>
> Thanks
>
> Folabi

Have you seen this - http://www.riseoftheants.com/mmx/faq.htm#wmvmuxsample
date: Mon, 28 Jul 2008 07:12:25 -0700 (PDT)   author:   babgvant

Re: Custom Asf Writer filter : NS_E_INVALID_DATA   
On 28 Jul, 15:12, babgvant  wrote:
> On Jul 27, 3:20 am, Orimslala  wrote:
>
>
>
>
>
> > Hi,
>
> > I am writing a customASFWriterrenderer filter. My renderer filter
> > is essentially a wrapper over the IWMWriter interface used to write
> >ASFfiles.
>
> > The reason for writing the filter and not using the WMASFWriter
> > filter is because i need more control of how my filter works.
>
> > The profile is read from a .prx file and then loaded when setting up
> > the IWMWriter ie I call SetProfile on the IWMWriter.
>
> > I have implemented the IFIleSinkFilter and i have my transcoding graph
> > working for audio files.ie i can generate .wma files.
>
> > However, for video this does not seem to work. WriteSample returns
> > NS_E_INVALID_DATA when writing the second video sample. The docs
> > provide the following as an explanation for this return code:
> > "The sample is not valid. This can occur when an input script stream
> > contains a script sample that is not valid."
>
> > Could any of the directshow gurus be kind enough to advise on where i
> > could be going wrong?
>
> > I already ensure that the appropriate streams are properly in sync
> > using timestamp info so i dont believe that is the problem.
>
> > Thanks
>
> > Folabi
>
> Have you seen this -http://www.riseoftheants.com/mmx/faq.htm#wmvmuxsample- Hide quoted text -
>
> - Show quoted text -

HI Babgvant,

I have seen the link on Alessandro's website which was very helpful
indeed!! However, i am hoping someone can explain what causes
WriteSample to return NS_E_INVALID_DATA. I am writing raw samples to
an asf file as opposed to compressed samples.

Thanks

Folabi
date: Mon, 28 Jul 2008 10:15:32 -0700 (PDT)   author:   Orimslala

Re: Custom Asf Writer filter : NS_E_INVALID_DATA   
From: "Orimslala"

> WriteSample to return NS_E_INVALID_DATA. I am writing raw
> samples to an asf file as opposed to compressed samples.

What do you mean by "raw samples"?

What is your PRX file (you can just post it)?

How are you configuring the WMWriter?

How are you writing the samples?



-- 
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
date: Mon, 28 Jul 2008 13:42:06 -0400   author:   Alessandro Angeli

Re: Custom Asf Writer filter : NS_E_INVALID_DATA   
On Jul 28, 12:15 pm, Orimslala  wrote:
> On 28 Jul, 15:12, babgvant  wrote:
>
>
>
> > On Jul 27, 3:20 am, Orimslala  wrote:
>
> > > Hi,
>
> > > I am writing a customASFWriterrenderer filter. My renderer filter
> > > is essentially a wrapper over the IWMWriter interface used to write
> > >ASFfiles.
>
> > > The reason for writing the filter and not using the WMASFWriter
> > > filter is because i need more control of how my filter works.
>
> > > The profile is read from a .prx file and then loaded when setting up
> > > the IWMWriter ie I call SetProfile on the IWMWriter.
>
> > > I have implemented the IFIleSinkFilter and i have my transcoding graph
> > > working for audio files.ie i can generate .wma files.
>
> > > However, for video this does not seem to work. WriteSample returns
> > > NS_E_INVALID_DATA when writing the second video sample. The docs
> > > provide the following as an explanation for this return code:
> > > "The sample is not valid. This can occur when an input script stream
> > > contains a script sample that is not valid."
>
> > > Could any of the directshow gurus be kind enough to advise on where i
> > > could be going wrong?
>
> > > I already ensure that the appropriate streams are properly in sync
> > > using timestamp info so i dont believe that is the problem.
>
> > > Thanks
>
> > > Folabi
>
> > Have you seen this -http://www.riseoftheants.com/mmx/faq.htm#wmvmuxsample-Hide quoted text -
>
> > - Show quoted text -
>
> HI Babgvant,
>
> I have seen the link on Alessandro's website which was very helpful
> indeed!! However, i am hoping someone can explain what causes
> WriteSample to return NS_E_INVALID_DATA. I am writing raw samples to
> an asf file as opposed to compressed samples.
>
> Thanks
>
> Folabi

I modified Alessandro's sample to write compresses samples.  You can
dl the source here - http://babgvant.com/files/folders/dvrmstowmv/entry9286.aspx.
date: Tue, 29 Jul 2008 08:42:24 -0700 (PDT)   author:   babgvant

Re: Custom Asf Writer filter : NS_E_INVALID_DATA   
On 29 Jul, 16:42, babgvant  wrote:
> On Jul 28, 12:15 pm, Orimslala  wrote:
>
>
>
>
>
> > On 28 Jul, 15:12, babgvant  wrote:
>
> > > On Jul 27, 3:20 am, Orimslala  wrote:
>
> > > > Hi,
>
> > > > I am writing a customASFWriterrenderer filter. My renderer filter
> > > > is essentially a wrapper over the IWMWriter interface used to write
> > > >ASFfiles.
>
> > > > The reason for writing the filter and not using the WMASFWriter
> > > > filter is because i need more control of how my filter works.
>
> > > > The profile is read from a .prx file and then loaded when setting up
> > > > the IWMWriter ie I call SetProfile on the IWMWriter.
>
> > > > I have implemented the IFIleSinkFilter and i have my transcoding graph
> > > > working for audio files.ie i can generate .wma files.
>
> > > > However, for video this does not seem to work. WriteSample returns
> > > > NS_E_INVALID_DATA when writing the second video sample. The docs
> > > > provide the following as an explanation for this return code:
> > > > "The sample is not valid. This can occur when an input script stream
> > > > contains a script sample that is not valid."
>
> > > > Could any of the directshow gurus be kind enough to advise on where i
> > > > could be going wrong?
>
> > > > I already ensure that the appropriate streams are properly in sync
> > > > using timestamp info so i dont believe that is the problem.
>
> > > > Thanks
>
> > > > Folabi
>
> > > Have you seen this -http://www.riseoftheants.com/mmx/faq.htm#wmvmuxsample-Hidequoted text -
>
> > > - Show quoted text -
>
> > HI Babgvant,
>
> > I have seen the link on Alessandro's website which was very helpful
> > indeed!! However, i am hoping someone can explain what causes
> > WriteSample to return NS_E_INVALID_DATA. I am writing raw samples to
> > anasffile as opposed to compressed samples.
>
> > Thanks
>
> > Folabi
>
> I modified Alessandro's sample to write compresses samples.  You can
> dl the source here -http://babgvant.com/files/folders/dvrmstowmv/entry9286.aspx.- Hide quoted text -
>
> - Show quoted text -

Thanks babgvant...much appreciated.

I will have a look tonite and give you some feedback.

Folabi
date: Tue, 29 Jul 2008 09:02:14 -0700 (PDT)   author:   Orimslala

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us