khaver
Member
I have a LUA script that when the recording stops, it creates a child folder, using the date as the name, in the folder the recording is created in, then moves it to the child folder using the os_rename LUA function. This works fine if the recording is created using the "Standard" encoding settings. The os_rename function "renames" the file, using the child folder name in the new name and gives a return code of 0. If I use the ffmpeg encoder, the file is not "renamed\moved" and the function returns -1. It's as if the ffmpeg encoder is not releasing the file when it's done recording like the "standard" encoder does. In both cases I'm using the h264 nvenc encoder. I tried adding a wait of 2 seconds after the recording stops before the rename happens, but it still didn't work. Both record to mkv files.
Any thoughts?
Any thoughts?