I'm struggling to articulate this question- but I'm after a way of searching for files inside any directory that may exist in my search area (ie. not specifying the name of the directory), then using that directory name as a burn in on the files I have inside it, using ffmpeg?
So for example, say I had a folder with my script inside it. I've just created a folder called "day 01" inside the folder with the script, with some mxf files inside that. If I run my script, I want it to find the mxf files inside "day 01" then run ffmpeg and have that write "day 01" as a burn in on the picture of those mxf files.
I know how to do the burn in, I just don't know how to reference the directory "day 01".
Hope that makes sense. Thanks in advance.
question from:
https://stackoverflow.com/questions/65853898/how-do-i-search-for-files-inside-a-directory-then-burn-the-name-of-that-directo 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…