Show Media Data

Tags: thunar custom action, ffmpeg, zenity
November 11, 2015

To learn how to use Thunar Custom Actions click here.

This custom action is similar to the popular program Mediainfo; it will show some basic specifications of any audio/video file. Though it’s best suited to audio/video files, it can identify image resolutions. Zenity must be installed to see the display.

Media Data - Thunar Custom Action

ffmpeg -i %f 2>&1 | grep -e Stream -e Duration -e Input | zenity --width=800 --height=240 --text-info --title %n

Under Appears if selection contains make sure Audio Files and Video Files (and Image Files if wanted) is checked.