The extensions are necessary, rather than simply pulling them from the file because a folder may contain more than one type of file. If you want to modify it, go right ahead. Altogether, it should look something like this: srcExt=$1 Finally, you can create one that’s a general catch-all for your conversion options. Then, you’ll need a set for the input file extension and another for the output extension. You’ll need one for each of the input directory and the output directory. There are five variables that you’ll need. This way, it’s flexible enough that you can pass it different files in different locations, choosing your file formats as you go. This script is going to use a series of variables for file paths, extensions, and FFMpeg options. Next, open it with your favorite text editor, and set it up as a bash script.
0 Comments
Leave a Reply. |