<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Why would you want to NOT use HW encoder, if it is available and working? As it was pointed out, CPU can't handle encoding the stream in realtime from source such as as a camera. (thats why there is HW encoder)<div class=""><br class=""></div><div class=""><div class="">Tõnu</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 13 Oct 2016, at 14:58, 张若 <<a href="mailto:zr92zr@gmail.com" class="">zr92zr@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Anyway, thanks!<div class="">But.. the board has both HW and SW 264 encoder on it. There is no problem to use x264enc.</div><div class="">The problem is with videorate. If I use videorate and x264enc without setting drop-only as true, there will be problems while streaming. But that works fine without videorate, or works fine with using imxvpuenc_h264 instead.</div><div class="">I don't know why. I think that could be some problems with framerate, either with camera or encoder.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-10-13 14:26 GMT+02:00 Nuno Mota <span dir="ltr" class=""><<a href="mailto:mundumelga@gmail.com" target="_blank" class="">mundumelga@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="">It is quite simple.</p><p dir="ltr" class="">imxvpuenc_h264 uses imx hardware encoder.<br class="">
x264enc uses the cpu, so It's software encoder. You wont be able to use it on an ARM CPU. Imx just cant handle it. </p><p dir="ltr" class="">Check "top" and you will se the cpu load/usage...<br class="">
</p>
<div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Oct 13, 2016 1:17 PM, "张若" <<a href="mailto:zr92zr@gmail.com" target="_blank" class="">zr92zr@gmail.com</a>> wrote:<br type="attribution" class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">I found the solution myself. But still not understand the reason thoroughly.<div class=""><br class=""></div><div class="">The problem is with the videorate, it needs to be set with drop-only=true, especially for the board. Otherwise, it seems to duplicate several frames and cause a large delay as well. </div><div class="">But I still don't why does this happen? and why there is no problem while using imxvpuenc_h264?</div><div class=""><br class=""></div><div class="">Hope somebody could explain that!</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-10-13 11:32 GMT+02:00 张若 <span dir="ltr" class=""><<a href="mailto:zr92zr@gmail.com" target="_blank" class="">zr92zr@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I am working on the imx6 board. There are two h264/x264 encoder, HW encoder named imxvpuenc_h264 and SW encoder named x264enc. I tried both of them. But problem appears.</div><div class=""><br class=""></div><div class="">The pipeline looks like this: (the video camera capture is 720p)</div><div class=""><br class=""></div><div class="">imxv4l2videosrc -> capsfilter1 -> videoscale -> videorate -> videoconvert -> capsfilter2 -> imxvpuenc_h264 (or x264enc) -> queue -> h264parse -> mpegtsmux -> rtpmp2tpay -> udpsink</div><div class=""><br class=""></div><div class="">While using imxvpuenc_h264, there is no large latency, but using x264enc will cause a really large latency (sometimes around 10s and frame stucks).</div><div class=""><br class=""></div><div class="">When I set "capsfilter2" to lower resolution such as 320x240, the latency comes much shorter for x264enc. On the other hand, if I remove the "videoscale -> videorate -> videoconvert" part while using x264enc, there almost no latency for the streaming.</div><div class=""><br class=""></div><div class="">For x264enc, I set "tune=zerolatency, key-int-max=32, bframes=0, speed-preset=1, bitrate=4000 (may changes from 1000 to 10000)".</div><div class=""><br class=""></div><div class="">I don't know the reason why it happens and how can I deal with that. Please help!</div><div class=""><br class=""></div><div class="">Thanks in advance!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
</blockquote></div><br class=""></div>
<br class=""></div></div>______________________________<wbr class="">_________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" class="">gstreamer-devel@lists.freedesk<wbr class="">top.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/<wbr class="">mailman/listinfo/gstreamer-dev<wbr class="">el</a><br class="">
<br class=""></blockquote></div></div>
<br class="">______________________________<wbr class="">_________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.<wbr class="">freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/<wbr class="">mailman/listinfo/gstreamer-<wbr class="">devel</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class=""><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></body></html>