From 7e9fcc0894063d8f0f890bf9dfe519419b8d991f Mon Sep 17 00:00:00 2001 From: Martinez Date: Sun, 25 Mar 2018 23:16:54 +0200 Subject: [PATCH] add tomp4 to zshrc --- etc/zsh/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ebf7f76..5ec6706 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -128,6 +128,13 @@ function die () { 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 () { __MKVOID_TARGET="$1" __MKVOID_PATH="${__MKVOID_TARGET:P}"