fail on IWMSyncReader::SetRangeByFrame()
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
fail on IWMSyncReader::SetRangeByFrame()

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Rubing Chiu
Guest





Posted: Mon Sep 13, 2004 11:42 am    Post subject: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

When I use IWMSyncReader::SetRangeByFrame(), if the start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.

Back to top
Geoff Dunbar [MSFT]
Guest





Posted: Mon Sep 13, 2004 10:27 pm    Post subject: Re: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

Rubing,

For frame number seeking to work, there must be a frame-number index on the
file. The frame-number index is _not_ generated by default. See the section
"Working with Indexes" for information on how to use the indexer object to
generate a frame-number index for a file.

Thanks,
Geoff

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Rubing Chiu" <anonymous@discussions.microsoft.com> wrote in message
news:0f0601c49965$3caa5900$a501280a@phx.gbl...
Quote:
When I use IWMSyncReader::SetRangeByFrame(), if the start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.
Back to top
Guest






Posted: Tue Sep 14, 2004 7:06 am    Post subject: Re: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

Geoff,

Thanks for your info. :-)

If I use "Windows Media Encoder" to convert a file to
wmv. How can I set Encoder to index the new file using
frame number index?

And, using WMF SDK, how can I set the writer to index the
file which is being writing to frame-number indexed?

- Rubing

Quote:
-----Original Message-----
Rubing,

For frame number seeking to work, there must be a frame-
number index on the
file. The frame-number index is _not_ generated by
default. See the section
"Working with Indexes" for information on how to use the
indexer object to
generate a frame-number index for a file.

Thanks,
Geoff

--
This posting is provided "AS IS" with no warranties, and
confers no rights.

"Rubing Chiu" <anonymous@discussions.microsoft.com
wrote in message
news:0f0601c49965$3caa5900$a501280a@phx.gbl...
When I use IWMSyncReader::SetRangeByFrame(), if the
start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.


.


Back to top
Stuart Wyatt [MS]
Guest





Posted: Wed Sep 15, 2004 3:11 am    Post subject: Re: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

You can add the index after the fle is created. As Geoff mentioned, use the
indexer object to add the type(s) of index you want to the file after you've
written it using the WMEncoder or FSDK Writer.

--
-Stuart

This posting is provided "AS IS" with no warranties, and confers no rights.


<anonymous@discussions.microsoft.com> wrote in message
news:192d01c49a07$c970d4c0$a301280a@phx.gbl...
Quote:
Geoff,

Thanks for your info. :-)

If I use "Windows Media Encoder" to convert a file to
wmv. How can I set Encoder to index the new file using
frame number index?

And, using WMF SDK, how can I set the writer to index the
file which is being writing to frame-number indexed?

- Rubing

-----Original Message-----
Rubing,

For frame number seeking to work, there must be a frame-
number index on the
file. The frame-number index is _not_ generated by
default. See the section
"Working with Indexes" for information on how to use the
indexer object to
generate a frame-number index for a file.

Thanks,
Geoff

--
This posting is provided "AS IS" with no warranties, and
confers no rights.

"Rubing Chiu" <anonymous@discussions.microsoft.com
wrote in message
news:0f0601c49965$3caa5900$a501280a@phx.gbl...
When I use IWMSyncReader::SetRangeByFrame(), if the
start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.


.
Back to top
Rubing Chiu
Guest





Posted: Wed Sep 15, 2004 6:29 am    Post subject: Re: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

But, if I use the indexer object, IWMIndexer, to add
index, I found the file will be longer.

How to keep the file length when adding index using
indexer object?

- Rubing

Quote:
-----Original Message-----
You can add the index after the fle is created. As
Geoff mentioned, use the
indexer object to add the type(s) of index you want to
the file after you've
written it using the WMEncoder or FSDK Writer.

--
-Stuart

This posting is provided "AS IS" with no warranties, and
confers no rights.


anonymous@discussions.microsoft.com> wrote in message
news:192d01c49a07$c970d4c0$a301280a@phx.gbl...
Geoff,

Thanks for your info. :-)

If I use "Windows Media Encoder" to convert a file to
wmv. How can I set Encoder to index the new file using
frame number index?

And, using WMF SDK, how can I set the writer to index
the
file which is being writing to frame-number indexed?

- Rubing

-----Original Message-----
Rubing,

For frame number seeking to work, there must be a
frame-
number index on the
file. The frame-number index is _not_ generated by
default. See the section
"Working with Indexes" for information on how to use
the
indexer object to
generate a frame-number index for a file.

Thanks,
Geoff

--
This posting is provided "AS IS" with no warranties,
and
confers no rights.

"Rubing Chiu" <anonymous@discussions.microsoft.com
wrote in message
news:0f0601c49965$3caa5900$a501280a@phx.gbl...
When I use IWMSyncReader::SetRangeByFrame(), if the
start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.


.



.
Back to top
Rubing
Guest





Posted: Thu Sep 16, 2004 6:23 am    Post subject: Re: fail on IWMSyncReader::SetRangeByFrame() Reply with quote

I dont mean the file size. of coz file size will be
larger, but the duration, from IWMHeaderInfo interface
with g_wszWMDuration, shouldn't be longer than before
indexing. However, it does!

Is there anyway to indexing a file and the indexed file
can keep the duration same as the original file ??

- Rubing


Quote:
-----Original Message-----
Of course, the index itself takes up a small amount of
space, so your file
will be slightly longer after indexing. The increase in
size, though, is
expected to be pretty small.

Becky

This posting is provided AS IS with no warranties and
confers no rights.

"Rubing Chiu" wrote:

But, if I use the indexer object, IWMIndexer, to add
index, I found the file will be longer.

How to keep the file length when adding index using
indexer object?

- Rubing

-----Original Message-----
You can add the index after the fle is created. As
Geoff mentioned, use the
indexer object to add the type(s) of index you want
to
the file after you've
written it using the WMEncoder or FSDK Writer.

--
-Stuart

This posting is provided "AS IS" with no warranties,
and
confers no rights.


anonymous@discussions.microsoft.com> wrote in
message
news:192d01c49a07$c970d4c0$a301280a@phx.gbl...
Geoff,

Thanks for your info. :-)

If I use "Windows Media Encoder" to convert a file
to
wmv. How can I set Encoder to index the new file
using
frame number index?

And, using WMF SDK, how can I set the writer to
index
the
file which is being writing to frame-number indexed?

- Rubing

-----Original Message-----
Rubing,

For frame number seeking to work, there must be a
frame-
number index on the
file. The frame-number index is _not_ generated by
default. See the section
"Working with Indexes" for information on how to
use
the
indexer object to
generate a frame-number index for a file.

Thanks,
Geoff

--
This posting is provided "AS IS" with no
warranties,
and
confers no rights.

"Rubing Chiu" <anonymous@discussions.microsoft.com
wrote in message
news:0f0601c49965$3caa5900$a501280a@phx.gbl...
When I use IWMSyncReader::SetRangeByFrame(), if
the
start
frame or end frame is not given as 0, I always get
NS_E_INVALID_REQUEST(0xc00d002b).

Does anyone know what's wrong?

Please help, thanks a lot.


.



.


.
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB