omxh264enc and stream-format=(string)avc

joao machado 00jmsmachado at gmail.com
Tue Apr 21 14:22:27 PDT 2015


Hi all,

@Keith, I only made your suggestion working when I added the decodbin but
the decode side has lot of issues.

Any suggestion?

GST_DEBUG=2 gst-launch-1.0 --gst-debug=flvmux:7,rtmpsink:7,omxh264enc:7
v4l2src ! decodebin name=demux ! queue ! videorate ! videoscale method=0 !
video/x-raw, framerate=30/1, width=320, height=240 ! videoconvert !
clockoverlay ! omxh264enc inline-header=true periodicty-idr=1 ! h264parse !
video/x-h264,profile=high,framerate=30/1,target-bitrate=130000 ! flvmux
streamable=true ! queue ! rtmpsink location='rtmp://
192.168.1.4:1935/live/myStream' demux. ! queue ! progressreport

Thanks in advance,
JM.

On Tue, Apr 14, 2015 at 9:46 PM, joao machado <00jmsmachado at gmail.com>
wrote:

> Thank you for the support and suggestions.
>
> I am trying theres pipelines with wowza and the only that is not working
> is the one with x264enc encoder (the first one).
>
> GST_DEBUG=4 GST_DEBUG_FILE=gst_x264_rtmp.log gst-launch-1.0 -evm v4l2src !
> video/x-raw, framerate=30/1,width=1280,height=720  ! videorate !
> videoscale  ! videoconvert ! *x264enc* pass=pass1 threads=5 bitrate=5000
> tune=zerolatency ! video/x-h264,profile=high,framerate=30/1 ! flvmux !
> rtmpsink location='rtmp://<ip>:1935/live/myStream'
>
> These  are using the omxh264enc but only have different log levels and
> output information.
>
> *GST_DEBUG=4 *GST_DEBUG_FILE=gst_omx_rtmp.log gst-launch-1.0 -evm v4l2src
> ! video/x-raw, framerate=30/1,width=1280,height=720  ! videorate !
> videoscale  ! videoconvert ! omxh264enc  !
> video/x-h264,profile=high,framerate=30/1,target-bitrate=2000000 ! flvmux !
> rtmpsink location='rtmp://<ip>:1935/live/myStream'
>
> *GST_DEBUG=2,*rtmp*:5* GST_DEBUG_FILE=gst_omx_rtmp2.log gst-launch-1.0
> -evm v4l2src ! video/x-raw, framerate=30/1,width=1280,height=720  !
> videorate ! videoscale  ! videoconvert ! omxh264enc  !
> video/x-h264,profile=high,framerate=30/1,target-bitrate=2000000 ! flvmux !
> rtmpsink location='rtmp://1<ip>:1935/live/myStream'
>
> In This i am using the suggested h264parse followed by the required caps
> but did not worked.
>
> GST_DEBUG=3,*rtmp*:5 GST_DEBUG_FILE=gst_omx_avc.log gst-launch-1.0 -evm
> v4l2src ! video/x-raw,framerate=30/1,width=1280,height=720  ! videorate !
> videoscale  ! videoconvert ! omxh264enc  !
> video/x-h264,framerate=30/1,width=1280,height=720,profile=high,framerate=30/1,target-bitrate=2000000
> ! *h264parse !
> video/h-264,framerate=30/1,width=1280,height=720,stream-format=avc,alignment=au*
> ! flvmux  ! rtmpsink location='rtmp://<ip>:1935/live/myStream'
>
>
> I attached the log files so someone can have a look for better
> troubleshooting.
>
> Please help me solving this issue.
>
> Br,
> Joao M.
>
> On Mon, Apr 13, 2015 at 2:08 PM, Sérgio Agostinho <
> sergio.r.agostinho at gmail.com> wrote:
>
>> 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
>> <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.
>>
>> <x264_omx264.png>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>> _______________________________________________
>> 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/20150421/d8c23684/attachment.html>


More information about the gstreamer-devel mailing list