add tomp4 to zshrc

This commit is contained in:
Martinez 2018-03-25 23:16:54 +02:00
parent 4850e142aa
commit 7e9fcc0894

View file

@ -128,6 +128,13 @@ function die () {
exit 1 exit 1
} }
function tomp4 () {
__TOMP4_INPUT="${1}"
__TOMP4_OUTPUT="${1%%.*}.mp4"
ffmpeg -i "file:${__TOMP4_INPUT}" -codec:v copy -codec:a copy "${__TOMP4_OUTPUT}"
}
function mkvoid () { function mkvoid () {
__MKVOID_TARGET="$1" __MKVOID_TARGET="$1"
__MKVOID_PATH="${__MKVOID_TARGET:P}" __MKVOID_PATH="${__MKVOID_TARGET:P}"