<div dir="ltr">Hello!<div><br></div><div style>Brief introduction to my problem:</div><div>I have IP camera, which sends h264 encoded video via RTSP. I managed to successfully receive that stream and display it using GStreamer. Further, I managed to save h264 encoded video directly to file (without decompresion), and its working quite nice. However, my purpose is to cyclically write videos on disk (cyclic buffor). I am using OSSBuild for Windows and I am trying to do this programatically. When disk is full, the oldest recorder file should be deleted. It works fine, when the oldest file was written by gstreamer based application,which was closed and then started again. But when i ran my app for whole night, it has crashed, because the oldest recorder file was still open in that app. </div>
<div><br></div><div><br></div><div style>My question (and problem) is: when does Gstreamer release lock on files? </div><div style><br></div><div style>Clearly, it is not, when the file is not being recorded any more. I can open the file (i.e. in VLC), but I cannot delete it, even if it is not still being write (it's size is fixed), the handle is not being released. How can I force GStremaer to release that file (the pipeline, which has created it, does not exists anymore, when i want to delete it)? It is being released when app is closed...</div>
<div style><br></div><div style><br></div><div><div><div>Best Regards<br>Pawe³ Matyszok</div>
</div></div></div>