I tried the #2 patch given in https://devtalk.nvidia.com/default/topic/1037691/encoding-and-saving-to-a-file-with-deepstream_test1_app-c/?offset=12#5394871. But it’s for deepstream 3.0, and i want the patch for deepstream 4.0.1. Still, I am able to run it now successfully for a locally stored video but it’s not working for live stream video and this patch is saving the whole video, but I want to only save video of events.
plz share the code how can I achieve that
- while running a live stream video through RTSP/ through usb camera, this code is saving video but as soon as live stream video is stopped then deepstream stops but the video file generated gets corrupted, and it’s not playable( i tried vlc and quicktime player). plz suggest how can I stop the camera feed without getting this output file corrupted.
I also tried opencv to open the corrupted file but i getting this error
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8f9c01c000] moov atom not found
OpenCV: Couldn't read video stream from file "new1.mp4"
I also tried create_encode_file_bin() in
deepstream_sdk_v4.0_jetson\sources\apps\apps-common\src\deepstream_sink_bin.c
but it’s also saving the whole video and it also has the same issue with live-stream video.
3. what changes are needed in this patch to save the video file as well as display it?