Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I can't start my day without this site!..."

Geography

Where in the world do Tek-Tips members come from?
kaywarner (TechnicalUser)
11 Jul 12 12:32
Hi Guys,

Thanks for taking the time to read my post.

I was wondering if anyone could help me with Juddering/Loading when using TMediaPlayer?

I have 6, 45-second videos (in .avi format, from a webcam) of an engineering experiment I did.

I have written a simple application that will show me the reading from my sensors in realtime on a TeeChart and show the video at the top of the TForm.

The trouble is, every time one video stops and the app loads the next one, there is a blanking out/juddering on the TMedia Player which knocks it out of sync with the data below.

does anyone know of a way to "smooth" this out? ideally I would like a seamless transition between videos. I have double buffered video on and I have included my video code below.

Huge thanks to everyone for any help.

"I won't say that its better than sex, but it does last longer" - Professor Stephen Hawking on Eureka Moments - HaHaHaHa - Awesome!

majlumbo (Programmer)
11 Jul 12 15:14
Seems to me that what you would want to do is load not only the video you want to show, but to pre-load the next one so you can begin playing it when the first one finishes. As you start playing the next video, again, pre-load the next in the list, until you have no more videos.

The double-buffering won't do anything to help the transition from one video to the next. It would only help in reducing flickering of the video currently being played.

You may be able to pre-load the next video inside a thread, minimizing any latency in your GUI.
http://thaddy.co.uk/threads/
kaywarner (TechnicalUser)
12 Jul 12 9:20
Thank You majlumbo!!

That is exactly what I want to do! I will persue this I think, it seems to be the way to go.

failing that, I am looking into a OpenCV type arrangment, which is more complex but may acheive my objective.

Thank you so much for you help.

"I won't say that its better than sex, but it does last longer" - Professor Stephen Hawking on Eureka Moments - HaHaHaHa - Awesome!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close