Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat[171823Z APR 21][palmer@trinity] palmer $ cat !$
- cat ~/bin/mp4-to-mkv.sh
- #!/usr/bin/env bash
- set -e
- if termux-battery-low; then
- echo "Battery is too low to encode files"
- exit 1
- fi
- for x in *.mp4; do
- NAME=$(basename "$x" .mp4);
- MKV="$NAME.mkv";
- if [ -f "$MKV" ]; then
- continue;
- fi
- ffmpeg -i "$x" -map 0 -c copy -c:a ac3 "$MKV"
- done
Advertisement
Add Comment
Please, Sign In to add comment