DescriptionThere are now quite a few variables used within the script, many of which can be set prior to running it in order to avoid needing to pass command line options (allowing use of wrapper scripts).
It's probably worth creating a Markdown file containing a list of these and what they do/default to for easy reference (it'll also ensure that there aren't any which can only be set using an option).
Activity
2017-04-29 12:19:54
# Basic config OUTPUT_DIRECTORY=${OUTPUT_DIRECTORY:-'./output'} # Change this if you want to specify a path to use a specific version of FFMPeg FFMPEG=${FFMPEG:-'ffmpeg'} # Number of threads which will be used for transcoding. With newer FFMPEGs and x264 # encoders "0" means "optimal". This is normally the number of CPU cores. NUMTHREADS=${NUMTHREADS:-"0"} # Video codec for the output video. Will be used as an value for the -vcodec argument VIDEO_CODEC=${VIDEO_CODEC:-"libx264"} # Audio codec for the output video. Will be used as an value for the -acodec argument AUDIO_CODEC=${AUDIO_CODEC:-"aac"} # Additional flags for ffmpeg FFMPEG_FLAGS=${FFMPEG_FLAGS:-""} # If the input is a live stream (i.e. linear video) this should be 1 LIVE_STREAM=${LIVE_STREAM:-0} # Video bitrates to use in output (comma seperated list if you want to create an adaptive stream.) # leave null to use the input bitrate OP_BITRATES=${OP_BITRATES:-''} # Determines whether the processing for adaptive streams should run sequentially or not NO_FORK=${NO_FORK:-0} # ... snip TMPDIR=${TMPDIR:-"/tmp"}Some of which have corresponding flags
The FFMPEG specific ones are already well documented in the README, so will just need to add some info for each of the others
2019-11-23 12:09:15
2019-11-23 12:09:15