Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: What is error 80070057 when attempting to open WMReader?

HTVi
TV Discussion Newsgroups

What is error 80070057 when attempting to open WMReader?
dl0 <dl0banter[ at ]gmail.com> 6/6/2007 5:00:35 PM
I'm getting this error, specifically in the WMVCopy sample code.

I'm running it like

wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv

It was my understanding the WMReader could open from a URL. I tried
HTTP as well and this didn't work either. Seems to give me the same
error. I know there aren't any firewall issues because I can open the
designated stream with MP11 no problem.

Thanks,
D

Re: What is error 80070057 when attempting to open WMReader?
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 6/6/2007 7:51:04 PM
From: "dl0"

[Quoted Text]
> I'm getting this error, specifically in the WMVCopy
> sample code.
>
> I'm running it like
>
> wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv
>
> It was my understanding the WMReader could open from a
> URL. I tried HTTP as well and this didn't work either.
> Seems to give me the same error. I know there aren't any
> firewall issues because I can open the designated stream
> with MP11 no problem.

E_INVALIDARG

What exact call is returning that error?



--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: What is error 80070057 when attempting to open WMReader?
dl0 <dl0banter[ at ]gmail.com> 6/7/2007 1:40:01 AM
On Jun 6, 1:51 pm, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
wrote:
[Quoted Text]
> From: "dl0"
>
> > I'm getting this error, specifically in the WMVCopy
> > sample code.
>
> > I'm running it like
>
> > wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv
>
> > It was my understanding the WMReader could open from a
> > URL. I tried HTTP as well and this didn't work either.
> > Seems to give me the same error. I know there aren't any
> > firewall issues because I can open the designated stream
> > with MP11 no problem.
>
> E_INVALIDARG
>
> What exact call is returning that error?
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> //http://www.riseoftheants.com/mmx/faq.htm

Apparently Google gets everything first. It was a crazy day and I
wasn't seeing anything on the site I was posting on. Sorry about
that.

Iif( m_qwDuration == 0 )
{
hr = E_INVALIDARG;
return( hr );
}

I tried 0 initially thinking it was "forever" and it clearly is not,
but I have tried it with other values as well. Still does the same
thing so CreateReader is failing...

Thanks,
Sorry about the confusion.

Re: What is error 80070057 when attempting to open WMReader?
dl0 <dl0banter[ at ]gmail.com> 6/7/2007 2:19:22 AM
On Jun 6, 7:40 pm, dl0 <dl0ban...[ at ]gmail.com> wrote:
[Quoted Text]
> On Jun 6, 1:51 pm, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
> wrote:
>
>
>
>
>
> > From: "dl0"
>
> > > I'm getting this error, specifically in the WMVCopy
> > > sample code.
>
> > > I'm running it like
>
> > > wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv
>
> > > It was my understanding the WMReader could open from a
> > > URL. I tried HTTP as well and this didn't work either.
> > > Seems to give me the same error. I know there aren't any
> > > firewall issues because I can open the designated stream
> > > with MP11 no problem.
>
> > E_INVALIDARG
>
> > What exact call is returning that error?
>
> > --
> > // Alessandro Angeli
> > // MVP :: DirectShow / MediaFoundation
> > // mvpnews at riseoftheants dot com
> > //http://www.riseoftheants.com/mmx/faq.htm
>
> Apparently Google gets everything first. It was a crazy day and I
> wasn't seeing anything on the site I was posting on. Sorry about
> that.
>
> Iif( m_qwDuration == 0 )
> {
> hr = E_INVALIDARG;
> return( hr );
> }
>
> I tried 0 initially thinking it was "forever" and it clearly is not,
> but I have tried it with other values as well. Still does the same
> thing so CreateReader is failing...
>
> Thanks,
> Sorry about the confusion.- Hide quoted text -
>
> - Show quoted text -

More specifically,

hr = m_pReaderHeaderInfo->GetAttributeByName( &wStreamNumber,
g_wszWMDuration,
&enumType,
(BYTE
*)&m_qwDuration,
&cbLength );

Is setting it to 0 no matter what. The if statement down below is
just catching it.

Re: What is error 80070057 when attempting to open WMReader?
dl0 <dl0banter[ at ]gmail.com> 6/7/2007 2:27:02 AM
On Jun 6, 8:19 pm, dl0 <dl0ban...[ at ]gmail.com> wrote:
[Quoted Text]
> On Jun 6, 7:40 pm, dl0 <dl0ban...[ at ]gmail.com> wrote:
>
>
>
>
>
> > On Jun 6, 1:51 pm, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
> > wrote:
>
> > > From: "dl0"
>
> > > > I'm getting this error, specifically in the WMVCopy
> > > > sample code.
>
> > > > I'm running it like
>
> > > > wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv
>
> > > > It was my understanding the WMReader could open from a
> > > > URL. I tried HTTP as well and this didn't work either.
> > > > Seems to give me the same error. I know there aren't any
> > > > firewall issues because I can open the designated stream
> > > > with MP11 no problem.
>
> > > E_INVALIDARG
>
> > > What exact call is returning that error?
>
> > > --
> > > // Alessandro Angeli
> > > // MVP :: DirectShow / MediaFoundation
> > > // mvpnews at riseoftheants dot com
> > > //http://www.riseoftheants.com/mmx/faq.htm
>
> > Apparently Google gets everything first. It was a crazy day and I
> > wasn't seeing anything on the site I was posting on. Sorry about
> > that.
>
> > Iif( m_qwDuration == 0 )
> > {
> > hr = E_INVALIDARG;
> > return( hr );
> > }
>
> > I tried 0 initially thinking it was "forever" and it clearly is not,
> > but I have tried it with other values as well. Still does the same
> > thing so CreateReader is failing...
>
> > Thanks,
> > Sorry about the confusion.- Hide quoted text -
>
> > - Show quoted text -
>
> More specifically,
>
> hr = m_pReaderHeaderInfo->GetAttributeByName( &wStreamNumber,
> g_wszWMDuration,
> &enumType,
> (BYTE
> *)&m_qwDuration,
> &cbLength );
>
> Is setting it to 0 no matter what. The if statement down below is
> just catching it.- Hide quoted text -
>
> - Show quoted text -

