This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
exiftoolform=$(yad --title "ExifTool" --form --width=700 --columns=2 --field="Artist:" --field="Copyright:" --field="City:" --field="State:" --field="Country:" --field="Creator:" --field="Rights:" --field="By-line:" --field="Headline:" --field="Description:" --field="Keywords 1:" --field="Keywords 2:" --field="Keywords 3:" --field="Keywords 4:" --field="Keywords 5:" --field="Keywords 6:" --field="Keywords 7:" --field="Keywords 8:" "John Doe" "(c) 2015 John Doe" "Chicago" "Illinois" "United States" "John Doe" "(c) 2015 John Doe" "John Doe") | |
OldIFS="$IFS"; IFS='|' # Save the old IFS value to OldIFS and give the new value to IFS. | |
read ARTIST COPYRIGHT CITY STATE COUNTRY CREATOR RIGHTS BYLINE HEADLINE DESCRIPTION KEYWORDSONE KEYWORDSTWO KEYWORDSTHREE KEYWORDSFOUR KEYWORDSFIVE KEYWORDSSIX KEYWORDSSEVEN KEYWORDSEIGHT <<< "$exiftoolform" | |
IFS="$OldIFS" # Give IFS back its original value. | |
exiftool -artist="$ARTIST" -copyright="$COPYRIGHT" -city="$CITY" -state="$STATE" -country="$COUNTRY" -creator="$CREA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Increment and count the number of files passed to the script | |
# for later use in the progress dialog box | |
n=1 | |
# Ask for the destination graphic image format to change to | |
# Next line is entered all on one line | |
EXT=`zenity --title="Convert Image" --entry --text="Please | |
enter the image format to convert to (e.g. PNG, JPG, TIFF, WEBP etc.)"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!# /bin/bash | |
ConvertTo=$(zenity --list --column="Select One" --title="Video | |
Converter" --height=300 --width=250 --text="Select the format | |
to convert to" avi 3gp flv webm mov mp4 mkv asf wmv mpg mov) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in ./*.mp4; do | |
ffmpeg -i "$f" -vf scale=420:-1 -t 10 -r 10 "${f%.*}.gif" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
kb=$((2**10)) | |
mb=$((2**20)) | |
for file in $@; do | |
if [ ! -e $file ]; then | |
continue | |
fi | |
b1=`ls -l $file | cut -d" " -f5` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=1; d=1; mkdir -p dir_${d} | |
for file in * | |
do | |
if [ $c -eq 600 ] | |
then | |
d=$(( d + 1 )); c=0; mkdir -p dir_${d} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# $Rev: 583 $ $Date: 2014-05-18 18:50:42 +0200 (dg, 18 mai 2014) $ | |
# | |
# vcs | |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos | |
# | |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera | |
# | |
# This program is free software; you can redistribute it and/or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# $Rev: 583 $ $Date: 2014-05-18 18:50:42 +0200 (dg, 18 mai 2014) $ | |
# | |
# vcs | |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos | |
# | |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera | |
# | |
# This program is free software; you can redistribute it and/or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT=$(yad --width=600 --height=400 --file-selection --file-filter='*.mp3 *.mkv *.mp4 *.avi *.flv') | |
eval $(yad --width=400 --form --field=start --field=end --field=output:SFL "00:00:00.000" "00:00:00.000" "${INPUT/%.*}-out.${INPUT##*.}" | awk -F'|' '{printf "START=%s\nEND=%s\nOUTPUT=\"%s\"\n", $1, $2, $3}') | |
[[ -z $START || -z $END || -z $OUTPUT ]] && exit 1 | |
DIFF=$(($(date +%s --date="$END")-$(date +%s --date="$START"))) | |
OFFSET=""$(($DIFF / 3600)):$(($DIFF / 60 % 60)):$(($DIFF % 60)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#expecting 2 args: | |
# function display or delete | |
# a directory containing images | |
ZENITY_X=0 | |
ZENITY_Y=0 | |
ZENITY_W=500 | |
ZENITY_H=400 |
NewerOlder