FFprobe how to

This one line command will search for all avi video files in a volume (dvd) with find, analyzes the specs with ffprobe, and filters the output through grep

find /media/cdrom/ -name '*.avi' -exec ffprobe {} \; 2>&1 | grep -F -f patternfile

Notes:

2>&1 is necessary because the ffprobe output is in stderr, not stdout

patternfile contains all the patterns to be matched by grep, one in each line.

Advertisements

One thought on “FFprobe how to

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s