how can one make this script work with both input usage scenarios below?
#1 ./script.sh #2 ./script.sh input.file
contents of script.sh
for i in *.mp4; do ffmpeg -i "$i" "${i%.*}.mp4
scenario #1
is the only one working right now because the file contents above specifically allow one to run script.sh
within a directory where all .mp4
files will be targeted.
is it possible to also target an individual file rather than the whole directory, however still keep the other usage scenario #1
available at all times to use.
UPDATE: I do not see how this is related the the question he is commenting about.