helloSystem / helloSystem/Utilities
Screencast utility
- Dominant language
- Python
- Stars
- 29
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
Add a Screencast utility that does something sensible to get good audio quality, e.g.,
```
#!/bin/sh
# Sound filters from
# https://dsp.stackexchange.com/questions/22442/ffmpeg-audio-filter-pipeline-for-speech-enhancement
PCM=/dev/$(cat /dev/sndstat | grep rec | tail -n 1 | cut -d ":" -f 1)
DSP=$(echo "${PCM}" | sed -e 's|pcm|dsp|g')
echo $DSP
if [ -e /tmp/screencast.mp4 ] ; then
pkill -f ffmpeg
pkill -f screenkey
notify-send "Stopped because /tmp/screencast.mp4 exists"
sleep 1
xdg-open /tmp/screencast.mp4
else
screenkey &
# ffmpeg -y -thread_queue_size 1024 -f oss -i "${DSP}" -framerate 30 -video_size 1920x1080 -f x11grab -i :0 -c:v libx264 -b:v 2000k -maxrate 2000k -bufsize 5000k -g 50 -flags +global_header -vf format=yuv420p -filter:a "volume=10" -c:a aac -b:a 128k /tmp/screencast.mp4
ffmpeg -y -thread_queue_size 1024 -f oss -i "${DSP}" -framerate 25 -f x11grab -i :0 -c:v libx264 -b:v 2000k -maxrate 2000k -bufsize 5000k -g 50 -flags +global_header -vf format=yuv420p -vf scale=-1:720 -af highpass-frequency=300 -af lowpass-frequency=4000 -af "bass=frequency=100:gain=-50" -af "bandreject=frequency=200:width_type=h:width=200" -af "compand=attacks=.05:decays=.05:points=-90/-90 -70/-90 -15/-15 0/-10:soft-knee=6:volume=-70:gain=10" -c:a aac -b:a 128k /tmp/screencast.mp4
fi
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.