<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello, </p>
<p><br>
</p>
<p>Try to look on probe.</p>
<p>You can drop from stream.</p>
<p><br>
</p>
<p>Mikl</p>
</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> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of justyoung17 <george.chiao@hotmail.co.uk><br>
<b>Sent:</b> Sunday, February 5, 2017 8:51:05 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Manipulate data between omxmjpegdec and omxh264enc with a fifo on PI 3?</font>
<div> </div>
</div>
<div>Hi, <br>
<br>
Not sure if it makes sense about what I tried to do, for example, below worked fine as I was able to pipe in jmpeg from the IP camera on raspi3 to an external rtmp channel:
<br>
<br>
ffmpeg -i "rtsp://xxxx" -vcodec copy -f mjpeg -y - | \<br>
gst-launch-1.0 \<br>
-v fdsrc fd=0 \<br>
! "image/jpeg,width=1280, height=720,framerate=25/1" \<br>
! jpegparse \<br>
<b>! omxmjpegdec</b> \<br>
<b>! omxh264enc</b> \<br>
! h264parse \<br>
! queue \<br>
! flvmux streamable=true \<br>
! queue \<br>
! rtmpsink location="rtmp://yyyy"<br>
<br>
However, when I placed a fifo between <b>omxmjpegdec </b>and <b>omxh264enc</b> <br>
<br>
For example <br>
<br>
Session 1: <br>
<br>
mkfifo <br>
<br>
ffmpeg \<br>
-i "rtsp://xxxx" -vcodec copy -f mjpeg -y - | \<br>
gst-launch-1.0 \<br>
-v fdsrc fd=0 \<br>
! "image/jpeg,width=1280, height=720,framerate=25/1" \<br>
! jpegparse \ ! omxmjpegdec \ <b>! filesink location=myfifo</b> <br>
<br>
And Session 2:<br>
<br>
<b>tail -F myfifo |</b><br>
gst-launch-1.0 \<br>
-v fdsrc \<br>
! omxh264enc \<br>
! h264parse \<br>
! queue \<br>
! flvmux streamable=true \<br>
! queue \<br>
! rtmpsink location="rtmp://yyyy"<br>
<br>
<br>
Session 2 hung on 'Pipeline is PREROLLING...'. I could see session 1 worked fine as it did keep feeding data to the fifo. I am guessing maybe in session 2 I need to provide perhaps some sort of data format before it gets chaining into omxh264enc; I inserted
 "video/x-raw,width=1280, height=720,framerate=25/1" but no luck. Reason for placing a fifo is basically a trial to see whether I could manipulate the data before piping into omxh264enc, and I am stuck already in first step with fifo so perhaps such approach
 isn't going to work and I just wanted to know so I can start looking around other approach.
<br>
<br>
Many thanks and hope someone could help here. <br>
<br>
<br>
<hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Manipulate-data-between-omxmjpegdec-and-omxh264enc-with-a-fifo-on-PI-3-tp4681735.html">
Manipulate data between omxmjpegdec and omxh264enc with a fifo on PI 3?</a><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br>
</div>
</body>
</html>