• Home
  • Windows
  • Linux
  • Web
  • About
  • Pages

Blackndsky.net

Windows - Linux - Powershell


Handbrake

Installation

Windows: Get installer from website

  • https://handbrake.fr/downloads.php
  • https://ninite.com

Linux: sudo apt install -y handbrake


Configuration

Open Handbrake and cancel the source selection dialogue

Click Tools > Preferences

General

  • On Startup
    • Uncheck Check for Updates
  • When Done
    • (Optional) Play a sound when (each encode or the queue) completes

Output Files

  • Check Automatically name output files
  • Set a Default Path e.g. “C:\Users\John\Downloads”
  • Set File Format to {source}
  • Set MP4 File Extension to Always use MP4
  • Uncheck Change case to Title Case
  • Uncheck Replace underscores with a space

Media Conversion

  • Click Open Source
  • Select single media or media folder
  • Preset
    • Roku 720p30 Surround or Roku 1080p30 Surround depending on source file
  • Summary
    • Format: MKV
  • Video
    • If you want higher quality at the cost of file size you can adjust the “Constant Quality RF” of each preset
      • 720p default is 21, set to 20 for higher quality
      • 1080p default is 22, set to 21 for higher quality
    • If conversion time is not an issue, you can change the “Encoder Preset” to VerySlow to maximize file compression
      • Understand that this will more than double the time it takes to convert the file for a slightly smaller file size
      • Otherwise, the default setting of Medium is the optimal choice
  • Subtitles
    • Click Selection Behavior ...
    • All Matching Selected Languages: English
    • Uncheck Add Closed Captions
    • Uncheck Add Foreign Audio Scan
    • Check Passthru Track Names
    • Burn-in Behavior: None
    • Click Save and then Reload
  • Click Start Encode to begin transcoding
    • If you are batch converting a set of media, click the down arrow next to Add to Queue > Add all
    • Open the Queue window and click Start Queue

DVD Ripping

Download and Install libdvdcss-2.dll

Windows

32-Bit

  • http://download.videolan.org/pub/libdvdcss/1.2.12/win32/libdvdcss-2.dll
  • Install to: C:\Program Files (x86)\HandBrake

64-Bit

  • http://download.videolan.org/pub/libdvdcss/1.2.12/win64/libdvdcss-2.dll
  • Install to: C:\Program Files\HandBrake

*Please note this .dll will need to be reinstalled after Handbrake updates on Windows systems

Debian Linux

Install from videolan

  • Download from: http://download.videolan.org/pub/debian/stable/
    • 64-Bit libdvdcss2_1.2.13-0_amd64.deb
    • 32-Bit libdvdcss2_1.2.13-0_i386.deb
  • Install sudo dpkg -i libdvdcss2_version_arch_.deb

Or build from source

  • Add contrib and non-free packages to apt
    • Edit sources.list sudo vi /etc/apt/sources.list
    • Add contrib non-free to the end of each deb and deb-src line
  • Update apt sudo apt update
  • Install the package sudo apt install libdvd-pkg
    • Select Yes to enable automatic upgrades with apt
  • Configure with sudo dpkg-reconfigure libdvd-pkg
  • Select Yes to start the build.
  • Wait 15 - 30 seconds for the build to complete

Enable libdvdcss

Tools > Preferences > Advanced >   DVD Reading

  • Check the box next to Disable LibDVDNav
  • This allows libdvdcss to bypass disc protection

Create or Import DVD Rip Preset

Import the preset

  • Download the preset file Handbrake-DVD-Rip.json
  • Open Handbrake and select Cancel in the bottom left corner
  • On the top toolbar select Presets > Import from file
  • Navigate to the downloaded preset file and click Open
  • Select the preset by going to Presets > Custom Presets > DVD Rip

Manually create the preset More information

  • Open Handbrake and select DVD drive in source selection
  • Presets > Devices > Roku 480p30
  • Summary tab
    • Format - MP4
    • Check - Align A/V Start
  • Dimensions tab
    • Cropping - Automatic
  • Filters tab
    • Detelecine - Off
    • Interlace Detection - Default
    • Deinterlace - Decomb Preset - Default
    • Denoise - hqdn3d Preset - Medium
    • Sharpen - Off
    • Deblock - Off
  • Video tab
    • Video
      • Video Codec - H.264 (x264)
      • Framerate (FPS) - Same as source > Constant Framerate
    • Quality
      • Constant Quality - 18
      • If the output file is too large, increase the setting to 20. This lowers the quality and lowers the output file size.
    • Optimise Video
      • Encoder Preset - VerySlow
      • Encoder Tune - Film
      • Encoder Profile - High
      • Encoder Level - 3.1
      • Extra Options - ref=5:bframes=5
  • Audio tab
    • Single track
    • Codec AAC (avcodec) Bitrate 160
    • Mixdown Stereo
  • Subtitles tab
    • Foreign Audio Scan - Check Forced Only, Burn in
  • Chapters tab
    • Chapter Markers - Uncheck Create chapter markers
  • Presets - Save New Preset
    • Name: DVD Rip

Rip DVD

  • Open Handbrake and select DVD drive in source selection
  • Presets > Custom Presets > DVD Rip
    • (Optional) Disable subtitle scan - Subtitles tab - click red X on Foreign Audio Scan
    • If you really don’t want subtitles, this will save some time.
  • Click Start Encode