wiki:PhotoVideoMetaDataAndFormatConversion

Version 3 (modified by jorrit, 4 days ago) (diff)

--

Encode videos from Android for Plex

ffmpeg -i input.mp4 -c:v libx264 -r 29.97 -s:v 1920x1080 -crf 28 -c:a aac -b:a 128K -ar 44100 output.mp4

Change Exif date

For all dates:

exiftool -AllDates="yyyy:mm:dd hh:mm:ss" <file or dir>

Correct offset

1 June 2011 04:48:49 is actually 14 Jan 2013 13:24

573 days 8 hours 36 minutes difference

Add time to all dates in exif:

exiftool -AllDates+="573 8:36:0" /path/to/files/

Find files in certain date range:

exiftool -filename -if '$datetimeoriginal =~ / 15:0[0-5]:[0-5][0-9]/' .