Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Quick Loading of TMediaPlayer Files?

Quick Loading of TMediaPlayer Files?

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!

RE: Quick Loading of TMediaPlayer Files?

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.

RE: Quick Loading of TMediaPlayer Files?

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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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