summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-19 17:47:09 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-19 17:47:09 +0100
commitc57478f0af16760a7c439243f5e01af7c8d7230b (patch)
tree82ba7182187973247c9aca1a87ac4f16672cba60
parentRemoved retarded alias (diff)
downloaddotfiles-bsd-c57478f0af16760a7c439243f5e01af7c8d7230b.tar.gz
dotfiles-bsd-c57478f0af16760a7c439243f5e01af7c8d7230b.tar.bz2
dotfiles-bsd-c57478f0af16760a7c439243f5e01af7c8d7230b.tar.xz
dotfiles-bsd-c57478f0af16760a7c439243f5e01af7c8d7230b.tar.zst
dotfiles-bsd-c57478f0af16760a7c439243f5e01af7c8d7230b.zip
Added ffmpeg scripts
Diffstat (limited to '')
-rw-r--r--.config/dunst/dunstrc4
-rwxr-xr-x.local/bin/recscreen22
-rwxr-xr-x.local/bin/strscreen24
3 files changed, 48 insertions, 2 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index 6917eff..191f475 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -1,7 +1,7 @@
[global]
monitor = 0
follow = none
- geometry = "500x5-40+40"
+ geometry = "1500x5-40+40"
indicate_hidden = yes
shrink = yes
transparency = 0
@@ -23,7 +23,7 @@
sort = yes
idle_threshold = 120
- font = NotoSans Nerd Font 14
+ font = Noto Sans Nerd Font 17
line_height = 0
markup = full
diff --git a/.local/bin/recscreen b/.local/bin/recscreen
new file mode 100755
index 0000000..d5079eb
--- /dev/null
+++ b/.local/bin/recscreen
@@ -0,0 +1,22 @@
+#!/usr/local/bin/dash
+
+ffmpeg -y \
+ -f x11grab -video_size 1920x1080 -framerate 24 -i $DISPLAY \
+ -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \
+ -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \
+ -filter_complex '
+ anlmdn=s=1,
+ highpass=f=140, lowpass=f=16000,
+ equalizer=f=350:t=h:w=200:g=-5.5,
+ equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5,
+ equalizer=f=2500:t=h:w=1000:g=1.5,
+ deesser=i=0.5:m=0.5:f=0.5,
+ acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1,
+ amix=inputs=2
+ ' \
+ -vcodec libx264 -g 24 -b:v 1M \
+ -acodec aac -b:a 320k -ar 44100 -ac 2 \
+ -pix_fmt yuv420p \
+ screen_$(date "+%Y-%m-%d_%Hh%M").mkv
+
+# vim: filetype=sh
diff --git a/.local/bin/strscreen b/.local/bin/strscreen
new file mode 100755
index 0000000..822bb3b
--- /dev/null
+++ b/.local/bin/strscreen
@@ -0,0 +1,24 @@
+#!/usr/local/bin/dash
+
+ffmpeg -y \
+ -f x11grab -s 1920x1080 -framerate 8 -i $DISPLAY \
+ -f pulse -ac 2 -ar 44100 -i oss_input.dsp0 \
+ -f pulse -ac 2 -ar 44100 -i oss_output.dsp0.monitor \
+ -filter_complex '
+ anlmdn=s=1,
+ highpass=f=140, lowpass=f=16000,
+ equalizer=f=350:t=h:w=200:g=-5.5,
+ equalizer=f=600:t=h:w=200:g=0.5, equalizer=f=1000:t=h:w=100:g=-5.5,
+ equalizer=f=2500:t=h:w=1000:g=1.5,
+ deesser=i=0.5:m=0.5:f=0.5,
+ acompressor=threshold=0.1:ratio=8:attack=150:release=40:knee=1,
+ amix=inputs=2
+ ' \
+ -s 1280x720 -c:v libx264 -b:v 300k -preset ultrafast \
+ -acodec aac -b:a 160k -ar 44100 -ac 2 \
+ -pix_fmt yuv420p \
+ -threads 0 \
+ -f flv \
+ rtmp://live-lax.twitch.tv/app/$(pass twitchkey)
+
+# vim: filetype=sh