omxh264enc and stream-format=(string)avc

Sérgio Agostinho sergio.r.agostinho at gmail.com
Mon Apr 13 06:08:57 PDT 2015


Don't forget the tune zero latency property on x264enc. Should help you minimize the latency. 

Sent from my Phone

> On 12 Apr 2015, at 20:22, joao machado <00jmsmachado at gmail.com> wrote:
> 
> Hi all, 
> 
> 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
> 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
> 
> The following are pipelines with low latency but with quality issues, despite the value that is use in the bitrate property.
> 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
> 
> 
> The only difference that i found was in the stream-format property. 
> 
> x264enc
> 
> video/x-h264, codec_data=(buffer)0164001effe1001d6764001eacd940b43dbff0020001b10000030001000003003c8f162d9601000568ebecb22c, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)high, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)32/27, framerate=(fraction)30/1 
>  
> omxh264enc
>  
> video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)high, level=(string)4, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)32/27, framerate=(fraction)30/1
> 
> Would be really cool to understand what is needed to change the stream format. 
> 
> Looking forward to have some clues from this community.
> 
> Thanks in advance,
> Joao M.
> <x264_omx264.png>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150413/db214b6f/attachment.html>


More information about the gstreamer-devel mailing list