ref: 45a55aa02ac58a1300d5e44a2fc6b125dd38118b
parent: 17693941e20ab01f5d363d3ea4fdd33800bf59b0
author: qwx <qwx@sciops.net>
date: Tue Apr 19 19:13:19 EDT 2022
twitch/rec: use higher audio bitrate
--- a/bin/twitch
+++ b/bin/twitch
@@ -43,7 +43,7 @@
if(~ $#h 0)
window -hide -m rc -c 'dd -bs 44100 -if /dev/zero -of /mnt/mix/audio'
video/hj264 $parm $scr |\
- video/rtmp -a <{audio/aacenc -b <$audio} \
+ video/rtmp -a <{audio/aacenc -B 262144 -b <$audio} \
`{cat /tmp/t} &
if(! ~ $#pl 0)
bof
--- a/bin/w520rec
+++ b/bin/w520rec
@@ -26,5 +26,5 @@
read -n 1 >/dev/null
rimport -u qwx w500 '#u' /n/c
-window -m rc -c 'audio/aacenc -b </n/c/audioin >/tmp/rec.`{date -t}^.aac'
+window -m rc -c 'audio/aacenc -B 262144 -b </n/c/audioin >/tmp/rec.`{date -t}^.aac'
video/hj264 -f 50 -k 1000 -Q 50 /dev/screen > /tmp/rec.^`{date -t}^.264