ffmpeg generation on a temporary directory #4

Closed
opened 2021-08-24 18:37:22 +02:00 by boyska · 0 comments
Owner

If files are created directly on the output/ directory, there could be errors regarding an existing, but not correct, file.
This should be avoided creating the file, then doing a rename()

Implementation:

  • force a "tmp directory" to be set; be it TECHREC_TMP
    - create a pre_check() for that
  • inside TECHREC_TMP create a tmpdir prefixed by forge-$RECID
  • Put our file inside that folder
  • Move after processing
  • Finally, remove the directory
If files are created directly on the output/ directory, there could be errors regarding an existing, but not correct, file. This should be avoided creating the file, then doing a rename() Implementation: - force a "tmp directory" to be set; be it TECHREC_TMP - create a pre_check() for that - inside TECHREC_TMP create a tmpdir prefixed by forge-$RECID - Put our file inside that folder - Move after processing - Finally, remove the directory
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: techbloc/techrec#4
No description provided.