#!/bin/sh # https://stackoverflow.com/questions/21446804/find-if-video-file-has-audio-present-in-it if [ -z "${1}" ]; then echo "ERROR: input file argument expected" >&2 exit 1 fi ffprobe -i "${1}" -show_streams -select_streams a -loglevel error