Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8158023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:29:05+00:00 2026-06-06T17:29:05+00:00

Core video experts, I’m creating a custom video player for .mov files. I have

  • 0

Core video experts, I’m creating a custom video player for .mov files. I have the .mov parser working and using the QTCoreVideo101 sample I am trying to play video.

The problem I have is the display link getFrameForTime I don’t know how the time values can be used to find the correct frame.

The values contained in CVTimeStamp don’t make any sense to me. Below is a sample of the values requested for a 1 second video. Can anyone explain how I use these values to find the correct frame in the .mov file?

First three requests – value of CVTimeStamp

  1. video time: 489150134353920.000000 hostTime: 2026048145326080.000000 videoTimeScale: 241500000.000000 rateScalar: 1.000000 videoRefreshPeriod: 4028320.000000

  2. video Time: 489150201462784.000000 hostTime: 2026048279543808.000000 videoTimeScale: 241500000.000000 rateScalar: 0.999985 videoRefreshPeriod: 4028320.000000

  3. video Time: 489156643913728.000000 hostTime: 2026074988871680.000000 videoTimeScale: 241500000.000000 rateScalar: 1.000000 videoRefreshPeriod: 4028320.000000

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:29:06+00:00Added an answer on June 6, 2026 at 5:29 pm

    CVTimeStamps are explained in the CVTimeStamp Reference Document. The videoTimeScale is the number of units that a second is divided into. So for 30 fps video, it would need to be at least 30 (though it could be any multiple of 30 – 60, 120, 30000, etc.). The videoTime is the time in the timescale where the current frame (or field) starts. So if your timebase is 30000, and you’re on the 15th frame, your videoTimeScale would be 30000, and your videoTime would be 15000.

    You can check that you’ve interpreted the value correctly by checking the smpteTime field and seeing if it matches what you expect. In the example above, it would be 0 hours, 0 minutes, 0 seconds, 15 frames (or 00:00:00:15).

    Is there a reason why you can just use the OS’s built-in video decoding facilities?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little Project setup using OpenGL and Core Video. I render to
Looking at the Apple iPhone Core Data Recipes sample app, they store image files
I am developing a video player for our department using C++. This video player
We have a custom video camera that streams what is essentially jpeg images to
I have some large files (images and video) which I need to store in
I have the following code: #include <irrlicht.h> using namespace irr; using namespace core; using
I have a problem playing mp4 video files on the Droid2 with android 2.2
Using core data I'd like to fetch some data. My model uses some abstract
Using core graphics , I am trying to draw a line, in that when
I have been trying to get video to work and have been getting an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.