I am using Rpi and Gstreamer to stream my HD web cam with low latency. Currently I am using two different encoders for that purpose. With the omx I am getting some video quality issues and with x264 i am getting high CPU usage and low frequency.
The following is the pipe with x264 encoder
Code: Select all
gst-launch-1.0 -vv v4l2src ! videoscale ! videorate ! videoconvert ! \
video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc bitrate=8000 ! \
h264parse ! rtph264pay pt=96 config-interval=1 ! udpsink host=$1 port=$2
Code: Select all
gst-launch-1.0 -vv v4l2src ! videoscale ! videorate ! videoconvert ! \
video/x-raw,width=720,height=480,framerate=30/1 ! omxh264enc inline-header=true periodicty-idr=1 ! \
video/x-h264,width=720,height=480,framerate=30/1,profile=high,target-bitrate=8000000,control-rate=variable,quant-i-frames=250 ! \
rtph264pay pt=96 ! udpsink host=$1 port=$2
gst-launch-1.0 -vv v4l2src \
image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! videoconvert ! \
video/x-raw,width=1280,height=720 ! videorate ! omxh264enc inline-header=true periodicty-idr=1 ! \
video/x-h264,width=1280,height=720,framerate=30/1,profile=high,target-bitrate=5000000 ! \
rtph264pay pt=96 ! udpsink host=$1 port=$2
Looking forward to have some clues from this community.
Thanks in advance,
Joao M.
