Unix for Artists: Fun with FFMPEG is a workshop hosted by the Echo Park Film Center.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
598 B

#!/bin/bash -e
#####################################################
#
# "ffprobe" is an application that comes bundled with
# the ffmpeg installation. It will print file
# information about the streams within video and audio
# files.
#
# Usage: bash ffmpeg/basic/info.sh <file>
#
#####################################################
if [ "${1}" == "" ]; then
echo "Please include a path to a file as the first argument"
exit 1
fi
if [ "${2}" != "json" ]; then
ffprobe -v quiet -show_format -show_streams "${1}"
else
ffprobe -v quiet -print_format json -show_format -show_streams "${1}"
fi