Mint Serena 64 bit using the Mate desktop environment. Most of the following scripts will run on this machine, although some have only been tested with the Gnome desktop. Extra software requirements can be met by the Ubuntu and safe PPA repositories. Scripts may be re-written or added to from time to time, the date serves as the version number. Syntax highlighting on these pages is provided by GVim's "Convert to HTML" option.

Media file exif data extraction

#!/bin/bash
# Filename: EXIFdata
# Author: robz
# Version: 230910
# Get media file atributes, works with audio, video and photo.
# You'll need this "libimage-exiftool-perl" and "most"
# Put this script in /home/<user>/.gnome2/nautilus-scripts
# Right click on the file(s) you want data from, goto Scripts > EXIFdata.
# The "-r" switch allows to recurse through a selected directory.
# Check out "man exiftool" for full explanation of switches (extensive).

QUOTED=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" |\
    awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
gnome-terminal --title="EXIF data extractor" -x bash -c\
    "exiftool -r -m $QUOTED | most"

No comments: