How to efficiently replace vaapih265enc with omxh265enc?

Junyan He junyan.he at hotmail.com
Mon Nov 18 11:19:03 UTC 2019


vaapih265dec need a frame aligned input, so need a h265parse to
identify the frame. It seems can not parse the byte stream.
The output of vaapih265enc is frame aligned and directly connect to
decoder can make it work, but if you store the stream into file and
load it again, a parser is needed.



On 一, 2019-11-18 at 05:11 -0600, jeyp4 wrote:
> I am working on a h265 encode-decode pipeline.
> gst-launch-1.0 -v v4l2src device=/dev/video0 !
> 'video/x-raw,format=(string)YV12,width=1280,height=720,
> framerate=(fraction)30/1' ! vaapih265enc max-bframes=0 keyframe-
> period=30 !
> appsink // 1st app, encoding
> 
> 
> appsrc ! vaapidecode ! xvimagesink // 2nd app decoding
> Combination of above 2 pipelines works well. Needless to say that,
> above 2
> pipelines are in separate applications connected through ROS.
> 
> Problem: I want to use Jetson for the 1st(encoder) pipeline. So I
> replace
> 'vaapih265enc max-bframes=0 keyframe-period=30' with 'omxh265enc
> iframeinterval=30 quant-b-frames=0'. After this replacement I had to
> add
> 'h265parse' in 2nd decoder pipeline inorder to make application
> works. *I
> don't want to add 'h265parse' element because it results an extra
> latency of
> ~40ms in decoding.*
> How can I efficiently replace 'vaapih265enc max-bframes=0
> keyframe-period=30' with 'omxh265enc'?
> 
> 
> Additional info: I am forcing 'omxh265enc' to output byte-stream
> instead of
> hvc1, because vaapih265enc outputs byte-stream by-default. So appsink
> caps
> is following:
> [code]caps = gst_caps_new_simple("video/x-h265",
>                            "stream-format", G_TYPE_STRING, "byte-
> stream",
>                            "alignment", G_TYPE_STRING, "au",
>                            NULL);[/code]
> 
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list