<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="DejaVu Sans">I think I've seen (or heard) this happen
as wel, but I have no idea why :-/ Hopefully someone more
knowledgeable will chip in. Do you have an example pipeline that
produces this effect?<br>
</font></p>
<p><font face="DejaVu Sans">Michiel</font></p>
<p><font face="DejaVu Sans"></font><br>
</p>
<div class="moz-cite-prefix">On 19-05-2022 06:57, Abrar Shahriar via
gstreamer-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:TYYPR01MB824515DFF67B7B6C904FEF7093D09@TYYPR01MB8245.jpnprd01.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: "Yu Gothic", 游ゴシック, 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", 游ゴシック, 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", 游ゴシック, YuGothic,
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: "Yu Gothic", 游ゴシック,
YuGothic, sans-serif; font-size: 12pt; color: rgb(0, 0,
0);">
</div>
<div><span style="font-family: "Yu Gothic", 游ゴシック,
YuGothic, sans-serif; font-size: 15px;"><br>
</span></div>
<div><span style="font-family: "Yu Gothic", 游ゴシック,
YuGothic, sans-serif; font-size: 15px;"><br>
</span></div>
<div><span style="font-family: "Yu Gothic", 游ゴシック,
YuGothic, sans-serif; font-size: 15px;">ーーーーーーーーー</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 style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
color:rgb(32,31,30)" lang="JA"><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", 游ゴシック,
YuGothic,
sans-serif;font-size:14.6667px;text-align:left;background-color:rgb(255,
255, 255);display:inline !important">アブラル・ザヒン<span
style="background-color:rgb(255, 255,
255);display:inline !important">・</span><span
style="background-color:rgb(255, 255,
255);display:inline !important">シャハリアル<span> </span></span></span></span><span
style="font-family: "Yu Gothic", 游ゴシック,
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", 游ゴシック,
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",
游ゴシック, 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)">
<span style="font-family: "Yu Gothic",
游ゴシック, YuGothic, sans-serif; font-size: 15px;
text-align: start; background-color: rgb(255, 255,
255); display: inline !important;">〒108-0014 東京都港区芝5丁目9-12 3階</span><br>
</span></p>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b> Abrar
Shahriar <a class="moz-txt-link-rfc2396E" href="mailto:abrar.shahriar@hiperdyne.com"><abrar.shahriar@hiperdyne.com></a><br>
<b>Sent:</b> Wednesday, May 18, 2022 1:26 PM<br>
<b>To:</b> Michiel Konstapel <a class="moz-txt-link-rfc2396E" href="mailto:michiel@aanmelder.nl"><michiel@aanmelder.nl></a>;
Discussion of the development of and with GStreamer
<a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org"><gstreamer-devel@lists.freedesktop.org></a><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",游ゴシック,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",游ゴシック,YuGothic,sans-serif;
font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px">ーーーーーーーーー</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 style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
color:rgb(32,31,30)" lang="JA"><span
style="font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important"><span
style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:14.6667px; text-align:left;
background-color:rgb(255,255,255);
display:inline!important">アブラル・ザヒン<span
style="background-color:rgb(255,255,255);
display:inline!important">・</span><span
style="background-color:rgb(255,255,255);
display:inline!important">シャハリアル<span> </span></span></span></span><span
style="font-family:"Yu
Gothic",游ゴシック,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",游ゴシック,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",游ゴシック,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)">
<span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important">〒108-0014 東京都港区芝5丁目9-12 3階</span><br>
</span></p>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
Abrar Shahriar <a class="moz-txt-link-rfc2396E" href="mailto:abrar.shahriar@hiperdyne.com"><abrar.shahriar@hiperdyne.com></a><br>
<b>Sent:</b> Wednesday, May 18, 2022 1:00 PM<br>
<b>To:</b> Michiel Konstapel <a class="moz-txt-link-rfc2396E" href="mailto:michiel@aanmelder.nl"><michiel@aanmelder.nl></a>;
Discussion of the development of and with GStreamer
<a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org"><gstreamer-devel@lists.freedesktop.org></a><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",游ゴシック,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",游ゴシック,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",游ゴシック,YuGothic,sans-serif;
font-size:12pt; color:rgb(0,0,0)">
</div>
<div><br>
</div>
<div><span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px">ーーーーーーーーー</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 style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
color:rgb(32,31,30)" lang="JA"><span
style="font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important"><span
style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:14.6667px; text-align:left;
background-color:rgb(255,255,255);
display:inline!important">アブラル・ザヒン<span
style="background-color:rgb(255,255,255);
display:inline!important">・</span><span
style="background-color:rgb(255,255,255);
display:inline!important">シャハリアル<span> </span></span></span></span><span
style="font-family:"Yu
Gothic",游ゴシック,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",游ゴシック,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",游ゴシック,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)">
<span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important">〒108-0014 東京都港区芝5丁目9-12 3階</span><br>
</span></p>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" face="Calibri, sans-serif"
color="#000000"><b>From:</b> Michiel Konstapel
<a class="moz-txt-link-rfc2396E" href="mailto:michiel@aanmelder.nl"><michiel@aanmelder.nl></a><br>
<b>Sent:</b> Tuesday, May 17, 2022 10:12 PM<br>
<b>To:</b> Abrar Shahriar
<a class="moz-txt-link-rfc2396E" href="mailto:abrar.shahriar@hiperdyne.com"><abrar.shahriar@hiperdyne.com></a>; Discussion of the
development of and with GStreamer
<a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org"><gstreamer-devel@lists.freedesktop.org></a><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
moz-txt-link-freetext"
href="https://gstreamer.freedesktop.org/documentation/coreelements/queue.html?gi-language=c#properties"
moz-do-not-send="true">
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",游ゴシック,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",游ゴシック,YuGothic,sans-serif;
font-size:12pt; color:rgb(0,0,0)">
</div>
<div><span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px"><br>
</span></div>
<div><span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px">ーーーーーーーーー</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 style="" lang="JA"><span style=""><span
style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:14.6667px; text-align:left;
background-color:rgb(255,255,255);
display:inline!important">アブラル・ザヒン<span
style="background-color:rgb(255,255,255);
display:inline!important">・</span><span
style="background-color:rgb(255,255,255); display:inline!important">シャハリアル<span> </span></span></span></span><span
style="font-family:"Yu
Gothic",游ゴシック,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",游ゴシック,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",游ゴシック,YuGothic,sans-serif;
font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important">ハイパーダイン株式会社</span><br
style="">
<span style="font-family:"Yu
Gothic",游ゴシック,YuGothic,sans-serif;
font-size:15px; text-align:start;
background-color:rgb(255,255,255);
display:inline!important">〒108-0014 東京都港区芝5丁目9-12 3階</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
style="font-size:11pt" face="Calibri, sans-serif"
color="#000000"><b>From:</b> Michiel Konstapel
<a class="x_x_x_moz-txt-link-rfc2396E"
href="mailto:michiel@aanmelder.nl"
moz-do-not-send="true"><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"
moz-do-not-send="true">
<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"
moz-do-not-send="true">
<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>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>