From 86e66afef950d6027c55eedfb218fbe655b0ed12 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Fri, 30 May 2014 12:09:29 -0700 Subject: [PATCH] Added HandbrakeCLI and MP4Box --- pages/common/HandBrakeCLI.md | 19 +++++++++++++++++++ pages/common/MP4Box.md | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pages/common/HandBrakeCLI.md create mode 100644 pages/common/MP4Box.md diff --git a/pages/common/HandBrakeCLI.md b/pages/common/HandBrakeCLI.md new file mode 100644 index 000000000..81cf73bc2 --- /dev/null +++ b/pages/common/HandBrakeCLI.md @@ -0,0 +1,19 @@ +# HandBrakeCLI + +> Video conversion tool + +- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video) + +`HandBrakeCLI -i {{input.avi}} -o {{output.mkv}} -e x264 -q 20 -B 160` + +- Resize a video file to 320x240 + +`HandBrakeCLI -i {{input.mp4}} -o {{output.mp4} -w 320 -l 240` + +- List available presets + +`HandBrakeCLI --preset-list` + +- Convert an AVI video to MP4 using the Android preset + +`HandBrakeCLI --preset="Android" -i {{input.ext}} -o {{output.mp4}}` diff --git a/pages/common/MP4Box.md b/pages/common/MP4Box.md new file mode 100644 index 000000000..fe185f411 --- /dev/null +++ b/pages/common/MP4Box.md @@ -0,0 +1,16 @@ +# MP4Box + +> MPEG-4 Systems Toolbox - Muxes streams into MP4 container + +- Display information about an existing MP4 file + +`MP4Box -info {{filename}}` + +- Add an SRT subtitle file into an MP4 file + +`MP4Box -add {{input-subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}` + +- Combine audio from one file and video from another + +`MP4Box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}` +