Encodage de gif à partir d'une vidéo
gifenc.sh
#!/bin/sh #start_time="00:00:20.117" #duration="00:00:06.959" start_time="00:00:58.952" duration="00:00:06.760" palette="/tmp/palette.png" #filters="fps=15,scale=320:-1:flags=lanczos" filters="fps=8,crop=in_w-314:in_h " #~/bin/ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette #~/bin/ffmpeg -v warning -i $1 -i $palette -filter_complex "$filters[x];[x][1:v] paletteuse" -y $2 ~/bin/ffmpeg -v warning -ss $start_time -t $duration -i $1 -vf "$filters,palettegen" -y $palette #~/bin/ffmpeg -v warning -ss $start_time -t $duration -i $1 -i $palette -filter_complex "$filters,paletteuse" -y $2 ~/bin/ffmpeg -v warning -ss $start_time -t $duration -i $1 -i $palette -lavfi "$filters,paletteuse" -y $2
image_dpi_sh
#!/bin/bash identify -units PixelsPerInch -format "%w w x %h h %x dpi x %y dpi" "$1" echo
Effacer les metadata
metadata_clear.sh
#!/bin/bash
/usr/bin/exiftool -all= "$1"
Aucun commentaire:
Enregistrer un commentaire