Well I think that its telling me is the stream is Live. I already
know that... I have to be able to record live streams for archiving.
This begs the question, is this just a setting on the WMReader? It
says "URL" in the documenation but my URLs go to live streams
exclusively.

Re: What is error 80070057 when attempting to open WMReader?
Glyn Davies <sgd.work[ at ]googlemail.com> 6/7/2007 7:25:23 AM
dl0 wrote:
[Quoted Text]
> On Jun 6, 8:19 pm, dl0 <dl0ban...[ at ]gmail.com> wrote:
>> On Jun 6, 7:40 pm, dl0 <dl0ban...[ at ]gmail.com> wrote:
>>
>>
>>
>>
>>
>>> On Jun 6, 1:51 pm, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
>>> wrote:
>>>> From: "dl0"
>>>>> I'm getting this error, specifically in the WMVCopy
>>>>> sample code.
>>>>> I'm running it like
>>>>> wmvcopy -i mms://oct.oct.oct.oct/pubname -o myfile.wmv
>>>>> It was my understanding the WMReader could open from a
>>>>> URL. I tried HTTP as well and this didn't work either.
>>>>> Seems to give me the same error. I know there aren't any
>>>>> firewall issues because I can open the designated stream
>>>>> with MP11 no problem.
>>>> E_INVALIDARG
>>>> What exact call is returning that error?
>>>> --
>>>> // Alessandro Angeli
>>>> // MVP :: DirectShow / MediaFoundation
>>>> // mvpnews at riseoftheants dot com
>>>> //http://www.riseoftheants.com/mmx/faq.htm
>>> Apparently Google gets everything first. It was a crazy day and I
>>> wasn't seeing anything on the site I was posting on. Sorry about
>>> that.
>>> Iif( m_qwDuration == 0 )
>>> {
>>> hr = E_INVALIDARG;
>>> return( hr );
>>> }
>>> I tried 0 initially thinking it was "forever" and it clearly is not,
>>> but I have tried it with other values as well. Still does the same
>>> thing so CreateReader is failing...
>>> Thanks,
>>> Sorry about the confusion.- Hide quoted text -
>>> - Show quoted text -
>> More specifically,
>>
>> hr = m_pReaderHeaderInfo->GetAttributeByName( &wStreamNumber,
>> g_wszWMDuration,
>> &enumType,
>> (BYTE
>> *)&m_qwDuration,
>> &cbLength );
>>
>> Is setting it to 0 no matter what. The if statement down below is
>> just catching it.- Hide quoted text -
>>
>> - Show quoted text -
>
> Well I think that its telling me is the stream is Live. I already
> know that... I have to be able to record live streams for archiving.
> This begs the question, is this just a setting on the WMReader? It
> says "URL" in the documenation but my URLs go to live streams
> exclusively.
>

Could it just be that live streams do not provide a duration?

Glyn
Re: What is error 80070057 when attempting to open WMReader?
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 6/7/2007 11:16:16 AM
From: "dl0"

[Quoted Text]
> Well I think that its telling me is the stream is Live.
> I already know that... I have to be able to record live
> streams for archiving. This begs the question, is this
> just a setting on the WMReader? It says "URL" in the
> documenation but my URLs go to live streams exclusively.

So it is not the open call that fails. Then why are you
worrying about it? The open with the URL succeded long
before this check in the sample. Notice that it is not a
failure in the API, just a check in the code, which means
you can change it. Live streams do not have a duration since
the software can not predict the future. But simply search
the code for qwDuration and you'll see it is only used to
track the progress during the copy and the check is there to
prevent a division by zero later on when the duration is 0.
Just remove the check and change or remove the progress
tracking in CWMVCopy::OnStreamSample().


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: What is error 80070057 when attempting to open WMReader?
dl0 <dl0banter[ at ]gmail.com> 6/7/2007 4:27:38 PM
On Jun 7, 5:16 am, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
wrote:
[Quoted Text]
> From: "dl0"
>
> > Well I think that its telling me is the stream is Live.
> > I already know that... I have to be able to record live
> > streams for archiving. This begs the question, is this
> > just a setting on the WMReader? It says "URL" in the
> > documenation but my URLs go to live streams exclusively.
>
> So it is not the open call that fails. Then why are you
> worrying about it? The open with the URL succeded long
> before this check in the sample. Notice that it is not a
> failure in the API, just a check in the code, which means
> you can change it. Live streams do not have a duration since
> the software can not predict the future. But simply search
> the code for qwDuration and you'll see it is only used to
> track the progress during the copy and the check is there to
> prevent a division by zero later on when the duration is 0.
> Just remove the check and change or remove the progress
> tracking in CWMVCopy::OnStreamSample().
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> //http://www.riseoftheants.com/mmx/faq.htm

This works... thanks! I spent a little more time in the code to find
all the references to this value and turned them off... seems to work
great now, thanks.



Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen