I work with DeepStream 5.0 on nano jetson. I would like to save about 30 seconds of the camera feed into a file.
I have the pipeline working and close it with ctrl+c. However this cause the file to be unplayable.
I saw I was supposed to send an EoS signal to the filesink before closing. Therefore, I tried the following:
/* Wait till pipeline encounters an error or EOS */ g_print ("Running...\n"); g_main_loop_run (loop); g_usleep(300000000); gst_element_send_event (sink, gst_event_new_eos ()); gst_bus_poll(bus,GST_MESSAGE_EOS,GST_CLOCK_TIME_NONE);
It is however not working. How can I make it work?
Thanks in advance,