r/davinciresolve • • 10d ago

Help | Beginner Resolve for Linux Dos and Donts

I'm planning to switch to Linux (most likely CachyOS or Fedora) and I want Davinci resolve up and running as best as it could compared to Windows.

What should be my dos and don'ts in terms of installing any files/codecs/software and so on, for Resolve to work smoothly?

1 Upvotes

15 comments sorted by

3

u/atomicshrimp 10d ago

The big one is that if you are using footage with AAC audio, you will need to transcode before importing clips into Resolve. On Linux there is no AAC support (Windows and Mac already have licensed codecs built in) It's not that hard to do the transcoding, but it's a necessary step.

1

u/ImportantPoem7700 10d ago

I lowkey feel it's gonna be annoying if I have to do it every single time for every file

2

u/atomicshrimp 10d ago

I've got a script. I drop my clips and files into a set of folders and run the script. It transcodes where necessary, discards useless stuff (like THM files from my GoPro), converts WEBP to PNG, and organises everything into a date-coded folder for convenience. It means waiting a minute before starting work but there's no actual difficulty.

1

u/ImportantPoem7700 10d ago

That's really cool. Also I watched a yt video recently, regarding the same workflow, it could be you lol.

Still, is it okay with you if you share your workflow or script?

2

u/atomicshrimp 10d ago

This is my bash script. Note: It's probably crude and poorly written, but it works (Some of the awkward choices for iterating through folder contents were made after other methods failed in cases like empty folders or wrong file types). You'll need to install ffmpeg and (if you want the WEBP conversion part) dwebp.

#!/bin/bash
# Script to process and move media in 'input' subfolders into correct storage folders
# Requires: ffmpeg and dwebp

