I have multiple folders that contain multiple videos. I need the videos in each folder to be concatenated into one video.
I am using one bash loop to create a list of files that need to be concatenated and a second bash loop to run ffmpeg over all the folders.
The first bash loop is working fine: https://pastebin.com/UUQgyRvD
The second loop ( https://pastebin.com/TyhCGZLA ) , however, only runs ffmpeg on the first file found and then stops. When I then go and delete the mylist.txt file of the already concatenated video, it manages to run the second file.
So the loop is working, partially, but the part that calls ffmpeg is not being repeated. I have no clue what I am doing wrong here...