This file contains hidden or 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 | |
## Make list of video files | |
TMPFILE=$(mktemp -p .) || exit 1 | |
for file in *.{mp4,MP4} | |
do | |
echo file \'$file\' >> $TMPFILE | |
done |
This file contains hidden or 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
ffmpeg \ | |
-i dance_addition.mp4 \ | |
-i dance_and.mp4 \ | |
-i dance_average.mp4 \ | |
-i dance_blend.mp4 \ | |
-i dance_burn.mp4 \ | |
-i dance_darken.mp4 \ | |
-i dance_difference.mp4 \ | |
-i dance_divide.mp4 \ | |
-i dance_dodge.mp4 \ |
This file contains hidden or 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
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=addition" dance_addition.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=grainmerge" dance_grainmerge.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=and" dance_and.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=average" dance_average.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=burn" dance_burn.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=darken" dance_darken.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=difference" dance_difference.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=grainextract" dance_grainextract.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=divide" dance_divide.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=dodge" dance_dodge.mp4 |
This file contains hidden or 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 | |
# Script for converting a folder of MXF video files to different to a single MP4 file. | |
# Alexander Refsum Jensenius, RITMO, University of Oslo | |
# v0.1 2019-11-03 | |
# Find and move all MXF files to the "root" (where the script is run from) | |
find . -name "*.MXF" -exec mv {} . ";" | |
# Create list of files to be used for concatenation |
This file contains hidden or 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 | |
# Script for converting MXF video files to different to other file formats. | |
for i in *.MXF; do | |
if [ -e "$i" ]; then | |
file=`basename "$i" .MXF` | |
# MP4 file with default settings + deinterlacing | |
ffmpeg -i "$i" -c:v libx264 -vf yadif "$file.mp4" |
This file contains hidden or 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 i in *.jpg; | |
do | |
name=`echo $i | cut -d'.' -f1`; | |
convert "$i" \ | |
\( +clone -threshold -1 -negate -fill white -draw "circle 100,100 100,0" \) \ | |
-alpha off -compose copy_opacity -composite $name.png; | |
done |
This file contains hidden or 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
find . *.jpg -exec jhead -autorot {} \; |
This file contains hidden or 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
# Based on: https://unix.stackexchange.com/questions/294341/shell-script-to-separate-and-move-landscape-and-portrait-images | |
# make directories | |
mkdir portraits | |
mkdir landscapes | |
# Check that all images have correct rotation | |
jhead -autorot *.jpg | |
jhead -autorot *.JPG |
This file contains hidden or 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
ffmpeg -i input.mp4 -ss 01:10:27 -to 02:18:51 -c:v copy -c:a copy output.mp4 |
This file contains hidden or 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
find . -name "*.eps" -exec epstopdf {} ";" |
NewerOlder