process_m4a () {
SOURCE_DIR="/HD1/Input/$1"
TARGET_DIR="/storage/Video/$(date +%Y-%m)/$1"
DONE_DIR="/HD1/Input/Done"
FILE_TYPE=$2
#See if there is anything to do! 
vfiles=("$SOURCE_DIR"/*."$FILE_TYPE")
if [ -e ${vfiles[0]} ];
then
for f in "$SOURCE_DIR"/*."$FILE_TYPE"
do
# update the file timestamp (important in case the camera-derived timestamp is incorrect -
# we might otherwise prune the original too soon - omit this if the actual file timestamp is important to you)
echo "Transcoding $f"
touch $f
# transcode using ffmpeg
ffmpeg -i "$f" -c:v copy -c:a libmp3lame -q:a 3 "${f/%$FILE_TYPE/mp3}"; \
done
# Move the original files to $DONE_DIR
echo "Moving $FILE_TYPE files from $SOURCE_DIR to $DONE_DIR"
mv "$SOURCE_DIR"/*."$FILE_TYPE" "$DONE_DIR"/
fi
}

process_video() {
SOURCE_DIR="/HD1/Input/$1"
TARGET_DIR="/storage/Video/$(date +%Y-%m)/$1"
DONE_DIR="/HD1/Input/Done"
FILE_TYPE=$2
#See if there is anything to do! 
vfiles=("$SOURCE_DIR"/*."$FILE_TYPE")
if [ -e ${vfiles[0]} ];
then
for f in "$SOURCE_DIR"/*."$FILE_TYPE"
do
# update the file timestamp (important in case the camera-derived timestamp is incorrect -
# we might otherwise prune the original too soon - omit this if the actual camera timestamp is important to you)
echo "Transcoding $f"
touch $f
# transcode using ffmpeg
ffmpeg -i "$f" -vcodec copy -c:a pcm_s24le -ar 48000 -y "${f/%$FILE_TYPE/mov}"; \
done
# Move the original files to $DONE_DIR
echo "Moving $FILE_TYPE files from $SOURCE_DIR to $DONE_DIR"
mv "$SOURCE_DIR"/*."$FILE_TYPE" "$DONE_DIR"/
fi
}

convert_webp() {
SOURCE_DIR="/HD1/Input/$1"
TARGET_DIR="/storage/Video/$(date +%Y-%m)/$1"
DONE_DIR="/HD1/Input/Done"
FILE_TYPE=$2
#See if there is anything to do! 
vfiles=("$SOURCE_DIR"/*."$FILE_TYPE")
if [ -e ${vfiles[0]} ];
then
for f in "$SOURCE_DIR"/*."$FILE_TYPE"
do
# update the file timestamp (important in case the camera-derived timestamp is incorrect -
# we might otherwise prune the original too soon - omit this if the actual; camera timestamp is important to you)
echo "Converting $f"
touch $f
# convert using webp
dwebp "$f" -o "${f%.*}.png"
done
# Move the original files to $DONE_DIR
echo "Moving $FILE_TYPE files from $SOURCE_DIR to $DONE_DIR"
mv "$SOURCE_DIR"/*."$FILE_TYPE" "$DONE_DIR"/
fi
}


just_move() {
SOURCE_DIR="/HD1/Input/$1"
TARGET_DIR="/storage/Video/$(date +%Y-%m)/$1"
DONE_DIR="/HD1/Input/Done"
FILE_TYPE=$2
#See if there is anything to do! 
vfiles=("$SOURCE_DIR"/*."$FILE_TYPE")
if [ -e ${vfiles[0]} ];
then
#If the target directory doesn't already exist, make it
if [ ! -d "$TARGET_DIR" ]; then
    mkdir -p "$TARGET_DIR"
fi
# Move these unchanged files to $TARGET_DIR
echo "Moving $FILE_TYPE files from $SOURCE_DIR to $TARGET_DIR"
mv "$SOURCE_DIR"/*."$FILE_TYPE" "$TARGET_DIR"/
fi
}

just_archive() {
SOURCE_DIR="/HD1/Input/$1"
TARGET_DIR="/storage/Video/$(date +%Y-%m)/$1"
DONE_DIR="/HD1/Input/Done"
FILE_TYPE=$2
#See if there is anything to do! 
vfiles=("$SOURCE_DIR"/*."$FILE_TYPE")
if [ -e ${vfiles[0]} ];
then
#If the target directory doesn't already exist, make it
if [ ! -d "$TARGET_DIR" ]; then
echo "Making directory $TARGET_DIR"
    mkdir -p "$TARGET_DIR"
fi
# Move these unchanged files to $DONE_DIR
echo "Moving $FILE_TYPE files from $SOURCE_DIR to $DONE_DIR"
mv "$SOURCE_DIR"/*."$FILE_TYPE" "$DONE_DIR"/
fi
}

de_space() {
SOURCE_DIR="/HD1/Input/$1"
find "$SOURCE_DIR" -depth -name '* *' -print0 |
while IFS= read -r -d '' file; do
mv -- "$file" "${file// /_}"
done
}

#Actions as function calls:

# Folder: Test
de_space Test
process_video Test mp4
just_move Test mov

# Folder: Audio
de_space Audio
just_move Audio wav
just_move Audio mp3

# Folder: GoPro
de_space GoPro
just_move GoPro JPG
just_archive GoPro THM
just_archive GoPro LRV
process_video GoPro MP4
just_move GoPro mov

# Folder: Main
de_space Main
just_move Main jpg
just_move Main JPG
process_video Main mp4
process_video Main MP4
just_move Main mov

# Folder: Screen
de_space Screen
just_move Screen jpg
process_video Screen mp4
just_move Screen mov

# Folder: Snips
de_space Snips
just_move Snips jpg
just_move Snips jpeg
convert_webp Snips webp
just_move Snips png

# Folder: Sony
de_space Sony
just_archive Sony XML
process_video Sony MP4
just_move Sony mov
just_move Sony JPG
just_move Sony ARW

#prune the contents of the 'done' folder to 30 days
 find /HD1/Input/Done -type f -mtime +30 -delete

2

u/erroneousbosh Studio 10d ago

You just use ffmpeg in a script, like a proper video company.

Everything you see on TV and in the cinema has been run through ffmpeg multiple times.

2

u/sasimillennium 10d ago

Search on github plugin AAC for resolve

1

u/Standard-Recipe-7641 10d ago

I'm new to cachy and resolve runs great, super happy. I have a script to convert to ALAC and added it to my right click menu. It only shows up when right clicking a video file. If you're working with lots of files then a batch script like others are using is the way to go. I mostly QC stuff with it and rarely deliver stuff. If you're delivering stuff, you need to find a good solution. And have to be on studio

3

u/sasimillennium 10d ago

On github you can find some plugin for enable AAC, works in import and export

2

u/ExcellentRich1164 10d ago

https://github.com/Toxblh/davinci-linux-aac-codec - for the aac fix. also check makeresolvedeb if you are on debian/ubuntu - https://github.com/jchilton/makemakeresolvedeb

2

u/atomicshrimp 10d ago

NB: That plugin will only work with the Studio (paid) version of Resolve.

4

u/erroneousbosh Studio 10d ago

If you're going for Fedora, don't, go for Rocky instead because that's exactly what it's packaged for.

2

u/gargoyle37 Studio 10d ago

Think of Resolve-for-linux as the pro offering:

  • You will work primarily with professional footage from cameras or VFX OpenEXR image sequences.
  • You will be using proxies in a mezzanine codec.
  • You will deliver in mezzanine codecs.
  • All audio is Linear PCM in WAV files, rarely embedded directly in the video.
  • Audio is mainly a vehicle for outsourcing the sound design to other applications.
  • You'll often get edits in from Avid, so you don't edit directly in Resolve.
  • You have a by-pass device to skip over Linux color management.
  • You have an NVidia RTX GPU.
  • You'll often work at a larger facility where you need to have multiple color workstations which work the same way and are kept in sync.
  • You are on Rocky Linux, like most other DCC apps you'll see in this space.

The problem with this for a lot of people are that they are working with distribution formats: AAC, h.264, h.265, AV1 and so on. And this won't work well.

1

u/AutoModerator 10d ago

Welcome to r/davinciresolve! If you're brand new to Resolve, please make sure to check out the free official training, the subreddit's wiki and our weekly FAQ Fridays. Your question may have already been answered.

Please check to make sure you've included the following information. Edit your post (or leave a top-level comment) if you haven't included this information.

Once your question has been answered, change the flair to "Solved" so other people can reference the thread if they've got similar issues.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/ggeldenhuys Studio 10d ago

You have to use the Studio version ,due to codec licencing. Otherwise you are very limited to codecs and container support.

Other than that ,it works fine. Final rendering speed is not as fast as Windows or MacOS - but honestly I don't care much about the final render time - all the hard work comes before that.