JeffyCN / rockchip_mirrors

Mirrors of a few Rockchip BSP repositories, some others in https://github.com/JeffyCN/mirrors.
Other
13 stars 2 forks source link

RgaBlit(1465) RGA_BLIT fail: Invalid argument #41

Closed NIKovachev closed 9 months ago

NIKovachev commented 9 months ago

Hi, the pipeline runs for few seconds and it then fails with RGA_BLIT fail: Invalid argument.

(base) root@firefly:~# env|grep GST
GST_V4L2_PREFERRED_FOURCC=NV12:YU12:NV16:YUY2
GST_VIDEO_CONVERT_PREFERRED_FORMAT=NV12:NV16:I420:YUY2
GST_MPP_NO_RGA=0
GST_GL_PLATFORM=egl
GST_V4L2_USE_LIBV4L2=1
GST_INSPECT_NO_COLORS=1
GST_DEBUG_NO_COLOR=1
GST_V4L2SRC_DEFAULT_DEVICE=/dev/video-camera0
GST_V4L2SRC_RK_DEVICES=_mainpath:_selfpath:_bypass:_scale
GST_GL_API=gles2
GST_V4L2SRC_MAX_RESOLUTION=3840x2160
GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1
(base) root@firefly:~/gst-rtsp-server/examples# gst-launch-1.0 --gst-debug=4 v4l2src device=/dev/video12 ! image/jpeg,width=3840,height=2160,framerate=10/1 ! mppjpegdec format=RGB dma-feature=0 max-errors=-1 ! mpph264enc ! rtph264pay name=pay0 pt=96 ! fpsdisplaysink video-sink="fakesink" text-overlay=false -ve
0:00:00.000794793 143596   0x55702b92c0 INFO                GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.001932294 143596   0x55702b92c0 INFO                GST_INIT gstcontext.c:85:_priv_gst_context_initialize: init contexts
0:00:00.002509212 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:325:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.002786879 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:233:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.002825379 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:235:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.002870588 143596   0x55702b92c0 INFO            GST_REGISTRY gstregistry.c:1755:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.036123349 143596   0x55702b92c0 INFO            GST_REGISTRY gstregistrybinary.c:666:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.aarch64.bin in 0.033184 seconds
0:00:00.036373891 143596   0x55702b92c0 INFO            GST_REGISTRY gstregistry.c:1614:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.039693938 143596   0x55702b92c0 INFO            GST_REGISTRY gstregistry.c:1713:scan_and_update_registry: Registry cache has not changed
0:00:00.039722230 143596   0x55702b92c0 INFO            GST_REGISTRY gstregistry.c:1790:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.039734771 143596   0x55702b92c0 INFO                GST_INIT gst.c:806:init_post: GLib runtime version: 2.66.8
0:00:00.039752563 143596   0x55702b92c0 INFO                GST_INIT gst.c:808:init_post: GLib headers version: 2.66.8
0:00:00.039760146 143596   0x55702b92c0 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.039833646 143596   0x55702b92c0 INFO            GST_PIPELINE gstparse.c:344:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video12 ! image/jpeg,width=3840,height=2160,framerate=10/1 ! mppjpegdec format=RGB dma-feature=0 max-errors=-1 ! mpph264enc ! rtph264pay name=pay0 pt=96 ! fpsdisplaysink video-sink=fakesink text-overlay=false '
0:00:00.198072648 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so" loaded
0:00:00.198424982 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "v4l2src"
0:00:00.207435621 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseSrc@0x55705401e0> adding pad 'src'
0:00:00.214534799 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstrockchipmpp.so" loaded
0:00:00.214588466 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "mppjpegdec"
0:00:00.214669258 143596   0x55702b92c0 WARN                     mpp gstmpp.c:121:gst_mpp_use_rga: RGA enabled
0:00:00.215069717 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoDecoder@0x557053f9a0> adding pad 'sink'
0:00:00.215207384 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoDecoder@0x557053f9a0> adding pad 'src'
0:00:00.215501093 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "mpph264enc"
0:00:00.215925468 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoEncoder@0x5570552910> adding pad 'sink'
0:00:00.215978260 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoEncoder@0x5570552910> adding pad 'src'
0:00:00.220366975 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstrtp.so" loaded
0:00:00.220409267 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "rtph264pay"
0:00:00.220690726 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstRTPBasePayload@0x55705620a0> adding pad 'src'
0:00:00.220745559 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstRTPBasePayload@0x55705620a0> adding pad 'sink'
0:00:00.225891443 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstdebugutilsbad.so" loaded
0:00:00.225931984 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "fpsdisplaysink"
0:00:00.226210235 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstFPSDisplaySink@0x557056a0d0> adding pad 'sink'
0:00:00.226283735 143596   0x55702b92c0 INFO            GST_PIPELINE gstparse.c:344:gst_parse_launch_full: parsing pipeline description 'fakesink'
0:00:00.227565029 143596   0x55702b92c0 INFO      GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.227611404 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "fakesink"
0:00:00.227867487 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseSink@0x55705752b0> adding pad 'sink'
0:00:00.228007196 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad fakesink0:sink
0:00:00.228073404 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pipeline"
0:00:00.228338821 143596   0x55702b92c0 INFO            GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstMppJpegDec named mppjpegdec0 (0/0) with caps "image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1"
0:00:00.228377613 143596   0x55702b92c0 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "capsfilter"
0:00:00.228561655 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0x55705782a0> adding pad 'sink'
0:00:00.228619989 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0x55705782a0> adding pad 'src'
0:00:00.228664322 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2115:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.228725864 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.228757655 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.228804030 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element capsfilter0:sink
0:00:00.228833489 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.228854197 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: v4l2src0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.228895031 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link v4l2src0:src and capsfilter0:sink
0:00:00.228951906 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.229011989 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked v4l2src0:src and capsfilter0:sink, successful
0:00:00.229039114 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.229055448 143596   0x55702b92c0 INFO               GST_EVENT gstpad.c:5925:gst_pad_send_event_unchecked:<v4l2src0:src> Received event on flushing pad. Discarding
0:00:00.229105323 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element capsfilter0:src to element mppjpegdec0:(any)
0:00:00.229136823 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.229175031 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link capsfilter0:src and mppjpegdec0:sink
0:00:00.229267781 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<mppjpegdec0:src> pad has no peer
0:00:00.229374240 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: capsfilter0 and mppjpegdec0 in same bin, no need for ghost pads
0:00:00.229417406 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link capsfilter0:src and mppjpegdec0:sink
0:00:00.229482448 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<mppjpegdec0:src> pad has no peer
0:00:00.229553907 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked capsfilter0:src and mppjpegdec0:sink, successful
0:00:00.229582782 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.229612240 143596   0x55702b92c0 INFO               GST_EVENT gstpad.c:5925:gst_pad_send_event_unchecked:<capsfilter0:src> Received event on flushing pad. Discarding
0:00:00.229667657 143596   0x55702b92c0 INFO            GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstMppJpegDec named mppjpegdec0 to some pad of GstMppH264Enc named mpph264enc0 (0/0) with caps "(NULL)"
0:00:00.229702074 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element mppjpegdec0:(any) to element mpph264enc0:(any)
0:00:00.229742324 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link mppjpegdec0:src and mpph264enc0:sink
0:00:00.229790157 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<mpph264enc0:src> pad has no peer
0:00:00.229875907 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: mppjpegdec0 and mpph264enc0 in same bin, no need for ghost pads
0:00:00.229920241 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link mppjpegdec0:src and mpph264enc0:sink
0:00:00.229959032 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<mpph264enc0:src> pad has no peer
0:00:00.230030782 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked mppjpegdec0:src and mpph264enc0:sink, successful
0:00:00.230058199 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.230089408 143596   0x55702b92c0 INFO               GST_EVENT gstpad.c:5925:gst_pad_send_event_unchecked:<mppjpegdec0:src> Received event on flushing pad. Discarding
0:00:00.230139866 143596   0x55702b92c0 INFO            GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstMppH264Enc named mpph264enc0 to some pad of GstRtpH264Pay named pay0 (0/0) with caps "(NULL)"
0:00:00.230173699 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element mpph264enc0:(any) to element pay0:(any)
0:00:00.230198783 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link mpph264enc0:src and pay0:sink
0:00:00.230238449 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<pay0:src> pad has no peer
0:00:00.230291533 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: mpph264enc0 and pay0 in same bin, no need for ghost pads
0:00:00.230331491 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link mpph264enc0:src and pay0:sink
0:00:00.230368533 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<pay0:src> pad has no peer
0:00:00.230416075 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked mpph264enc0:src and pay0:sink, successful
0:00:00.230441741 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.230469741 143596   0x55702b92c0 INFO               GST_EVENT gstpad.c:5925:gst_pad_send_event_unchecked:<mpph264enc0:src> Received event on flushing pad. Discarding
0:00:00.230518450 143596   0x55702b92c0 INFO            GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstRtpH264Pay named pay0 to some pad of GstFPSDisplaySink named fpsdisplaysink0 (0/0) with caps "(NULL)"
0:00:00.230553450 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element pay0:(any) to element fpsdisplaysink0:(any)
0:00:00.230577950 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link pay0:src and fpsdisplaysink0:sink
0:00:00.230629575 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<sink:proxypad0> pad has no peer
0:00:00.230667200 143596   0x55702b92c0 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: pay0 and fpsdisplaysink0 in same bin, no need for ghost pads
0:00:00.230706575 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link pay0:src and fpsdisplaysink0:sink
0:00:00.230747409 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:4336:gst_pad_peer_query:<sink:proxypad0> pad has no peer
0:00:00.230787659 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked pay0:src and fpsdisplaysink0:sink, successful
0:00:00.230814492 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.230842492 143596   0x55702b92c0 INFO               GST_EVENT gstpad.c:5925:gst_pad_send_event_unchecked:<pay0:src> Received event on flushing pad. Discarding
Setting pipeline to PAUSED ...
0:00:00.231043451 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fpsdisplaysink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231082534 143596   0x55702b92c0 INFO        GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad fakesink0:sink
0:00:00.231118701 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2404:gst_pad_link_prepare: trying to link sink:proxypad0 and fakesink0:sink
0:00:00.231151951 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:2612:gst_pad_link_full: linked sink:proxypad0 and fakesink0:sink, successful
0:00:00.231176159 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.231232451 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fakesink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231269493 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<fakesink0> completed state change to READY
0:00:00.231305368 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<fakesink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.231369826 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<fpsdisplaysink0> child 'fakesink0' changed state to 2(READY) successfully
0:00:00.231408910 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<fpsdisplaysink0> completed state change to READY
0:00:00.231440993 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<fpsdisplaysink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.231482701 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'fpsdisplaysink0' changed state to 2(READY) successfully
0:00:00.231520618 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<pay0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231556202 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<pay0> completed state change to READY
0:00:00.231614827 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pay0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.231654785 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'pay0' changed state to 2(READY) successfully
0:00:00.231691535 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mpph264enc0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231724493 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mpph264enc0> completed state change to READY
0:00:00.231754827 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mpph264enc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.231793327 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mpph264enc0' changed state to 2(READY) successfully
0:00:00.231829202 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mppjpegdec0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231861577 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mppjpegdec0> completed state change to READY
0:00:00.231891619 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mppjpegdec0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.231928369 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mppjpegdec0' changed state to 2(READY) successfully
0:00:00.231963077 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<capsfilter0> current NULL pending VOID_PENDING, desired next READY
0:00:00.231995744 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to READY
0:00:00.232025202 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.232064286 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
0:00:00.232098702 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<v4l2src0> current NULL pending VOID_PENDING, desired next READY
0:00:00.239858215 143596   0x55702b92c0 INFO                    v4l2 v4l2_calls.c:588:gst_v4l2_open:<v4l2src0:src> Opened device 'Hama C-900 Pro UHD: Hama C-900 ' (/dev/video12) successfully
0:00:00.239936673 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<v4l2src0> completed state change to READY
0:00:00.239960590 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.240032340 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 2(READY) successfully
0:00:00.240078132 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2741:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.240113715 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.240221340 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2749:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.240292799 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fpsdisplaysink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.240398382 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fakesink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.240473049 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2984:gst_bin_change_state_func:<fpsdisplaysink0> child 'fakesink0' is changing state asynchronously to PAUSED
0:00:00.240529049 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2984:gst_bin_change_state_func:<pipeline0> child 'fpsdisplaysink0' is changing state asynchronously to PAUSED
0:00:00.240573091 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<pay0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.240695299 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<pay0> completed state change to PAUSED
0:00:00.240736424 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pay0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.240797966 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'pay0' changed state to 3(PAUSED) successfully
0:00:00.240840550 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mpph264enc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.242004301 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mpph264enc0> completed state change to PAUSED
0:00:00.242051260 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mpph264enc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.242117177 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mpph264enc0' changed state to 3(PAUSED) successfully
0:00:00.242161510 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mppjpegdec0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.242459511 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mppjpegdec0> completed state change to PAUSED
0:00:00.242519886 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mppjpegdec0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.242612344 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mppjpegdec0' changed state to 3(PAUSED) successfully
0:00:00.242678261 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.242731636 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:00:00.242765469 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.242827303 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
0:00:00.242861720 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<v4l2src0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.242947178 143596   0x55702b92c0 INFO                 basesrc gstbasesrc.c:1430:gst_base_src_do_seek:<v4l2src0> seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.243077262 143596   0x55702b92c0 INFO                    task gsttask.c:516:gst_task_set_lock: setting stream lock 0x5570542150 on task 0x55705533b0
0:00:00.243133845 143596   0x55702b92c0 INFO                GST_PADS gstpad.c:6270:gst_pad_start_task:<v4l2src0:src> created task 0x55705533b0
0:00:00.243370095 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<v4l2src0> completed state change to PAUSED
0:00:00.243448554 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.243534596 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:3020:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll
0:00:00.243618012 143596   0x55702b92c0 INFO                pipeline gstpipeline.c:529:gst_pipeline_change_state:<pipeline0> pipeline is live
0:00:00.243680721 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<pipeline0> completed state change to PAUSED
0:00:00.243772596 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
Pipeline is live and does not need PREROLL ...
0:00:00.243971513 143596   0x5570539760 INFO        GST_ELEMENT_PADS gstelement.c:1006:gst_element_get_static_pad: no such pad 'sink' in element "v4l2src0"
0:00:00.244268430 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:1270:gst_v4l2_object_fill_format_list:<v4l2src0:src> got 2 format(s):
0:00:00.244327055 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:1274:gst_v4l2_object_fill_format_list:<v4l2src0:src>   YUYV
0:00:00.244377222 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:1274:gst_v4l2_object_fill_format_list:<v4l2src0:src>   MJPG
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.245143431 143596   0x55702b92c0 INFO               GST_EVENT gstevent.c:1480:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.245288682 143596   0x55702b92c0 INFO                     bin gstbin.c:2808:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000
0:00:00.245407390 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fpsdisplaysink0> current READY pending PAUSED, desired next PLAYING
0:00:00.245482349 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2984:gst_bin_change_state_func:<pipeline0> child 'fpsdisplaysink0' is changing state asynchronously to PLAYING
0:00:00.245561390 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<pay0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.245601932 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:4560:gst_v4l2_object_probe_caps:<v4l2src0:src> probed caps: video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)1/1; video/x-raw, format=(string)YUY2, width=(int)2560, height=(int)1440, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)1/1; video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1; video/x-raw, format=(string)YUY2, width=(int)1600, height=(int)896, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1; video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1; video/x-raw, format=(string)YUY2, width=(int)1024, height=(int)576, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1; video/x-raw, format=(string)YUY2, width=(int)800, height=(int)600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1; video/x-raw, format=(string)YUY2, width=(int)800, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1; video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1; video/x-raw, format=(string)YUY2, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1; video/x-raw, format=(string)YUY2, width=(int)424, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1; video/x-raw, format=(string)YUY2, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1; image/jpeg, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)2560, height=(int)1440, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 60/1, 30/1, 25/1, 20/1, 15/1, 10/1 }; image/jpeg, width=(int)1600, height=(int)896, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)1024, height=(int)576, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)800, height=(int)600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)800, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)424, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }; image/jpeg, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }
0:00:00.245630516 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<pay0> completed state change to PLAYING
0:00:00.245867058 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pay0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.245963891 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'pay0' changed state to 4(PLAYING) successfully
0:00:00.246050808 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mpph264enc0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.246124600 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mpph264enc0> completed state change to PLAYING
0:00:00.246166600 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mpph264enc0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.246250308 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mpph264enc0' changed state to 4(PLAYING) successfully
0:00:00.246334600 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mppjpegdec0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.246404017 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<mppjpegdec0> completed state change to PLAYING
0:00:00.246471684 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<mppjpegdec0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.246556559 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mppjpegdec0' changed state to 4(PLAYING) successfully
0:00:00.246639392 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<capsfilter0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:00.246709684 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to PLAYING
0:00:00.246750809 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.246834809 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 4(PLAYING) successfully
0:00:00.246922601 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<v4l2src0> completed state change to PLAYING
0:00:00.246992893 143596   0x55702b92c0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.247053560 143596   0x55702b92c0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 4(PLAYING) successfully
New clock: GstSystemClock
0:00:00.276187731 143596   0x5570539760 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
0:00:00.277394941 143596   0x5570539760 INFO           basetransform gstbasetransform.c:1325:gst_base_transform_setcaps:<capsfilter0> reuse caps
0:00:00.277580441 143596   0x5570539760 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
0:00:00.280625738 143596   0x5570539760 INFO              mppjpegdec gstmppjpegdec.c:301:gst_mpp_jpeg_dec_set_format:<mppjpegdec0> convert from NV12 (3840x2160) to RGB (3840x2160)
0:00:00.280809488 143596   0x5570539760 WARN              video-info video-info.c:196:validate_colorimetry: color matrix RGB is only supported with RGB format, NV12 is not
0:00:00.280871905 143596   0x5570539760 WARN              video-info video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using default
0:00:00.281015114 143596   0x5570539760 WARN              video-info video-info.c:734:gst_video_info_to_caps: invalid matrix 4 for RGB format, using RGB
0:00:00.281197406 143596   0x5570539760 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event video/x-raw, format=(string)RGB, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:1:5:1, framerate=(fraction)10/1
/GstPipeline:pipeline0/GstMppJpegDec:mppjpegdec0.GstPad:src: caps = video/x-raw, format=(string)RGB, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:1:5:1, framerate=(fraction)10/1
0:00:00.281788906 143596   0x5570539760 WARN              video-info video-info.c:196:validate_colorimetry: color matrix RGB is only supported with RGB format, NV12 is not
0:00:00.281860073 143596   0x5570539760 WARN              video-info video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using default
0:00:00.281934157 143596   0x5570539760 INFO                  mppenc gstmppenc.c:664:gst_mpp_enc_set_format:<mpph264enc0> converting to aligned NV12
0:00:00.282008532 143596   0x5570539760 INFO                  mppenc gstmppenc.c:671:gst_mpp_enc_set_format:<mpph264enc0> applying NV12 3840x2160 (3840x2160)
0:00:00.283241117 143596   0x5570539760 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)High, level=(string)4, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)2:1:5:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstMppH264Enc:mpph264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)High, level=(string)4, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)2:1:5:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)High, level=(string)4, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)2:1:5:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstMppH264Enc:mpph264enc0.GstPad:sink: caps = video/x-raw, format=(string)RGB, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:1:5:1, framerate=(fraction)10/1
/GstPipeline:pipeline0/GstMppJpegDec:mppjpegdec0.GstPad:sink: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)10/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
0:00:00.388935619 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:3965:gst_v4l2_object_set_format_full:<v4l2src0:src> Set capture framerate to 10/1
0:00:00.389089036 143596   0x5570539760 INFO                    v4l2 gstv4l2object.c:3151:gst_v4l2_object_setup_pool:<v4l2src0:src> accessing buffers via mode 4
0:00:00.389869828 143596   0x5570539760 INFO          v4l2bufferpool gstv4l2bufferpool.c:557:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool0:src> increasing minimum buffers to 2
0:00:00.389979204 143596   0x5570539760 INFO          v4l2bufferpool gstv4l2bufferpool.c:570:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool0:src> reducing maximum buffers to 64
0:00:00.390217787 143596   0x5570539760 INFO          v4l2bufferpool gstv4l2bufferpool.c:570:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool0:src> reducing maximum buffers to 64
0:00:00.414924993 143596   0x5570539760 WARN          v4l2bufferpool gstv4l2bufferpool.c:814:gst_v4l2_buffer_pool_start:<v4l2src0:pool0:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.930061813 143596   0x5570539760 INFO               GST_EVENT gstevent.c:927:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.930276188 143596   0x5570539760 INFO                 basesrc gstbasesrc.c:3018:gst_base_src_loop:<v4l2src0> marking pending DISCONT
0:00:00.930636981 143596   0x5570539760 INFO                    task gsttask.c:516:gst_task_set_lock: setting stream lock 0x55705425f0 on task 0x7fb4024cb0
0:00:00.930745189 143596   0x5570539760 INFO                GST_PADS gstpad.c:6270:gst_pad_start_task:<mppjpegdec0:src> created task 0x7fb4024cb0
0:00:00.989862116 143596   0x5570539860 WARN                  mppdec gstmppdec.c:591:gst_mpp_dec_get_frame:<mppjpegdec0> MPP is not able to generate pts
rga_api version 1.8.1_[3]
0:00:01.002139053 143596   0x5570539860 INFO            videodecoder gstvideodecoder.c:3348:gst_video_decoder_clip_and_push_buf:<mppjpegdec0> First buffer since flush took 0:00:00.759912501 to produce
0:00:01.002309970 143596   0x5570539860 INFO                    task gsttask.c:516:gst_task_set_lock: setting stream lock 0x5570542a90 on task 0x7fb40303b0
0:00:01.002397178 143596   0x5570539860 INFO                GST_PADS gstpad.c:6270:gst_pad_start_task:<mpph264enc0:src> created task 0x7fb40303b0
0:00:01.099231165 143596   0x7fb4031300 INFO               GST_EVENT gstevent.c:927:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:01.099700666 143596   0x7fb4031300 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)2703053493, timestamp-offset=(uint)840473198, seqnum-offset=(uint)3833, a-framerate=(string)10
/GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:src: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)2703053493, timestamp-offset=(uint)840473198, seqnum-offset=(uint)3833, a-framerate=(string)10
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)2703053493, timestamp-offset=(uint)840473198, seqnum-offset=(uint)3833, a-framerate=(string)10
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)2703053493, timestamp-offset=(uint)840473198, seqnum-offset=(uint)3833, a-framerate=(string)10
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)2703053493, timestamp-offset=(uint)840473198, seqnum-offset=(uint)3833, a-framerate=(string)10
0:00:01.101037085 143596   0x7fb4031300 INFO               GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z2QQM6wbGqA8AEPoQAAAAwBAAAAFI8IhGoA\=\,aO4xshs\=", payload=(int)96, seqnum-offset=(uint)3833, timestamp-offset=(uint)840473198, ssrc=(uint)2703053493, a-framerate=(string)10
/GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z2QQM6wbGqA8AEPoQAAAAwBAAAAFI8IhGoA\=\,aO4xshs\=", payload=(int)96, seqnum-offset=(uint)3833, timestamp-offset=(uint)840473198, ssrc=(uint)2703053493, a-framerate=(string)10
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z2QQM6wbGqA8AEPoQAAAAwBAAAAFI8IhGoA\=\,aO4xshs\=", payload=(int)96, seqnum-offset=(uint)3833, timestamp-offset=(uint)840473198, ssrc=(uint)2703053493, a-framerate=(string)10
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z2QQM6wbGqA8AEPoQAAAAwBAAAAFI8IhGoA\=\,aO4xshs\=", payload=(int)96, seqnum-offset=(uint)3833, timestamp-offset=(uint)840473198, ssrc=(uint)2703053493, a-framerate=(string)10
0:00:01.101658044 143596   0x7fb4031300 INFO              GST_STATES gstbin.c:3446:bin_handle_async_done:<fpsdisplaysink0> committing state from READY to PAUSED, old pending PAUSED
0:00:01.101719003 143596   0x7fb4031300 INFO              GST_STATES gstbin.c:3469:bin_handle_async_done:<fpsdisplaysink0> completed state change, pending VOID
0:00:01.101792503 143596   0x7fb4031300 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<fpsdisplaysink0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z2QQM6wbGqA8AEPoQAAAAwBAAAAFI8IhGoA\=\,aO4xshs\=", payload=(int)96, seqnum-offset=(uint)3833, timestamp-offset=(uint)840473198, ssrc=(uint)2703053493, a-framerate=(string)10
0:00:01.101869503 143596   0x7fb4031300 INFO              GST_STATES gstbin.c:3455:bin_handle_async_done:<pipeline0> setting state from PAUSED to PAUSED, pending PLAYING
0:00:01.101921128 143596   0x7fb4031300 INFO              GST_STATES gstbin.c:3477:bin_handle_async_done:<pipeline0> continue state change, pending PLAYING
/GstPipeline:pipeline0/GstRtpH264Pay:pay0: timestamp = 840491579
0:00:01.102300879 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:3273:gst_bin_continue_func:<pipeline0> continue state change PAUSED to PLAYING, final PLAYING
/GstPipeline:pipeline0/GstRtpH264Pay:pay0: seqnum = 3833
0:00:01.102520796 143596   0x7fa0004de0 INFO               GST_EVENT gstevent.c:1480:gst_event_new_latency: creating latency event 0:00:00.120000000
0:00:01.102684129 143596   0x7fa0004de0 INFO                     bin gstbin.c:2808:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.120000000
0:00:01.102811005 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fpsdisplaysink0> current PAUSED pending VOID_PENDING, desired next PLAYING
0:00:01.103102088 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<fakesink0> current PAUSED pending VOID_PENDING, desired next PLAYING
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
0:00:01.103190463 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<fakesink0> completed state change to PLAYING
0:00:01.103242089 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<fakesink0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:01.103381797 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<fpsdisplaysink0> child 'fakesink0' changed state to 4(PLAYING) successfully
0:00:01.103437506 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<fpsdisplaysink0> completed state change to PLAYING
0:00:01.103482422 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<fpsdisplaysink0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:01.103629131 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'fpsdisplaysink0' changed state to 4(PLAYING) successfully
0:00:01.103694756 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<pay0> current PLAYING pending VOID_PENDING, desired next PLAYING
0:00:01.103741423 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2646:gst_bin_element_set_state:<pay0> skipping transition from PLAYING to  PLAYING
0:00:01.103771464 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'pay0' changed state to 4(PLAYING) successfully
0:00:01.103828923 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mpph264enc0> current PLAYING pending VOID_PENDING, desired next PLAYING
0:00:01.103875298 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2646:gst_bin_element_set_state:<mpph264enc0> skipping transition from PLAYING to  PLAYING
0:00:01.103922256 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mpph264enc0' changed state to 4(PLAYING) successfully
0:00:01.103976798 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<mppjpegdec0> current PLAYING pending VOID_PENDING, desired next PLAYING
0:00:01.104024340 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2646:gst_bin_element_set_state:<mppjpegdec0> skipping transition from PLAYING to  PLAYING
0:00:01.104071590 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'mppjpegdec0' changed state to 4(PLAYING) successfully
0:00:01.104124965 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<capsfilter0> current PLAYING pending VOID_PENDING, desired next PLAYING
0:00:01.104169590 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2646:gst_bin_element_set_state:<capsfilter0> skipping transition from PLAYING to  PLAYING
0:00:01.104214798 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 4(PLAYING) successfully
0:00:01.104265840 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2528:gst_bin_element_set_state:<v4l2src0> current PLAYING pending VOID_PENDING, desired next PLAYING
0:00:01.104310465 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2646:gst_bin_element_set_state:<v4l2src0> skipping transition from PLAYING to  PLAYING
0:00:01.104356549 143596   0x7fa0004de0 INFO              GST_STATES gstbin.c:2977:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 4(PLAYING) successfully
0:00:01.104406715 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2769:gst_element_continue_state:<pipeline0> completed state change to PLAYING
0:00:01.104455715 143596   0x7fa0004de0 INFO              GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 8, dropped: 0, current: 14.52, average: 14.52
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 12, dropped: 0, current: 7.45, average: 11.03
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 18, dropped: 0, current: 11.45, average: 11.17
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 22, dropped: 0, current: 7.27, average: 10.18
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 28, dropped: 0, current: 9.98, average: 10.13
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 32, dropped: 0, current: 7.58, average: 9.73
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 38, dropped: 0, current: 11.50, average: 9.97
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 42, dropped: 0, current: 7.21, average: 9.62
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 48, dropped: 0, current: 8.90, average: 9.52
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 54, dropped: 0, current: 10.25, average: 9.60
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 58, dropped: 0, current: 7.04, average: 9.36
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 64, dropped: 0, current: 11.70, average: 9.54
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 68, dropped: 0, current: 7.11, average: 9.35
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 74, dropped: 0, current: 11.03, average: 9.47
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 78, dropped: 0, current: 7.24, average: 9.32
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 84, dropped: 0, current: 8.10, average: 9.22
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 90, dropped: 0, current: 11.17, average: 9.33
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 95, dropped: 0, current: 7.49, average: 9.21
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 101, dropped: 0, current: 10.09, average: 9.26
 RgaBlit(1465) RGA_BLIT fail: Invalid argument
 RgaBlit(1466) RGA_BLIT fail: Invalid argument
