<div dir="ltr">Hi,<div><br></div><div>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><br></div><div>The pipeline looks like this: (the video camera capture is 720p)</div><div><br></div><div>imxv4l2videosrc -> capsfilter1 -> videoscale -> videorate -> videoconvert -> capsfilter2 -> imxvpuenc_h264 (or x264enc) -> queue -> h264parse -> mpegtsmux -> rtpmp2tpay -> udpsink</div><div><br></div><div>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><br></div><div>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><br></div><div>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><br></div><div>I don't know the reason why it happens and how can I deal with that. Please help!</div><div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div><div><br></div></div>