I'm pretty sure the sorting is doing msCam1.avi, then msCam10.avi, msCam11.avi, all the way up to msCam19, before it makes it to msCam2. I just checked, and that's how my "ls -v" command sorts things. Not sure about the rest, but that's probably gotta get fixed first. I deal with shit like this all of the time, but not in a command shell (bash). I primarily use IDL, Matlab, and Python, so I'm not terribly helpful here. Apologies! Also, I suspect you're working on distilling security cam footage, a cam which is triggered by a motion sensor apparently at least 15 times per day. Did I win?
Nope. :D It is actually some small program that accesses a webcam and saves a video after 1000 frames. They are videos of mouse behavior in a kind of place preference test that is modified to test the preference of the animals to temperature. I wanted to switch to something easier (like micromanager) but because I started all my analysis with that (and trained a neural net to do the analysis for me using these outputs) I am just sticking with it until the project is finished. I was thinking of using python instead as I know I could just use the natsort package to do the sorting and there is probably some python wrapper for ffmpeg like this one.Also, I suspect you're working on distilling security cam footage, a cam which is triggered by a motion sensor apparently at least 15 times per day. Did I win?
Nice. Mice. Yep, you could just make a wrapper script in whatever language you're comfortable renaming and/or handling everything, and pass strings to a terminal for running ffmpeg, but then bfv might kill both of us. Up to you :/. Edit: hahhaha I wrote this before I saw that he solved it :). OK bfv, now I know who to bother when my attempts at parallelizing processes for GPU architectures go up in possibly actual flames