From 50256a3e767b85884cbc3177b9884e41602865a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Tue, 25 Jul 2017 19:43:56 -0700 Subject: [PATCH 1/2] ffmpeg script to make a qt animation out of an image sequence with alpha --- bash/make_anim+.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bash/make_anim+.sh diff --git a/bash/make_anim+.sh b/bash/make_anim+.sh new file mode 100755 index 0000000..f212719 --- /dev/null +++ b/bash/make_anim+.sh @@ -0,0 +1,7 @@ +#!/bin/bash +bg_color=#5d5d5d +size=1920x1080 +base=smoke1 +for i; +do ffmpeg -f lavfi -i color=c=$bg_color:s=$size -i $base.%04d.png -filter_complex "[0:v][1:v]overlay=shortest=1,format=yuv420p[out]" -map "[out]" -c:v qtrle -q 0 $base"_Animation+.mov"; +done From 8313faf0a597a04f15e4f13c7e01dadf6451a630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Thu, 27 Jul 2017 15:05:05 -0700 Subject: [PATCH 2/2] added a setting for makines wacom, and a ffmpeg script to make a qt out of a sequence overlayed over gray background --- bash/fix_wacom.sh | 11 ++++++++--- bash/make_anim+.sh | 3 +-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index 4de9003..3feac92 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -1,3 +1,8 @@ -wacom_id=10 -xsetwacom --set $wacom_id button 2 3 -xsetwacom --set $wacom_id button 3 2 +#casa +#wacom_id=10 +#makine +wacom_id="Wacom Intuos Pro M Pen stylus" +xsetwacom --set "$wacom_id" button 2 3 +xsetwacom --set "$wacom_id" button 3 2 + + diff --git a/bash/make_anim+.sh b/bash/make_anim+.sh index f212719..f923812 100755 --- a/bash/make_anim+.sh +++ b/bash/make_anim+.sh @@ -1,7 +1,6 @@ #!/bin/bash bg_color=#5d5d5d size=1920x1080 -base=smoke1 for i; -do ffmpeg -f lavfi -i color=c=$bg_color:s=$size -i $base.%04d.png -filter_complex "[0:v][1:v]overlay=shortest=1,format=yuv420p[out]" -map "[out]" -c:v qtrle -q 0 $base"_Animation+.mov"; +do ffmpeg -f lavfi -i color=c=$bg_color:s=$size -start_number 0001 -i $i%04d.png -filter_complex "[0:v][1:v]overlay=shortest=1,format=yuv420p[out]" -map "[out]" -c:v qtrle -q 0 $i"_Animation+.mov"; done