Audio seeking is not working

View previous topic View next topic Go down

Audio seeking is not working

Post by vinujose on Tue Aug 11, 2015 12:19 am

I have a wmv file with Video & Audio. I am using VMR 9 for playing the file. My problem is I can't do seek. I am using IMediaSeeking's SetPosition API to seek. I am getting the error.-1072889813.

Any body faced this issue


vinujose

Posts : 5
Join date : 2015-08-11

View user profile

Back to top Go down

Re: Audio seeking is not working

Post by Admin on Tue Aug 11, 2015 12:47 am

That is error code C00D002B, which means INVALID_REQUEST.

Check if GetDuration returns a non-zero value.

Also check the capabilities. Some filters do not support relative positioning, so best is to use absolute positioning.

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Audio seeking is not working

Post by vinujose on Tue Aug 11, 2015 12:56 am

Hi,
GetDuration returns Nonzero Value;

I am using the SetPositions API like this
m_pMediaSeeking->SetPositions(   &newValue, AM_SEEKING_AbsolutePositioning,
NULL, AM_SEEKING_NoPositioning)

Can you tell me How I can use Absolute postioning?

vinujose

Posts : 5
Join date : 2015-08-11

View user profile

Back to top Go down

Re: Audio seeking is not working

Post by vinujose on Tue Aug 11, 2015 4:57 pm

when I am checking the Capabilities, its telling AM_SEEKING_CanSeekForwards is not available. But if te stream have video alone, AM_SEEKING_CanSeekForwards is available. why this behaviour is happening ? any idea?

vinujose

Posts : 5
Join date : 2015-08-11

View user profile

Back to top Go down

Re: Audio seeking is not working

Post by Admin on Wed Aug 12, 2015 1:38 am

I don't know.

The Codec Tweak Tool has an option to set LAV Splitter as preferred for .wmv files. Maybe that works better than the standard splitter from Microsoft (WM ASF Reader). If you also want to use LAV decoders, then you should enable the relevant formats in the settings of those decoders. The Windows Media stuff is disabled by default in LAV.

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Audio seeking is not working

Post by Sponsored content Today at 7:07 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum