AW: omxh264enc and stream-format=(string)avc

Thornton, Keith keith.thornton at zeiss.com
Sun Apr 12 23:18:21 PDT 2015


Use h264parse follGGowed by the caps you require
Eg. H264parse ! video/h-264,stream-format=byte-stream,alignment=au

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von joao machado
Gesendet: Sonntag, 12. April 2015 20:23
An: Discussion of the development of and with GStreamer
Betreff: omxh264enc and stream-format=(string)avc

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
<http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=106455&p=734508>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150413/6ebb5e29/attachment.html>


More information about the gstreamer-devel mailing list