<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.0.2-29470">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>calc next audio pts value</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hello</p><p> </p><p>I would like to understand how i can calc the diff to the next PTS Value.</p><p>Im processing a dvb stream. To be in sync i detect if a frame is missing and add a dummy frame.</p><p>For video frames a can use this formula:</p><p> </p><p> (1/fps) * 90000 * NUMBER_OF_THE_FRAME</p><p>example:</p><p>(1 / 30) * 90000 * 1 = 3600</p><p> </p><p>i can't find out the formula for audio pts values.</p><p>if i print out the diff to the last audio pts it is </p><p>    Stream #0:2[0x66](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s</p><p>diff to last pts 2880</p><p> </p><p>If i take an other video:</p><p>    Stream #0:1[0x1412](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s<br /><br />diff to last pts 2160</p><p> </p><p>Can anybody give me a hint?</p><p> </p><p>Best Regards</p><p>Patrick</p>
</body>
</html>