fpsdisplaysink plugin with vaapi video sink
Hi,
I try to use fpsdisplaysink in pipeline with VAsurface (accordingly set video-sink=vaapisink). And catching error when text overlay trying to write fps on VAsurface. I can fix this by adding the conversion to system memory before fpsdisplaysink ( vaapipostproc ! video/x-raw ). Maybe the text overlay plugin should be able to draw on VAsurface or setting caps video/x-raw before drawing.
gst-launch-1.0 --gst-plugin-path ${GST_PLUGIN_PATH}
filesrc location=$FILE ! decodebin ! video/x-raw(memory:VASurface) !
gvadetect inference-id=inf0 model=${MODEL} device=GPU every-nth-frame=1 batch-size=1 ! queue !
gvawatermark ! videoconvert ! fpsdisplaysink video-sink=vaapisink sync=false
call stack: ** (gst-launch-1.0:26): CRITICAL **: gst_vaapi_surface_associate_subpicture: assertion 'subpicture != NULL' failed Caught SIGSEGV #0 0x00007f311a62a74d in poll () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f311ab6038c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 (closed) 0x00007f311ab60712 in g_main_loop_run () #3 (closed) 0x00007f311b0c0d29 in gst_bus_poll (bus=bus@entry=0x1b48260, #4 (moved) 0x0000000000404bb0 in event_loop (pipeline=0x1ee00d0, #5 (closed) 0x0000000000403b0e in main (argc=23, argv=0x7ffec058f0a8) Spinning. Please run 'gdb gst-launch-1.0 26' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.