Skip to content

Instantly share code, notes, and snippets.

@fernandofreamunde
Created April 12, 2022 10:30
Show Gist options
  • Select an option

  • Save fernandofreamunde/d52b9d4629279db77eb016a85cfd93ab to your computer and use it in GitHub Desktop.

Select an option

Save fernandofreamunde/d52b9d4629279db77eb016a85cfd93ab to your computer and use it in GitHub Desktop.
Nautilus Script that converts selected video files into a format supported by Davinci Resolve on linux
#!/bin/bash
# By Fernando Andrade
# v1
# Nautilus Script that converts selected video files into a format supported by Davinci Resolve on linux.
# You need FFmpeg installed to make it work
FFMPEG_SETTINGS="-codec:v mpeg4 -q:v 0 -codec:a pcm_s16le";
echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | xargs -i ffmpeg -i "{}" $FFMPEG_SETTINGS "{}.mov";
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment