How would I get the newly recorded video file path?

This vlc library is the best one I have found yet for streaming and recording rtsp videos. But I want to get the file path to the newly recorded and created mp4 file path. How would I do that? Currently, we could provide the path to the folder where we want to save the mp4 file but we don't have an option to know the file name of the new mp4 file.