Provide script to convert video footage for Davinci Resolve 14 Free (Linux).
The free version of Davinci on linux has not much support for codecs. I found a working solution by testing out lots of different container format / audio codec / video codec combinations.
- MPEG-4 Part2 Video Codec
- PCM 16bit little endian signed Audio Codec
- in MOV container
This script simplifies the conversion of footage for Davinci Resolve.
Currently, this project is at an early stage. More options are likely to come up.
If you miss a certain feature, don't hesitate to open an issue that describes your needs
sh -c "$(curl -fsSL https://raw.githubusercontent.com/tpraxl/convert-footage/master/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/tpraxl/convert-footage/master/install.sh -O -)"
Use the tool as follows:
You can find the usage below.
convert-footage will not convert files twice and it will not convert your conversion results, so running it twice in the same folder will only trigger conversion when you have renamed the conversion results or when there is new footage.
############################################################################
#
# Version 1.2.0
#
# Usage: convert-footage [options] file-or-folder
#
# Convert file to Davinci Resolve 14 compatible format.
#
# Options:
# -h ... help message
# -q n ... quality of the encoded video. Defaults to 1 for
# best quality.
# -e ... show all example usages
#
# Examples:
#
# Convert folder ../myvideos with best quality (default)
# convert-footage ../myvideos
#
# Please use convert-footage -e for more examples.
#
############################################################################
# Examples:
# Convert current folder with best quality (default)
convert-footage .
# Convert the current folder with quality 2
convert-footage -q 2 .
# Convert folder ../myvideos with best quality (default)
convert-footage ../myvideos
# Convert file ./myvideo.mp4 with quality 2
convert-footage -q 2 ./myvideo.mp4
# Show help
convert-footage -h
There's a lot to do in order to make the scripts more convenient. Contributions are welcome. The most important TODOs are listed below:
- Perform a sanity check on start (check if all requirements are installed)
- Provide more flexibility for folder-conversion (configurable file patterns and output file name / location)
- Provide a context menu entry for nautilus, nemo and other file managers
As a contributor, you might want to run tests.
This project uses BATS-core for testing. So after you made sure, BATS-core is available on your system, run
bats test
Thanks to
- @dangreco for providing the installer