AnsweredAssumed Answered

iMX6 gstreamer multiple encode

Question asked by Andreas Eriksson on Sep 9, 2019
Latest reply on Sep 10, 2019 by igorpadykov


I have a board receiving 1920x1080p25 hdmi via the TC358743 HDMI->CSI chip, all is working well but I would like to be able to do two simultaneous H264 encodings of the stream, one for recording and one for streaming out over the network.


The pipeline below works but the framerate is very poor (~8fps), I have tried to scale down the input using the imxipuvideotransform element but it doesn't appear to make any difference.


I also tried the 352MHz VPU setting in the kernel but that didn't affect performance either.


What can I do to increase the framerate?


The pipeline:


GST_DEBUG=*:3 gst-launch-1.0 imxv4l2videosrc device=/dev/video3 fps=25 \
! queue ! imxipuvideotransform ! "video/x-raw,width=1280,height=720" ! tee name=t \
t. ! queue ! imxvpuenc_h264 bitrate=15000 gop-size=15 me-search-range=3 \
! perf ! queue ! filesink sync=false location=test.h264 \
t. ! queue ! imxvpuenc_h264 bitrate=2500 gop-size=15 me-search-range=3 ! queue \
! udpsink sync=false host= port=5000 -v


Any suggestions are appreciated!


Best regards,