Skip to content

Instantly share code, notes, and snippets.

Don Melton donmelton

Block or report user

Report or block donmelton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@donmelton
donmelton / commentary-tracks.sh
Created Mar 21, 2019
Bash script to scan input video for commentary tracks and output `transcode-video` options to add those tracks.
View commentary-tracks.sh
#!/bin/bash
#
# commentary-tracks.sh
#
# Copyright (c) 2013-2019 Don Melton
#
die() {
echo "$(basename "$0"): $1" >&2
exit ${2:-1}
@donmelton
donmelton / experimental-x264-avbr-transcode-video.sh
Created Feb 2, 2019
A wrapper script for `transcode-video` with an experimental average variable bitrate (AVBR) ratecontrol system for the x264 encoder.
View experimental-x264-avbr-transcode-video.sh
#!/bin/bash
#
# experimental-x264-avbr-transcode-video.sh
#
# Copyright (c) 2013-2019 Don Melton
#
die() {
echo "$(basename "$0"): $1" >&2
exit ${2:-1}
@donmelton
donmelton / prune-handbrake-log.sh
Created Jul 5, 2018
A script to filter out overwritten `HandBrakeCLI` progress information from a `.log` file created `transcode-video`.
View prune-handbrake-log.sh
#!/bin/bash
#
# prune-handbrake-log.sh
#
# Copyright (c) 2018 Don Melton
#
if (($# == 1)); then
cat "$1" | ruby -e "print STDIN.read.gsub(/^.*\r(.)/, '\1')"
fi
@donmelton
donmelton / experimental-simple-transcode-video.sh
Created Jun 27, 2018
A wrapper script for `transcode-video` with an experimental simple constrained ratecontrol system.
View experimental-simple-transcode-video.sh
#!/bin/bash
#
# experimental-simple-transcode-video.sh
#
# Copyright (c) 2013-2018 Don Melton
#
die() {
echo "$(basename "$0"): $1" >&2
exit ${2:-1}
@donmelton
donmelton / experimental-abr-transcode-video.sh
Last active Nov 29, 2017
A wrapper script for `transcode-video` with an experimental average bitrate (ABR) ratecontrol system.
View experimental-abr-transcode-video.sh
#!/bin/bash
#
# experimental-abr-transcode-video.sh
#
# Copyright (c) 2013-2017 Don Melton
#
die() {
echo "$(basename "$0"): $1" >&2
exit ${2:-1}
@donmelton
donmelton / gist:f7f002ee20a534faf1f1
Last active Aug 29, 2015
Output from `transcode-video --help`
View gist:f7f002ee20a534faf1f1
Transcode video file or disc image directory into format and size similar to
popular online downloads. Works best with Blu-ray or DVD rip.
Automatically determines target video bitrate, number of audio tracks, etc.
WITHOUT ANY command line options.
Usage: transcode-video [OPTION]... [FILE|DIRECTORY]...
Input options:
--scan list title(s) and tracks in video media and exit
@donmelton
donmelton / convert-mkv-to-mp4.sh
Last active Jun 7, 2019
Convert Matroska video file into MP4 format without transcoding.
View convert-mkv-to-mp4.sh
#!/bin/bash
#
# convert-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 2.0 of December 3, 2014
@donmelton
donmelton / convert-mp4-to-mkv.sh
Last active Sep 5, 2019
Convert MP4 video file into Matroska format without transcoding.
View convert-mp4-to-mkv.sh
#!/bin/bash
#
# convert-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 2.0 of December 3, 2014
@donmelton
donmelton / detect-crop.sh
Last active Nov 28, 2018
Detect crop values for video file to use with `mplayer` and `transcode-video.sh` (a wrapper script for `HandBrakeCLI`).
View detect-crop.sh
#!/bin/bash
#
# detect-crop.sh
#
# Copyright (c) 2013-2015 Don Melton
#
about() {
cat <<EOF
$program 3.3 of January 22, 2015
@donmelton
donmelton / transcode-video.sh
Last active Sep 7, 2019
Transcode video file (works best with Blu-ray or DVD rip) into MP4 (or optionally Matroska) format, with configuration and at bitrate similar to popular online downloads.
View transcode-video.sh
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2015 Don Melton
#
about() {
cat <<EOF
$program 5.13 of April 8, 2015
You can’t perform that action at this time.