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 6890293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:15:49+00:00 2026-05-27T06:15:49+00:00

I want to implement seek functionality for MpegTs file playback. Could any one suggest

  • 0

I want to implement seek functionality for MpegTs file playback.
Could any one suggest me how to convert PCR to time(in mescs).
I know that PCR is used for seek(I have seen in VLC) but would like to know how this can be done.

Kind Regards,
Ven

  • 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-05-27T06:15:50+00:00Added an answer on May 27, 2026 at 6:15 am

    The PCR is a clock that represents 27 Mhz clock at the encoder side. Hence each tick of PCR clock represents the 1/27 Microseconds.

    The first step is to be able to parse the PCR packet. The PCR ticks are maintained by a specific PID (mostly video but can be audio or alternative packets). When the PCR is present in the packet, it is of Adaptation field, type 2 or 3. You can refer to this or wiki for understanding how to parse PCR.

    Once you get the PCR value of the packet – (use a 64 bit integer) you have a timestamp P0 for that packet. Now you can seek to exactly say 10 seceonds, when you get next PCR packet, with a time stamp, P1 where

    P1 = P0 + 10 * 27 * 10^6

    So when you see another such packet containing timestamp P1 or more you can be sure of elapsing 10 seconds.

    Please, note that in some situation, PCR may find discontinuity hence, more calculation is needed at the point PCR base shifts.

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

Sidebar

Related Questions

If I want to implement seek() to complete the SeekableIterator interface, should I internally
I want to implement forms authentication on an ASP.NET website, the site should seek
I want to implement search functionality for a website (assume it is similar to
I want to implement file upload in RESTful way using openrasta but not able
want to implement poor man's ssl only to encrypt certain fields of only one
I want to implement a userland command that will take one of its arguments
I want to implement something similar to android seek bar.But not in a linear
I want to implement pagination in Play FrameWork , Is there any tutorial or
I want to implement a function in which one object follows a moving object
I want implement in my software solution an VBA editor but in c# 3.0.

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.