fd-vir-phy-hnd-format[188, (nil), (nil), 0, 0]
rect[0, 0, 3840, 2160, 3840, 2160, 512, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
fd-vir-phy-hnd-format[189, (nil), (nil), 0, 0]
rect[0, 0, 3840, 2160, 11520, 2160, 2560, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
This output the user patamaters when rga call blit fail
0:00:12.216973436 143596   0x5570539860 WARN                     mpp gstmpp.c:251:gst_mpp_rga_do_convert: failed to blit

(gst-launch-1.0:143596): GStreamer-WARNING **: 10:57:02.069: free_priv_data: object finalizing but still has 1 parents (object:0x7fb402e690)

(gst-launch-1.0:143596): GStreamer-CRITICAL **: 10:57:02.069: gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
^C
(base) root@firefly:~# 
NIKovachev commented 9 months ago

the output looks like this:

20231220_131302

bluesky2319 commented 9 months ago

Previously, I had a similar error in Ubuntu, but the issue was fixed after switching to Debian 11. If you use Ubuntu, you can test Debian.

NIKovachev commented 9 months ago

I'm running stock Debian 11. what could be the problem?

bluesky2319 commented 9 months ago

The problem can be related to RGA. Ensure the RGA driver and library (librga.so, in /usr/lib/aarch64-linux-gnu) are installed in your system. If it's installed the issue can be resolved by updating them. https://github.com/airockchip/librga

NIKovachev commented 9 months ago

I created a new bug for RGA: https://github.com/airockchip/librga/issues/60

there is an option to change the format from RGB to NV12 or similar but the pipeline errors in that case again.

NOTE: before I hit ^C the pipe hangs

root@firefly:~# export GST_MPP_NO_RGA=1
root@firefly:~# gst-launch-1.0 --gst-debug=2 v4l2src device=/dev/video12 ! image/jpeg,width=3840,height=2160,framerate=30/1 ! mppjpegdec format=NV12 dma-feature=1 max-errors=-1 ! mpph265enc ! fpsdisplaysink video-sink="fakesink" text-overlay=false -ve
0:00:00.259724930 239311   0x5566f02180 WARN                     mpp gstmpp.c:126:gst_mpp_use_rga: RGA disabled by env (GST_MPP_NO_RGA)
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstMppJpegDec:mppjpegdec0.GstPad:src: caps = video/x-raw(memory:DMABuf), format=(string)NV12, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)2:4:5:1, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstMppH265Enc:mpph265enc0.GstPad:src: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1, chroma-site=(string)mpeg2, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1, chroma-site=(string)mpeg2, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1, chroma-site=(string)mpeg2, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1, chroma-site=(string)mpeg2, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstMppH265Enc:mpph265enc0.GstPad:sink: caps = video/x-raw(memory:DMABuf), format=(string)NV12, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)2:4:5:1, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstMppJpegDec:mppjpegdec0.GstPad:sink: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = image/jpeg, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, parsed=(boolean)true, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
0:00:00.430072606 239311   0x5566eedb60 WARN          v4l2bufferpool gstv4l2bufferpool.c:814:gst_v4l2_buffer_pool_start:<v4l2src0:pool0:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.793314357 239311   0x5566eee060 WARN                  mppdec gstmppdec.c:591:gst_mpp_dec_get_frame:<mppjpegdec0> MPP is not able to generate pts
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 19, dropped: 0, current: 36.59, average: 36.59
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 35, dropped: 0, current: 30.07, average: 33.29
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 50, dropped: 0, current: 29.99, average: 32.23
.
.
.
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 949, dropped: 0, current: 29.90, average: 30.11
0:00:32.522770313 239311   0x5566eee060 ERROR           mppallocator gstmppallocator.c:166:gst_mpp_allocator_import_mppbuf:<mppallocator0> failed to get dmafd

