<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hey, I'm not really familiar with it, but what you describe sounds
like<br>
<a class="moz-txt-link-rfc2396E" href="https://en.wikipedia.org/wiki/.m2ts"><https://en.wikipedia.org/wiki/.m2ts></a>, I don't think we have a
depayloader<br>
for that format.<br>
<br>
<div class="moz-cite-prefix">On 9/7/20 4:35 AM, Abhinav Agrawal
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPU22L0j8ujroUCTapNjNTmkXcM5h-u9qqAQZOwFLMhPnJQxvQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I need to depay MPEG2-TTS payload (timestamped TS) from an
incoming RTP stream. I was trying rtpmp2tdepay element but it
seems it does not consider the timestamp part of the packet
and complains something like following - </div>
<div><br>
</div>
<div>><span style="color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-variant-ligatures:none;white-space:pre-wrap">0:00:00.250589186 84 0x7fdb280044a0 WARN default gstrtpmp2tdepay.c:175:gst_rtp_mp2t_depay_process: We don't have an integral number of buffers (leftover: 24)</span></div>
<div><span style="color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-variant-ligatures:none;white-space:pre-wrap">
</span></div>
<div>(Please note, the rtp packets having 6 TTS buffers, having
4 bytes of timestamp additionally for each TS packet, so 24
additional bytes makes sense to me).<br>
</div>
<div><br>
</div>
<div>
<div><span style="color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-variant-ligatures:none;white-space:pre-wrap">Following is the pipeline, I used - </span></div>
</div>
<div>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">gst-launch-1.0 -e filesrc location=file1.pcap ! pcapparse name=pcap ! "application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T,payload=(int)103" ! rtpbin name=rtpbin ! rtpmp2tdepay ! tsparse ! tsdemux ! video/x-h264,framerate=15/1,width=1280,height=720 ! h264parse ! "video/x-h264" ! mp4mux ! filesink async=False location=out.mp4</pre>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">I have a pcap file as source for now, unfortunately due to confidentiality agreement with customers, can't share the pcap file with the community.</pre>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;font-variant-ligatures:normal;color:rgb(34,34,34)">Is there any in-built support in gstreamer to depay such a packet ? Or any pointers for making rtpmp2tdepay work for this, maybe I should apply a patch to remove those 4 additional bytes - will that be a right direction ? </span></pre>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;font-variant-ligatures:normal">For those not familiar with MPEG2-TTS, I could not find much on the internet , but just some japanese documents + wiki indicate that TTS is nothing but 4 bytes timestamp + TS.
Some references (Sorry they are in Japanese - please translate with google :)) : </span></pre>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><a href="https://ja.wikipedia.org/wiki/MPEG-2%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0" moz-do-not-send="true">https://ja.wikipedia.org/wiki/MPEG-2%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0</a>
</pre>
<pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;font-variant-ligatures:normal">Any quick help would be highly appreciated. </span>
</pre>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Abhinav</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
</body>
</html>