ffmpeg on OSX with hardware enabled encoding
Add to the standard :ffmpeg -i source destination” :: 1-c:v h264_videotoolbox Also – it is critical that the bitrate be set, otherwise the default drops quality down to 600kb/s. to … Read More
Add to the standard :ffmpeg -i source destination” :: 1-c:v h264_videotoolbox Also – it is critical that the bitrate be set, otherwise the default drops quality down to 600kb/s. to … Read More
A clear example of the if/then/else structure formatting in awk. 123456789$ awk ‘ BEGIN { FS="," ; FORMAT="%-10s%-8s%s\n" ; {printf FORMAT,"A","B","% age"} } { … Read More
A one liner to repeat a task/process N number of times. Perform 5 times: 1for n in {1..5}; do <command>; done</command> Add a function to .bashrc / .bash_profile: 1234567function run() … Read More
1234567891011#display current Volume in 1024-byte blocks df -k . #display ALL Volumes in megabytes df -m #display /home Volume in gigabytes df -g /home #display ALL Volumes … Read More
Pass arguments in any order, with ability to have some of the flags optional: 12345678910while getopts u:d:p:f: option do case "${option}" in u) USER=${OPTARG};; d) DATE=${OPTARG};; p) PRODUCT=${OPTARG};; f) FORMAT=${OPTARG};; … Read More
A one liner to go over all the files (can filter by file type) and apply a process. The example below shows all audio files in WAV format (*.wav) to … Read More
scp to PUSH 1scp source-file.txt [email protected]:/save/here scp to PULL 1scp [email protected]:/source-loc/source-file.txt destination.txt REFERENCE
For FAST without RECOMPRESSION of PDF files, use Coherent PDF Command Line Tools Community Release *download includes a notarized OSX version of Catelina* 1cpdf one.pdf two.pdf three.pdf -o merged.pdf Using … Read More
Assuming stardard protools L/R pairs. Assuming existance of “boom” and “lav” paths. 123456789101112131415161718192021#!/bin/bash moveit(){ local channel=`echo ${filename} | cut -d . -f2` if [ "$channel" == "L" ] … Read More