Skip to content

Instantly share code, notes, and snippets.

@Luro02
Luro02 / handbrake.bat
Created November 30, 2017 16:03
very simple script for burning in reliably (hopefully) subtitles into the mkv and converting them to .mp4 ! This script needs HandbrakeCLI in path variables or in the same directory. You can download it from here: https://handbrake.fr/downloads2.php
@echo off
:: The Command and conversion is copy&pasted from the Internet and I only added the subtitle command and the for loop....
:: if it's givin you an error delete the ">>log.txt" (didn't test if it's working but it should echo everything into a file called "log.txt")
:: You can delete the Lines starting with "::" (they are ignored)
for %%i in (*.mkv *.avi) do (
HandBrakeCLI -i "%%i" -o "%%~ni.mp4" -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 --loose-anamorphic --modulus 2 -m --x264-preset veryfast --h264-profile main --h264-level 4.0 -s "1,2,3,4,5,6" --subtitle-burned
rm -f "%%i"
)>>log.txt
@Luro02
Luro02 / ubuntu16.10-command-line-install-android-sdk
Last active February 1, 2018 09:48 — forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Ubuntu 16.10 command line install android sdk
# install openjdk
sudo apt-get install openjdk-9-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz -C $HOME
cd $HOME/android-sdk-linux/tools