(gst-launch-1.0:239311): GStreamer-CRITICAL **: 09:47:21.490: gst_mini_object_set_qdata: assertion 'object != NULL' failed
0:00:32.524520613 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:896:gst_mpp_enc_convert:<mpph265enc0> failed to convert frame
0:00:32.524605488 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:1149:gst_mpp_enc_handle_frame:<mpph265enc0> not negotiated
0:00:32.524645155 239311   0x5566eee060 WARN                  mppenc gstmppenc.c:1153:gst_mpp_enc_handle_frame:<mpph265enc0> can't handle this frame
0:00:32.559221485 239311   0x5566eee060 ERROR           mppallocator gstmppallocator.c:166:gst_mpp_allocator_import_mppbuf:<mppallocator0> failed to get dmafd

(gst-launch-1.0:239311): GStreamer-CRITICAL **: 09:47:21.526: gst_mini_object_set_qdata: assertion 'object != NULL' failed
0:00:32.561445453 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:896:gst_mpp_enc_convert:<mpph265enc0> failed to convert frame
0:00:32.561555704 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:1149:gst_mpp_enc_handle_frame:<mpph265enc0> not negotiated
0:00:32.561575829 239311   0x5566eee060 WARN                  mppenc gstmppenc.c:1153:gst_mpp_enc_handle_frame:<mpph265enc0> can't handle this frame
0:00:32.602139853 239311   0x5566eee060 ERROR           mppallocator gstmppallocator.c:166:gst_mpp_allocator_import_mppbuf:<mppallocator0> failed to get dmafd

