mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-25 15:56:54 +02:00
feat: convert video to gif function
This commit is contained in:
parent
4c3696af8a
commit
3aeeae548a
1 changed files with 7 additions and 0 deletions
|
@ -1 +1,8 @@
|
|||
convert_video_to_gif() {
|
||||
local input_video="$1"
|
||||
local output_filename="output_$(date +"%Y%m%d%H%M%S").gif"
|
||||
|
||||
ffmpeg -i "$input_video" -vf "fps=30,scale=1920:-1:flags=lanczos" -c:v gif "$output_filename"
|
||||
|
||||
echo "GIF created: $output_filename"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue