example-object-tracker icon indicating copy to clipboard operation
example-object-tracker copied to clipboard

Saving output to file instead of display device (DevBoard)

Open acirulis opened this issue 3 years ago • 1 comments

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.

acirulis avatar Apr 19 '21 17:04 acirulis

Yes, I am seeing the same problem.

zdavatz avatar Apr 20 '21 07:04 zdavatz