ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 DirectShow Position and Duration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tcardinal

27 Posts

Posted - Jun 03 2021 :  15:14:42  Show Profile  Reply
When I run a video I display the frame / seconds etc in the OnNewFrame. The Duration returns 460 frames and the position displays the count up to 460 frames as expected. However the Position reaches this point before the video actually finishes playing.

How do I make this accurate?

Thanks

xequte

6137 Posts

Posted - Jun 03 2021 :  16:54:52  Show Profile  Reply
Hi

Using?

ImageEnView1.IO.DShowParams.Position
ImageEnView1.IO.DShowParams.Duration

That information comes directly from the DirectShow API, so I'm not sure there is much that can be improved.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tcardinal

27 Posts

Posted - Jun 04 2021 :  06:42:09  Show Profile  Reply
Yes, that's what I'm using, Thats's very strange. It's the same in the demos too.

Also if I run a count in OnNewFrame it only counts 455 calls.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: