Update with diverent options and scaling
This commit is contained in:
parent
14d4e894e1
commit
c0d76d02c5
2 changed files with 9 additions and 3 deletions
|
@ -2,12 +2,13 @@
|
||||||
# Convert input video in a vp9/libvorbis mkv
|
# Convert input video in a vp9/libvorbis mkv
|
||||||
#
|
#
|
||||||
# (c) LUG-VS (GPL)
|
# (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)
|
# Input: VideoFile.mp4 (or other video container format like webm)
|
||||||
# Output: VideoFile.mkv (convertet to vp9/libvorbis)
|
# Output: VideoFile.mkv (convertet to vp9/libvorbis)
|
||||||
#
|
#
|
||||||
# Changes:
|
# Changes:
|
||||||
|
# 0.0.2: scale to full-HD 1920x1080 (1080p)
|
||||||
# 0.0.1: generation
|
# 0.0.1: generation
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -16,7 +17,12 @@ if [ $# -gt 0 ] && [ -e $1 ]; then
|
||||||
filename=$(basename -- "$1")
|
filename=$(basename -- "$1")
|
||||||
# extension="${filename##*.}"
|
# extension="${filename##*.}"
|
||||||
filename="${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
|
else
|
||||||
## Show help
|
## Show help
|
||||||
echo -e "** Konvertiert eine beliebige Videodatei in ein vp9/libvorbis mkv Kontainer. Benutzung: \n\t$(basename $0) <Videodatei>"
|
echo -e "** Konvertiert eine beliebige Videodatei in ein vp9/libvorbis mkv Kontainer. Benutzung: \n\t$(basename $0) <Videodatei>"
|
||||||
|
|
|
@ -10,6 +10,7 @@ See also at [LUG-VS-Wiki Nützliche Scripte](https://lug-vs.org//lugvswiki/index
|
||||||
|Script|Description|
|
|Script|Description|
|
||||||
|---|---|
|
|---|---|
|
||||||
|[CheckKernel.sh](CheckKernel.sh)|Show some Kernel information (supports -d for debug und -v for verbose)|
|
|[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|
|
|[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|
|
|[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|
|
|[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))|
|
|[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|
|
|[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|
|
|[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)|
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue