T O P I C R E V I E W |
tcardinal |
Posted - Jun 03 2021 : 15:14:42 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 |
2 L A T E S T R E P L I E S (Newest First) |
tcardinal |
Posted - Jun 04 2021 : 06:42:09 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. |
xequte |
Posted - Jun 03 2021 : 16:54:52 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
|