example-object-tracker
example-object-tracker copied to clipboard
Saving output to file instead of display device (DevBoard)
I am new to GStreamer, and cannot find a correct way to save output to file instead of display device on Coral DevBoard. While using Raspberry Pi and USB Accelerator I managed to save output file successfully but have no luck with DevBoard and OpenGL elements in the pipeline:
I modified output queue from:
PIPELINE += """ ! decodebin ! glupload ! tee name=t
t. ! queue ! glfilterbin filter=glbox name=glbox ! {sink_caps} ! {sink_element}
t. ! queue ! glsvgoverlaysink name=overlaysink
"""
to
PIPELINE += """ ! decodebin ! glupload ! tee name=t
t. ! queue ! glfilterbin filter=glbox name=glbox ! {sink_caps} ! {sink_element}
t. ! queue ! gldownload ! videoconvert ! x264enc ! mp4mux ! filesink location=output.mp4
"""
but am now receiving error and video is not recorded:
** (detect.py:8003): CRITICAL **: 20:08:07.765: gst_video_frame_map_id: assertion 'info->finfo->format == meta->format' failed
Appreciate any advice.
Yes, I am seeing the same problem.