Last updated: 2015-08-11
exiftool -partofset -directory -filename -r -if '$partofset =~ /^\d\/\d$$/ and $directory =~ /(?<!\d)$$/i and $filetype eq "MP3"' .
| # Create a new caption file | |
| ~~~~~~~~ | |
| ffmpeg -i captions.srt captions.ass | |
| ~~~~~~~~ | |
| # Add subtitles to main video without changing it | |
| ~~~~~~~~ | |
| ffmpeg -i video.mp4 -vf "subtitles=captions.ass:force_style='OutlineColour=&H80000000,BorderStyle=4,Outline=1,Shadow=0,MarginV=20'" subtitled-video.mp4 |
| from osgeo import ogr | |
| data = ogr.Open('/path/to/vector/file') | |
| print('Data Name:', data.GetName()) | |
| # get a layer with GetLayer('layername'/layerindex) | |
| for layer in data: | |
| print('Layer Name:', layer.GetName()) | |
| print('Layer Feature Count:', len(layer)) |
Last updated: 2015-08-11
exiftool -partofset -directory -filename -r -if '$partofset =~ /^\d\/\d$$/ and $directory =~ /(?<!\d)$$/i and $filetype eq "MP3"' .
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"