usage: ./transcode.sh FILENAME_PATH --bitrate=BITRATE_INT --scale=HEIGHT_INT:WIDTH_INT --output=RESULT_FILENAME_PATH --debug
bash
,ffmpeg
,ffprobe
,which
must be installedbash
version >= 3.2
- FILENAME_PATH - abs or relative path to the input video file. Must be the first argument
- BITRATE_INT - unsigned integer (in kb/s)
- HEIGHT_INT & WIDTH_INT - unsigned integers both
- RESULT_FILENAME_PATH - abs or relative path to the result video file
- --debug - is optional - providing verbose output to stdout