<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I try to add pts and dts to the output buffer… but nothing more.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>It always doesn’t work on live stream whereas it work when I use an intermediate file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Help me please,  it’s going to make me crazy !!!!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Frederic<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org] <b>De la part de</b> Duchassin Frédéric<br><b>Envoyé :</b> lundi 14 mai 2018 14:25<br><b>À :</b> 'Discussion of the development of and with GStreamer'<br><b>Objet :</b> gstreamer custom element<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I try to make my own element called “t2mi” : this element take a t2-mi stream as input as output an mpeg2-ts stream.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So using these pipeline :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>(this first pipeline create a file called out.ts which contain valid mpeg2-ts)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 -v udpsrc address=239.0.0.1 port=1234 buffer-size=300000000 do-timestamp=false ! queue ! t2mi pid=64 ! queue ! filesink location=/home/t2misample/out.ts<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>(this second pipeline read the out.ts file and display the decoded video)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 -v filesrc location=/home/t2misample/out.ts blocksize=564 ! tsdemux name=d ! multiqueue name=q use-buffering=1 d. ! q. q.  ! queue max-size-bytes=100000000 max-size-time=0 ! vpudec ! queue max-size-bytes=100000000 max-size-time=0 ! imxipuvideosink q. ! queue max-size-bytes=100000000 max-size-time=0 ! decodebin ! queue max-size-bytes=100000000 max-size-time=0 ! audioconvert ! volume volume=10 ! alsasink<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>So my element seems working but when I use the following pipeline, it doesn’t work anymore  :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 -v udpsrc address=239.0.0.1 port=1234 buffer-size=300000000 do-timestamp=false ! queue ! t2mi pid=64 ! queue ! tsdemux name=d ! multiqueue name=q use-buffering=1 d. ! q. q.  ! queue max-size-bytes=100000000 max-size-time=0 ! vpudec ! queue max-size-bytes=100000000 max-size-time=0 ! imxipuvideosink q. ! queue max-size-bytes=100000000 max-size-time=0 ! decodebin ! queue max-size-bytes=100000000 max-size-time=0 ! audioconvert ! volume volume=10 ! alsasink<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>So when I use a filesink + filesrc and 2 pipeline, it’s working. But when I use only one pipeline it doesn’t work.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So my question is why ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks in advance for your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Frederic<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>