diff --git a/Convert2mkv.sh b/Convert2mkv.sh index 8b62388..8f76b18 100755 --- a/Convert2mkv.sh +++ b/Convert2mkv.sh @@ -2,12 +2,13 @@ # Convert input video in a vp9/libvorbis mkv # # (c) LUG-VS (GPL) -VERSION="$(basename $0) Version 0.0.1 from 07.11.2019" +VERSION="$(basename $0) Version 0.0.2 from 08.11.2019" # # Input: VideoFile.mp4 (or other video container format like webm) # Output: VideoFile.mkv (convertet to vp9/libvorbis) # # Changes: +# 0.0.2: scale to full-HD 1920x1080 (1080p) # 0.0.1: generation # @@ -16,7 +17,12 @@ if [ $# -gt 0 ] && [ -e $1 ]; then filename=$(basename -- "$1") # extension="${filename##*.}" filename="${filename%.*}" - ffmpeg -i $1 -c:v vp9 -c:a libvorbis ${filename}.mkv + ## Convert input Video to VP9 and scale it to 1080p - convert audio to libvorbis in an mkv container +# ffmpeg -i $1 -c:v vp9 -vf scale=1920:1080 -c:a libvorbis ${filename}.mkv + ## Convert input Video to VP8 and scale it to 1080p - convert audio to libvorbis in an mkv container +# ffmpeg -i $1 -c:v vp8 -vf scale=1920:1080 -c:a libvorbis ${filename}.mkv + ## Scale imput video to 1080p and convert audio to libvorbis in an mkv container + ffmpeg -i $1 -vf scale=1920:1080 -c:a copy ${filename}.mkv else ## Show help echo -e "** Konvertiert eine beliebige Videodatei in ein vp9/libvorbis mkv Kontainer. Benutzung: \n\t$(basename $0) " diff --git a/README.md b/README.md index 60c7941..9fdf8ce 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ See also at [LUG-VS-Wiki Nützliche Scripte](https://lug-vs.org//lugvswiki/index |Script|Description| |---|---| |[CheckKernel.sh](CheckKernel.sh)|Show some Kernel information (supports -d for debug und -v for verbose)| +|[Convert2mkv.sh](Convert2mkv.sh)|Convert an VideoFile as parameter in an 'mkv' container (vp9/libvorbis)| |[dfc.sh](dfc.sh)|Script shows the free memory of all mounted file systems beside *tmpfs traffic light colored| |[duc-index.sh](duc-index.sh)|Script to be added e.g. as cronjob, which generate an index w/o NFS and DavFS file system mounted files| |[make_exif-name.sh](make_exif-name.sh)|Add a comment in all *.jpg files in the actual and all subfolders| @@ -18,5 +19,4 @@ See also at [LUG-VS-Wiki Nützliche Scripte](https://lug-vs.org//lugvswiki/index |[utf8.sh](utf8.sh)|Convert text from e.g. Windows latin1 to utf8 text (e.g. in READMEs or other text (not for office documents))| |[wmf2svg.sh](wmf2svg.sh)|Example script converts WMF files in SVG to share it easily on the internet| |[write-exif-comment.sh](write-exif-comment.sh)|Write JPEG EXIF comment in all *.jpg files| -|[Convert2mkv.sh](Convert2mkv.sh)|Convert an VideoFile as parameter in an 'mkv' container (vp9/libvorbis)|