|
|
|
date: Sun, 27 Jul 2008 01:20:58 -0700 (PDT),
group: microsoft.public.win32.programmer.directx.video
back
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
|
|