2014-02-08 13:51:19 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$#" -eq 0 ] || [ "$1" = "-h" ]; then
|
2014-11-12 16:15:39 +01:00
|
|
|
cat<<EOF
|
2014-02-08 13:51:19 +01:00
|
|
|
Usage: ${1##*/} FILE
|
|
|
|
${1##*/} ENTRIES FILE
|
|
|
|
|
|
|
|
Run ffprobe on FILE using shell print format. If no entry is specified, print
|
|
|
|
format and streams.
|
|
|
|
|
|
|
|
EOF
|
2014-11-12 16:15:39 +01:00
|
|
|
exit
|
2014-02-08 13:51:19 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ $# -gt 1 ]; then
|
2014-11-12 16:15:39 +01:00
|
|
|
ffprobe -v quiet -print_format flat=s=_ -show_entries "$@"
|
2014-02-08 13:51:19 +01:00
|
|
|
else
|
2014-11-12 16:15:39 +01:00
|
|
|
ffprobe -v quiet -print_format flat=s=_ -show_format -show_streams "$1"
|
2014-02-08 13:51:19 +01:00
|
|
|
fi
|