imcrazytwkr

Simple mobile h264 script

May 3rd, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.60 KB | None | 0 0
  1. x264 --preset veryslow --tune animation --vf resize:width=1280,height=720,method=lanczos --crf 20 -o "%~n1-8bit.h264" %1
  2. ffmpeg -i %1 -c:a pcm_s16le -f wav - | neroAacEnc -if - -ignorelength -of "%~n1-8bit.aac"
  3. "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%~n1-8bit.mkv"  "--forced-track" "0:no" "-a" "0" "-D" "-S" "-T" "--no-global-tags" "(" "%~n1-8bit.aac" ")" "--forced-track" "0:no" "--display-dimensions" "0:1280x720" "--default-duration" "0:23.976fps" "-d" "0" "-A" "-S" "-T" "--no-global-tags" "--no-chapters" "(" "%~n1-8bit.h264" ")" "--track-order" "1:0,0:0"
  4. del "%~n1-8bit.aac"
  5. del "%~n1-8bit.h264"
Advertisement
Add Comment
Please, Sign In to add comment