<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Akmal,</p>
<p>That pipeline indicates that there is no link between filesink
and nvcamerasrc. So, filesink is the end of a line and
nvcamerasrc is the start of a new line.</p>
<p>The same thing happens after h264parse ! mux.video_0</p>
<p>Ian<br>
</p>
<br>
<div class="moz-cite-prefix">On 06/06/18 13:10, Akmal Hisyam wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMrXkpN0PZaW2DPdACwwxXMGPSaoY6OkaL8kjYR=tu58nFcS=Q@mail.gmail.com">
<div dir="ltr"><font face="arial, helvetica, sans-serif">Hello
GStreamer Team!</font>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">I referred to
this webpage <a
href="https://www.jetsonhacks.com/2014/10/28/gstreamer-network-video-stream-save-file/"
moz-do-not-send="true">https://www.jetsonhacks.com/2014/10/28/gstreamer-network-video-stream-save-file/</a>
on how to get preview, <span
style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">how
to </span>do recording and <span
style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">how
to send stream to network by TCP.</span></font></div>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><span
style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font
face="arial, helvetica, sans-serif">
<p
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial">As
I'm on Jetson TX2, I tried the pipeline with '<b>nvcamerasrc</b>'
as the video source element and it works! I also
modified the pipeline for video recording and for
sending stream over network by TCP only without the
preview queue. So, it goes like this :</p>
<p
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial"><b>gst-launch-1.0
avimux name=mux<br style="box-sizing:border-box">
! filesink location=/media/nvidia/SSDJetson/test.mp4
nvcamerasrc fpsRange="30.0 30.0"<br
style="box-sizing:border-box">
! 'video/x-raw(memory:NVMM), width=(int)1920,
height=(int)1080, format=(string)I420,
framerate=(fraction)30/1' ! omxh264enc
bitrate=14000000 control-rate=variable ! tee
name=tsplit<br style="box-sizing:border-box">
! queue ! h264parse ! mux.video_0 tsplit.<br
style="box-sizing:border-box">
! queue ! h264parse ! queue ! matroskamux<br
style="box-sizing:border-box">
! queue leaky=2 ! tcpserversink host=192.x.x.x
port=7001</b></p>
<p
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial">Thanks
to this guide, I managed to launch this on command line.
I'm used to transform gstreamer pipeline into C/C++
programming code but I'm still a beginner. However, this
is my first time I saw this form of pipeline where it
starts with the muxer and then the "<b>filesink</b>" and
"<b>nvcamerasrc</b>" elements are bordered in the same
"! ...!" like this "<b>! filesink
location=/media/nvidia/SSDJetson/test.mp4 nvcamerasrc
fpsRange="30.0 30.0" !</b>". I'm not familiar at all
with this form of pipeline but I wanted to transform
this into code.</p>
<p
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial">I
have two problems, I don't know how to create the "<b>filesink</b>"
and "<b>nvcamerasrc</b>" elements in the same '<b>gst_element_factory_make</b>'.<br
style="box-sizing:border-box">
Plus, I don't know how to transform "<b>mux.video_0
tsplit.</b>" to code.</p>
<p
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial">Do
you have any examples on this? So far, I haven't managed
to find any code examples related to this on internet.</p>
<p
style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial;margin-bottom:0px">Thanks
in advance!</p>
<p
style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);text-decoration-style:initial;text-decoration-color:initial;margin-bottom:0px"><br>
</p>
</font></span></div>
<div><span
style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font
style="" face="arial, helvetica, sans-serif">Akmal</font></span></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
</body>
</html>