aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools/vconverter.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-17 19:32:28 -0500
committerJesús <heckyel@hyperbola.info>2021-04-17 19:32:28 -0500
commited8b45e4f323018e63d4287482a35ec8c91be9e4 (patch)
treee36a2f569dd1004c0ad81672bff74254a276624d /hyperterm/tools/vconverter.sh
parent36a483afb80f2efd9fc002c55873f830e1a7491c (diff)
downloadhyperterm-ed8b45e4f323018e63d4287482a35ec8c91be9e4.tar.lz
hyperterm-ed8b45e4f323018e63d4287482a35ec8c91be9e4.tar.xz
hyperterm-ed8b45e4f323018e63d4287482a35ec8c91be9e4.zip
[vconveter.sh]: Add support ts format
Diffstat (limited to 'hyperterm/tools/vconverter.sh')
-rw-r--r--hyperterm/tools/vconverter.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/hyperterm/tools/vconverter.sh b/hyperterm/tools/vconverter.sh
index f240a06..79efd60 100644
--- a/hyperterm/tools/vconverter.sh
+++ b/hyperterm/tools/vconverter.sh
@@ -14,6 +14,7 @@ function vtovp9() {
*.mp4) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.mp4}".webm ;;
*.mpg) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.mpg}".webm ;;
*.ogv) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.ogv}".webm ;;
+ *.ts) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.ts}".webm ;;
*.webm) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.webm}".webm ;;
*.wmv) ffmpeg -i "$1" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${1%.wmv}".webm ;;
*) msg_err "El formato de '$1' no esta listado :(" \
@@ -55,6 +56,7 @@ function alltovp9() {
*.mp4) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.mp4}".webm ;;
*.mpg) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.mpg}".webm ;;
*.m2ts) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.m2ts}".webm ;;
+ *.ts) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.ts}".webm ;;
*.ogv) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.ogv}".webm ;;
*.vob) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.vob}".webm ;;
*.wmv) ffmpeg -i "$FILE_NAME" -c:v libvpx-vp9 -crf 33 -threads 8 -b:v 0 -b:a 128k -c:a libopus -map_metadata -1 "${FILE_NAME%.wmv}".webm ;;