<div dir="ltr"><div><div><div><div>The rpicamsrc is a wrapper around raspivid. The raspivid reads raw video from the cam and encodes it for H.264 using the processors hardware encoder. So in your pipeline you do two hardware encodings and one decoding. Unless Broadcom did something really stupid, it should be possible to modify rpicamsrc (using code example from raspivid or raspiyuv) to read RGB or YUV (I420 perhaps).<br><br></div>Any particular reason you read FullHD@25fps H.264 and change it to a smaller geometry and framerate. Raspivid can take 768x432@5fps, but perhaps rpicamsrc can not?<br><br></div>BTW, an alternative to rpicamsrc can be this<br><br><div style="margin-left:40px">raspivid -n -w 1280 -h 720 -b 3000000 -t 0 -fps 25 -g 59 -pf high -ih -if cyclic -o - | \<br>es2ts -stdin -stdout -h264 | \<br>gst-launch-1.0 -v -e \<br> fdsrc fd=0 do-timestamp=1 ! tsdemux ! h264parse config-interval=0 ........<br></div><br></div>But of course, rpicamsrc, if it is flexible enough (can't test it here myself yet) is a way forward, a tleast until another module can read directly from the cam.<br><br></div>best regards<br><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 3:17 PM, Miguel Domingues <span dir="ltr"><<a href="mailto:miguelbrazaodomingues@gmail.com" target="_blank">miguelbrazaodomingues@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm using gst-rpicamsrc which provides video/x-h264 format. See: <a href="https://github.com/thaytan/gst-rpicamsrc" target="_blank">https://github.com/thaytan/gst-rpicamsrc</a><div><br></div><div>rpicamsrc ! video/x-h264, width=1920, height=1080, framerate=25/1 ! h264parse ! omxh264dec ! video/x-raw ! videorate ! video/x-raw, framerate=5/1 ! videoscale ! video/x-raw, width=768, height=432 ! omxh264enc ! video/x-h264 ! matroskamux ! multisocketsink<br></div><div><br></div><div>The above is just part of a much bigger pipeline, that have motion detection, recording and more.<br></div><div>It was written by looking at a bunch of C source files and is not tested, but the general structure is that.</div><div>I've attached the diagram of the full pipeline.</div><span class=""><font color="#888888"><div><br></div></font></span><div class="gmail_extra"><span class=""><font color="#888888"><br clear="all"><div><div>Miguel Domingues</div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Wed, Jan 27, 2016 at 1:52 PM, Peter Maersk-Moller <span dir="ltr"><<a href="mailto:pmaersk@gmail.com" target="_blank">pmaersk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi Miguel.<br><br></div>The RPI camera does not encode H.264. It delivers raw video over its CSI-2 connector. Then the PI might encode it. Are you sure you decode encoded H.264? If yes, then you encode, decode and encode again, which is impressing. Can you share your pipeline/script?<br><br></div>Best regards<span><font color="#888888"><br></font></span></div><span><font color="#888888">Peter</font></span><div><div><br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 2:24 PM, Miguel Domingues <span dir="ltr"><<a href="mailto:miguelbrazaodomingues@gmail.com" target="_blank">miguelbrazaodomingues@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Yes it does, at least I have a pipeline that decodes the rpi camera h264 source, then does some processing with the raw video, and then re-encodes using the omx h264 encoder.</div><div><br></div><div>Miguel</div></div><div class="gmail_extra"><br clear="all"><div><div>Miguel Domingues</div></div>
<br><div class="gmail_quote">On Wed, Jan 27, 2016 at 7:49 AM, zhang007z <span dir="ltr"><<a href="mailto:zhang007z@gmail.com" target="_blank">zhang007z@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My issue as title, in addition to this problem, I want to know that gst-omx<br>
also supports what chip for H.264 decoding or coding?<br>
<br>
if anybody have any idea for me, thank you in advance.<br>
<br>
<br><span><font color="#888888">
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Does-gst-omx-support-Raspberry-Pi-for-simultaneously-H-264-video-decoding-and-coding-tp4675494.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Does-gst-omx-support-Raspberry-Pi-for-simultaneously-H-264-video-decoding-and-coding-tp4675494.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div></div></div></div>