I\'m using ffprobe to determine a video\'s properties and assign them as variables in a bash script for batch encoding with ffmpeg, like so:
eval $(ffprobe -v