
Note that LogErr in the script above is another function - all it does is take the passed string and write it to a specified log file.

Oput=$(ffprobe -loglevel warning "$vfn" - 2>&1) # cause ffmpeg to exit with an error code set. We set a flag so that any error encountered will # actually attempt to verify that), and hands it off to ffprobe to do some basic # Takes an input file name (presumably for a video file, but the function doesn't Obviously I am missing something blindingly obvious here. I have tried moving the arguments into an array and passing (doesn't solve the problem). I have tried moving the arguments to ffprobe inside the quotes for the filename (doesn't solve the problem).

When I execute it, I always get a returned string from the ffprobe command containing an error in the form: Argument '-' provided as input filename, but '/media/Testing/Sorted/badfile.mp4' was already specified. I have the following function in a bash script.