(gst-launch-1.0:239311): GStreamer-CRITICAL **: 09:47:21.569: gst_mini_object_set_qdata: assertion 'object != NULL' failed
0:00:32.605662912 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:896:gst_mpp_enc_convert:<mpph265enc0> failed to convert frame
0:00:32.605855704 239311   0x5566eee060 ERROR                 mppenc gstmppenc.c:1149:gst_mpp_enc_handle_frame:<mpph265enc0> not negotiated
0:00:32.605888371 239311   0x5566eee060 WARN                  mppenc gstmppenc.c:1153:gst_mpp_enc_handle_frame:<mpph265enc0> can't handle this frame
0:00:34.591925602 239311   0x5566eedb60 ERROR                 mppdec gstmppdec.c:1075:gst_mpp_dec_handle_frame:<mppjpegdec0> failed to send packet
0:00:34.591971394 239311   0x5566eedb60 WARN                  mppdec gstmppdec.c:1079:gst_mpp_dec_handle_frame:<mppjpegdec0> can't handle this frame
0:00:34.597338669 239311   0x5566eedb60 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: Internal data stream error.
0:00:34.597369003 239311   0x5566eedb60 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason error (-5)
0:00:34.597679046 239311   0x5566eee060 WARN                  mppdec gstmppdec.c:963:gst_mpp_dec_loop:<mppjpegdec0> no matched frame
Execution ended after 0:00:34.318578316
Setting pipeline to NULL ...
Freeing pipeline ...
root@firefly:~# ^C
root@firefly:~# 
NIKovachev commented 9 months ago

