Skip to content

Instantly share code, notes, and snippets.

@cghiban
Created May 13, 2017 11:20
Show Gist options
  • Save cghiban/86cd7cca8a0baab459898f767e7d88eb to your computer and use it in GitHub Desktop.
Save cghiban/86cd7cca8a0baab459898f767e7d88eb to your computer and use it in GitHub Desktop.
#!/bin/sh
input=$1
size=$(ffmpeg $1 2>&1|grep -E "[0-9]x[0-9]"|sed -e 's/^.*\s\([0-9]*x[0-9]*\),.*/\1/')
echo "$1\t$size"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment