GStreamer nvoverlaysink error

Hi~~~

When I tested gst overlay sink with 4.1.1_DP, I meet a overlay.yuv420 Error.

Could you check below’s process and issue ?

1. This is my setting on Host PC. (just use default setting)
$ git clone GitHub - jtagxhub/jetpack-agx-build: build assistant scripts for Nvidia Jetson platforms: AGX Xavier, TX2, TX1 and Nano build
$ source build/envsetup.sh
TARGET_DEV : Jetson-Xavier
TARGET_RELEASE : 4.1.1_DP
Target device login user : nvidia
Target device login password : nvidia
Target device IP : 192.168.0.103
$ l4tout_setup
$ flash

  1. Gstreamer Command on Xavier board.
    1st command terminal
    $ gst-launch-1.0 playbin uri={video file} video-sink=“nvoverlaysink overlay-x=0 overlay-y=0 overlay-w=900 overlay-h=500 overlay=1”
    2nd command terminal : (running video file in 1st command terminal)
    $ gst-launch-1.0 playbin uri={video file} video-sink=“nvoverlaysink overlay-x=900 overlay-y=500 overlay-w=900 overlay-h=500 overlay=1”

cat log.txt (1st terminal )
gst-launch-1.0 playbin uri=file:///home/nvidia/b.ogv video-sink=“nvoverlaysink overlay-x=900 overlay-y=500 overlay-w=900 overlay-h=500 overlay=1”
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstPulseSinkClock
^C
handling interrupt.
Interrupt: Stopping pipeline …
Execution ended after 0:00:24.597650792
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

cat error.txt (2nd command terminal)
gst-launch-1.0 playbin uri=file:///home/nvidia/b.ogv video-sink=“nvoverlaysink overlay-x=900 overlay-y=500 overlay-w=900 overlay-h=500 overlay=1”
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
New clock: GstPulseSinkClock
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOggDemux:oggdemux0: Internal data stream error.
Additional debug info:
gstoggdemux.c(4936): gst_ogg_demux_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOggDemux:oggdemux0:
streaming stopped, reason error (-5)
Execution ended after 0:00:00.030533233
Setting pipeline to PAUSED …
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
Setting pipeline to READY …
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
NvxBaseWorkerFunction[2579] comp OMX.Nvidia.std.iv_renderer.overlay.yuv420 Error -2147479552
Setting pipeline to NULL …
Freeing pipeline …

b.ogv is /usr/share/example-content/Ubuntu_Free_Culture_Showcase/‘Alberto Mardegan - Selfie del futuro.ogv’ in Xavier board.

Hi pigbrian,

I am suspecting nvoverlaysink parameters not proper in both the pipeline.
In the 1st pipeline, you want to access overlay 1 (overlay=1)
In the 2nd pipeline, you want to access overlay 1 (overlay=1) ie. giving an error

Please change the 2nd pipeline with overlay=2.
Hope this will solve your problems.

Thanks,
Ritesh Kumar

Thank you for your comment.
I already tested with overlay=2 option.
But, the result is same.

Hi pigbrian,
please once verify that all overlays enabled in Jetson Xavier.

How to enable six overlays in Xavier:-
https://devtalk.nvidia.com/default/topic/1043327/jetson-agx-xavier/how-to-enable-six-overlays-in-xavier-/post/5295487/#5295487

Thanks,
Ritesh Kumar

thank you Kumar,

This issue is solved. nvoverlaysink is working well.