hi @JeffyCN , how can we solve the last issue gst_mpp_enc_convert:<mpph265enc0> failed to convert frame? Do I need to create a new bug for it?

JeffyCN commented 9 months ago

mpp gstmpp.c:126:gst_mpp_use_rga: RGA disabled by env (GST_MPP_NO_RGA

the rga is disabled by this environment.

i don't know much about rga, if the driver reports error, maybe try to ask the rga maintainer(or committor).

there're many versions of librga and the rga driver, maybe they are not match with each other

NIKovachev commented 9 months ago

the last error I pasted here is not related to RGA. Let me create a new bug, this one is for RGA team indeed.

huntlin commented 9 months ago

该问题可能与 RGA 有关。确保系统中已安装 RGA 驱动程序和库(librga.so,位于 /usr/lib/aarch64-linux-gnu 中)。如果已安装,则可以通过更新来解决问题。 https://github.com/airockchip/librga

hello,To update the so library of RGA, you only need to replace the files in the /usr/lib/aarch64-linux-gnu directory?

JeffyCN commented 9 months ago

normally yes, unless there're some update in headers which requires recompiling.

there are multiple versions of rga drivers and libraries, you can also try other versions of them.

or provide your chip and driver/library commit number to the maintainer to confirm.

huntlin commented 9 months ago

通常是的,除非标头中有一些更新需要重新编译。

rga 驱动程序和库有多个版本,您也可以尝试其他版本。

或者向维护人员提供您的芯片和驱动程序/库提交号以确认。

At present, my so library can be used normally after local compilation, so I replaced the file in the /usr/lib/aarch64-linux-gnu directory and re-executed the program, but the log is still printed with the old version of the rga_api, how should I modify the version correctly?

JeffyCN commented 9 months ago

maybe there is another librga somewhere(maybe /usr/lib/?)

you can try to search it in your rootfs and replace them all, or delete the others.

'LD_DEBUG=libs ' may tell more about which librga been loaded.

huntlin commented 9 months ago

也许某个地方还有另一个 librga(也许 /usr/lib/?)

你可以尝试在你的rootfs中搜索它并替换它们,或者删除其他的。

'LD_DEBUG=libs' 可能会告诉您有关加载哪个 librga 的更多信息。

Thank you for your reply, after I replaced it here, it worked fine