commit d06d02372d503510dea7026bfabea5e6848dc01f parent 7990cf04158e3d1a12eaca97c3fc61f28d55196e Author: Alex Balgavy <a.balgavy@gmail.com> Date: Sat, 16 Jun 2018 15:04:35 +0200 GIF-video conversion functions Diffstat:
M | commonprofile | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/commonprofile b/commonprofile @@ -62,11 +62,12 @@ gemmaster() { gem cleanup; } -webmTOmp4() { +### FFMPEG CONVERSIONS ### +webm-mp4() { ffmpeg -i "$1" -qscale 0 "$1".mp4 } -mp4TOmp3() { +mp4-mp3() { ffmpeg -i "$1" "$1".mp3 } @@ -74,6 +75,9 @@ gifify() { ffmpeg -i $1 -r 25 -f image2pipe -vcodec ppm - | \ convert -delay 4 -loop 0 - output.gif } +gif-mp4() { + ffmpeg -i "$1" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" `echo $1|cut -d. -f1`.mp4 +} extract () { if [ -f $1 ] ; then