<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've run into another issue with this. <br>
<br>
</div>
<div style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If I increase the PTS offset, it works, but if I then decrease the offset afterwards (to the original offset of 0), the audio quality greatly degrades. </div>
<div>
<div style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div><span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px;"><br>
</span></div>
<div><span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px;"><br>
</span></div>
<div><span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px;">$B!<!<!<!<!<!<!<!<!<(B</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; background:white">
<span lang="JA" style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; color:rgb(32,31,30)"><span style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;text-align:start;background-color:rgb(255, 255, 255);display:inline !important"><span style="font-family:"Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif;font-size:14.6667px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important">$B%"%V%i%k!&%6%R%s(B<span style="background-color:rgb(255, 255, 255);display:inline !important">$B!&(B</span><span style="background-color:rgb(255, 255, 255);display:inline !important">$B%7%c%O%j%"%k(B<span> </span></span></span></span><span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255); display: inline !important;">
 (Abrar Zahin Shahriar</span><span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255); display: inline !important;">)</span><br style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;text-align:start;background-color:rgb(255, 255, 255)">
<br style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;text-align:start;background-color:rgb(255, 255, 255)">
<span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255); display: inline !important;">$B%O%$%Q!<%@%$%s3t<02q<R(B</span><br style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;text-align:start;background-color:rgb(255, 255, 255)">
<span style="font-family: "Yu Gothic", $B^b%4%7%C%/(B, YuGothic, sans-serif; font-size: 15px; text-align: start; background-color: rgb(255, 255, 255); display: inline !important;">$B")(B108$B!](B0014$B!!El5~ET9A6h<G(B5$BCzL\(B9$B!](B12$B!!(B3$B3,(B</span><br>
</span></p>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Abrar Shahriar <abrar.shahriar@hiperdyne.com><br>
<b>Sent:</b> Wednesday, May 18, 2022 1:26 PM<br>
<b>To:</b> Michiel Konstapel <michiel@aanmelder.nl>; Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: PTS Offset to Add Artificial Delay Not Working</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Update: It did work when I set the audio sink "sync" to TRUE.</div>
<div>
<div id="x_Signature">
<div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px">$B!<!<!<!<!<!<!<!<!<(B</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; background:white">
<span lang="JA" style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; color:rgb(32,31,30)"><span style="font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:14.6667px; text-align:left; background-color:rgb(255,255,255); display:inline!important">$B%"%V%i%k!&%6%R%s(B<span style="background-color:rgb(255,255,255); display:inline!important">$B!&(B</span><span style="background-color:rgb(255,255,255); display:inline!important">$B%7%c%O%j%"%k(B<span> </span></span></span></span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">
 (Abrar Zahin Shahriar</span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">)</span><br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B%O%$%Q!<%@%$%s3t<02q<R(B</span><br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B")(B108$B!](B0014$B!!El5~ET9A6h<G(B5$BCzL\(B9$B!](B12$B!!(B3$B3,(B</span><br>
</span></p>
</div>
</div>
</div>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Abrar Shahriar <abrar.shahriar@hiperdyne.com><br>
<b>Sent:</b> Wednesday, May 18, 2022 1:00 PM<br>
<b>To:</b> Michiel Konstapel <michiel@aanmelder.nl>; Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: PTS Offset to Add Artificial Delay Not Working</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Tried it, unfortunately it did not work.</div>
<div>
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_x_Signature">
<div>
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div><br>
</div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px">$B!<!<!<!<!<!<!<!<!<(B</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; background:white">
<span lang="JA" style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; color:rgb(32,31,30)"><span style="font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important"><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:14.6667px; text-align:left; background-color:rgb(255,255,255); display:inline!important">$B%"%V%i%k!&%6%R%s(B<span style="background-color:rgb(255,255,255); display:inline!important">$B!&(B</span><span style="background-color:rgb(255,255,255); display:inline!important">$B%7%c%O%j%"%k(B<span> </span></span></span></span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">
 (Abrar Zahin Shahriar</span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">)</span><br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B%O%$%Q!<%@%$%s3t<02q<R(B</span><br style="font-size:15px; text-align:start; background-color:rgb(255,255,255)">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B")(B108$B!](B0014$B!!El5~ET9A6h<G(B5$BCzL\(B9$B!](B12$B!!(B3$B3,(B</span><br>
</span></p>
</div>
</div>
</div>
</div>
<div id="x_x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Michiel Konstapel <michiel@aanmelder.nl><br>
<b>Sent:</b> Tuesday, May 17, 2022 10:12 PM<br>
<b>To:</b> Abrar Shahriar <abrar.shahriar@hiperdyne.com>; Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: PTS Offset to Add Artificial Delay Not Working</font>
<div> </div>
</div>
<div>
<p>Yes, by default the queue is limited to 200 buffers, 1 MB, or 1 second of data - whichever limit is hit first. You can check the default values in the docs:
<a class="x_x_x_moz-txt-link-freetext" href="https://gstreamer.freedesktop.org/documentation/coreelements/queue.html?gi-language=c#properties">
https://gstreamer.freedesktop.org/documentation/coreelements/queue.html?gi-language=c#properties</a></p>
<p><br>
</p>
<p>So for a 5 second queue, you can set max-size-buffers and max-size-bytes to zero (no limit) and max-size-time to 5000000000.</p>
<p><br>
</p>
<div class="x_x_x_moz-cite-prefix">On 17-05-2022 09:49, Abrar Shahriar wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I tried adding Queue plugins both before and after, still no success. Do I need to set some params of the Queue elements?</div>
<div>
<div id="x_x_x_Signature">
<div>
<div style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px">$B!<!<!<!<!<!<!<!<!<(B</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; background:white">
<span lang="JA" style=""><span style=""><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:14.6667px; text-align:left; background-color:rgb(255,255,255); display:inline!important">$B%"%V%i%k!&%6%R%s(B<span style="background-color:rgb(255,255,255); display:inline!important">$B!&(B</span><span style="background-color:rgb(255,255,255); display:inline!important">$B%7%c%O%j%"%k(B<span> </span></span></span></span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">
 (Abrar Zahin Shahriar</span><span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">)</span><br style="">
<br style="">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B%O%$%Q!<%@%$%s3t<02q<R(B</span><br style="">
<span style="font-family:"Yu Gothic",$B^b%4%7%C%/(B,YuGothic,sans-serif; font-size:15px; text-align:start; background-color:rgb(255,255,255); display:inline!important">$B")(B108$B!](B0014$B!!El5~ET9A6h<G(B5$BCzL\(B9$B!](B12$B!!(B3$B3,(B</span><br>
</span></p>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Michiel Konstapel
<a class="x_x_x_moz-txt-link-rfc2396E" href="mailto:michiel@aanmelder.nl"><michiel@aanmelder.nl></a><br>
<b>Sent:</b> Monday, May 16, 2022 6:11 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer <a class="x_x_x_moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org">
<gstreamer-devel@lists.freedesktop.org></a><br>
<b>Cc:</b> Abrar Shahriar <a class="x_x_x_moz-txt-link-rfc2396E" href="mailto:abrar.shahriar@hiperdyne.com">
<abrar.shahriar@hiperdyne.com></a><br>
<b>Subject:</b> Re: PTS Offset to Add Artificial Delay Not Working</font>
<div> </div>
</div>
<div>
<p>You may need to ensure that you have at least 5 seconds of queue capacity, because the buffers will have to be held somewhere before they can be processed at the later PTS. I don't know if this needs to be before the probed pad, or before the downstream
 element that cares about the PTS (sink, muxer, mixer, encoder, ..?)<br>
Kind regards,<br>
Michiel<br>
</p>
<p><br>
</p>
<div class="x_x_x_x_moz-cite-prefix">On 16-05-2022 11:05, Abrar Shahriar via gstreamer-devel wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_x_x_x_elementToProof" style="">Hi,</div>
<div class="x_x_x_x_elementToProof" style=""><br>
</div>
<div class="x_x_x_x_elementToProof" style="">I tried to add 5 seconds (in ns) to the PTS values on the incoming buffers in a probe, but I see no delay. I tried it for both audio and video streams.<br>
<br>
What could be the reason for it not working? I thought PTS could be used to adjust delay?</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>