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/>