Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Last active March 21, 2022 02:28
Show Gist options
  • Save Manouchehri/149eda49f9a735b40e6bf5b878d7b18f to your computer and use it in GitHub Desktop.
Save Manouchehri/149eda49f9a735b40e6bf5b878d7b18f to your computer and use it in GitHub Desktop.
find /Volumes/AIR2 -type f -mtime -1 \( -iname \*.MP4 -o -iname \*.MOV \) -print0 | parallel -0 "[ -f {.}.SRT ] && ffmpeg -nostdin -i {} -f srt -i {.}.SRT -map_metadata 0 -c:v copy -movflags +faststart -movflags use_metadata_tags -metadata 'com.apple.quicktime.make'='DJI' -metadata 'com.apple.quicktime.model'='Mavic Air 2' -metadata 'Make'='DJI' -metadata 'Camera Model Name'='FC3170' -metadata 'F Number'='2.8' -metadata 'Max Aperture Value'='2.8' -metadata 'Max Aperture Value'='2.8' -metadata 'Flash'='No Flash' -metadata 'Unique Camera Model'='DJI FC3170' -metadata 'Aperture'='2.8' -an -c:s mov_text -tag:s:s:0 tx3g -metadata:s:s:0 language=eng /Volumes/q/Movies/Drone/{/.}.MOV"
find /Volumes/Untitled -type f \( -iname \*.MP4 -o -iname \*.MOV \) -print0 | parallel -0 "[ ! -f {.}.SRT ] && ffmpeg -nostdin -i {} -map_metadata 0 -c:v copy -movflags +faststart -movflags use_metadata_tags -metadata 'com.apple.quicktime.make'='DJI' -metadata 'com.apple.quicktime.model'='Mavic Air 2' -metadata 'Make'='DJI' -metadata 'Camera Model Name'='FC3170' -metadata 'F Number'='2.8' -metadata 'Max Aperture Value'='2.8' -metadata 'Max Aperture Value'='2.8' -metadata 'Flash'='No Flash' -metadata 'Unique Camera Model'='DJI FC3170' -metadata 'Aperture'='2.8' -an /Volumes/q/Movies/Drone/{/.}.MOV"
find /Volumes/Untitled -type f -iname "*.JPG" -print0 | parallel -0 "[ ! -f {.}.DNG ] && cp -vn {} /Volumes/q/Pictures/Drone/{/}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment