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

  • Home
  • SEARCH
  • 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 9189893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:20:13+00:00 2026-06-17T20:20:13+00:00

My question is related to the solution provided in this answer . When I

  • 0

My question is related to the solution provided in this answer.

When I update the slider position, the video always starts from frame zero, whereas, slider continues from the moved position on-wards. How can I correct this?

  • 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-17T20:20:14+00:00Added an answer on June 17, 2026 at 8:20 pm

    Make sure you understand all the parameters used to create a trackbar. One of them is named count, and it defines the maximal position of the slider (the minimum is 0).

    All you need to do is retrieve the total number of frames in the video file (before you start to read the frames of the video) and pass this value as the count param, so the maximum position of the slider is the total frames of the video.

    Hints: cvGetCaptureProperty() and CV_CAP_PROP_FRAME_COUNT.

    And then to update the slider, simply retrieve the number of the current frame (take a look at CV_CAP_PROP_POS_FRAMES) and make sure that your callback of type CvTrackbarCallback sets this information on the trackbar to update it’s position correctly.

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

Sidebar

Related Questions

This is related to my previous question but i can't able to get solution
The question us also related to linux but solution is needed for Java. So
Question related to PHP memory-handling from someone not yet very experienced in PHP: If
Another question related to this one . I have a List<SortableObjects> that is the
I faced this puzzle question[ related to data structure ] in a coding competition.
I have a question related to this one . I don't want to do
Related question: Running my application on another machine gives me an error This is
This is related conceptually to my question here . However, I've been playing around
OK, this is related to question Constants in Objective C . I created Constants.h
Hi all I have seen all question related to this problem but couldn't find

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.