From the mind of a G33k

Generic placeholder image
LGRecode

I've put together a quick Perl script so that you can easily convert all the video files in a folder to be compatible with DaVinci Resolve.

Thanks to AlecADDD for FFMPEG settings --> https://alecaddd.com/davinci-resolve-ffmpeg-cheatsheet-for-linux

Thanks to PATORJK for the awesome ASCII sig--> http://patorjk.com/software/taag

Here is the code:

#!/usr/bin/perl


   use strict;
   use warnings;

   my @files = glob("*.mp4 *.mov *.mkv *.MOV");

   foreach my $file (@files) {
           #my $file_name = $file =~ s/\..*//;
       print "$file\n";

       my $convert = "time ffmpeg -i " . "'$file'";
       
       $convert = $convert . " -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 30000/1001 -b:v 3
6M -pix_fmt yuv422p -f mov ";
       my $new_file = $file =~ s/\..*//;
       # my $spacefix = $file =~ s/ /_/g;
      $convert = $convert . "'$file.exp.mov'";
      print "Executing Command: " . $convert . "\n";
      system $convert;
      print "$file.exp.mov\n";
      # my $action = "touch $file.exp.file";
      # system $action;

   }

   print "\n\n\nConversion complete...\n\n\n";
   print "
██╗     ██╗███╗   ██╗██╗██╗  ██╗ ██████╗ ██████╗ ██████╗ ██╗  ██╗
██║     ██║████╗  ██║██║╚██╗██╔╝██╔════╝ ╚════██╗╚════██╗██║ ██╔╝
██║     ██║██╔██╗ ██║██║ ╚███╔╝ ██║  ███╗ █████╔╝ █████╔╝█████╔╝  
██║     ██║██║╚██╗██║██║ ██╔██╗ ██║   ██║ ╚═══██╗ ╚═══██╗██╔═██╗  
███████╗██║██║ ╚████║██║██╔╝ ██╗╚██████╔╝██████╔╝██████╔╝██║  ██╗
╚══════╝╚═╝╚═╝  ╚═══╝╚═╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═╝
                                                                 
";
   print "Thanks for using lgrecode to convert your video files for DaVinci Resolve. Make sure t
o visit linixg33k.com\n\n\nThanks to AlecADDD for FFMPEG settings --> https://alecaddd.com/davinc
i-resolve-ffmpeg-cheatsheet-for-linux/\n\n\n";

   print "Thanks to PATORJK for the awesome ASCII sig--> http://patorjk.com/software/taag\n\n";

   exit 0;

Download File: .:. lgrecode.pl .:.
read more


Generic placeholder image
FreeNAS Bulk Add Example CSV

Example CSV file for FreeNAS Bulk Add

Download File: .:. new_users.csv .:.
read more