This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class VbsJson | |
'Author: Demon (http://demon.tw), 2012-5-3 | |
'Modified by: t3rminus, 2019-11-20 | |
'Changelog: | |
' - Fix bug relating to empty array properties in object | |
' - Encode not tested | |
' - Removed use of Set keyword that may cause issues in some environments | |
Private Whitespace, NumberRegex, StringChunk | |
Private b, f, r, n, t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE=$(echo "$1" | sed 's/.*\///') | |
NAME=$(echo "$BASE" | sed 's/\.[^\.]*$//') | |
EXTENSION=$(echo "$BASE" | sed 's/^.*\.//') | |
ffmpeg -i "$1" -strict -2 -map 0:0 -map 0:1 -map 0:1 -c:v libx264 -preset:v fast -profile:v high -level:v 4.1 -refs:v 4 -crf:v 20 -c:a:0 ac3 -ac:a:0 6 -b:a:0 640k -metadata:s:a:0 lang=eng -metadata:s:a:0 title="Surround" -c:a:1 aac -b:a:1 256k -ac:a:1 2 -metadata:s:a:1 lang=eng -metadata:s:a:1 title="Stereo" "$NAME.mp4" |