Any linux cli peeps out there who know pipes and variables and grep maybe awk?...
I don't know how to disable the G+ text formatting so there are the strike throughs... sorry
I have a basic code here: ffmpeg i "movie01.avi" -r 1 -f image2 ./S01E01/S01E01%4d.jpeg
It will take a video and grab screenshots from it once/second and save them as jpeg.
I want to use ls or something and pipe the results in place of the "movie01.avi" AND I want to increment the episode number based on the query from ls being alphabetical/numerical.
Just in case that wasn't understood, I can say it in another way: instead of running these scripts: ffmpeg i "a01.avi" -r 1 -f image2 ./S01E01/S01E01%4d.jpeg ffmpeg i "a02.avi" -r 1 -f image2 ./S01E02/S01E02%4d.jpeg ffmpeg i "b01.mp4" -r 1 -f image2 ./S01E03/S01E03%4d.jpeg ffmpeg i "c01.mkv" -r 1 -f image2 ./S01E04/S01E04%4d.jpeg
I want to run one script to search one directory at a time. Bonus if it can mkdir the proper folder for each episode. I kind of know what I want, but I don't know syntax and cli variables very well.