When using sink type 3 with deepstream-app how big will the file get ?

If I use sink type 3 to save to file and I leave deepstream-app running for a week or more - does the file just keep getting bigger till we run out of disk space or is there some sort of control so that after a certain size it starts to write a new file file1.mp4, file2,mp4, file3.mp4, etc?
What if we wanted a new file written on each nvinfer detection for example?

Hi,

If I use sink type 3 to save to file and I leave deepstream-app running for a week or more - does the file just keep getting bigger till we run out of disk space

Yes, this is only a reference application and does not have these advanced features. However depending on the particular use-case like you mention - " a new file written on each nvinfer detection" has to implemented at the application level.