How can I use the following script to recursively convert a directory containing .mp4 to .png (1 frame only).
Right now it only converts the directory. It's not recursive.
for i in *.mp4
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -r 0.0033 -vf scale=-1:1024 -vcodec png "${name}.png"
done
I'm testing this on the larger directory
– Ian Arman Mar 17 '20 at 04:47Please wait - as I have to setup a temporary "storage spage" and use the copy command before I'm able to test this solution.
However - it worked perfectly (twice) on my sample directory structured as /a/1/2/3/
– Ian Arman Mar 17 '20 at 04:55I already "upvoted your answer" please let me know if there are other steps
– Ian Arman Mar 17 '20 at 09:16I suggest reviewing answers to your other questions; maybe some of them deserve to be accepted
all my other questions were asking for the same solution.
I will do as follows:
"answer my own question" with your answer, and reference your answer (this one) as a "source" .
I'm thinking this is good for both of us, because I (with 11 points) get more points and you with (38k points) get them too.
– Ian Arman Mar 18 '20 at 03:34