shithub: rtmp

Download patch

ref: fbf19d0c31e7597f3e31c40b8c55f4dc0bd047dd
parent: 55fd4285c635d6e55c6fa440cd523c264be5bf4a
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Aug 8 12:49:40 EDT 2021

readme: add audio information

--- a/README.md
+++ b/README.md
@@ -18,4 +18,19 @@
 
 	video/hj264 -f 10 /dev/screen | video/rtmp -a <{audio/aacenc </dev/audio} rtmp://....
 
-Audio loopback isn't ready yet.
+For audio loopback you can do the following:
+
+Install kvik's `mq` and use it for audio:
+
+	# in the window that produces the audio (a game or something)
+	mq -s audio -m /n/audio
+	touch /n/audio/audio
+	bind /n/audio/audio /dev/audio
+
+	# in another window, to be able to hear yourself
+	mount /srv/audio /n/audio
+	dd -if /n/audio/audio -of /dev/audio
+
+	# streaming, third window
+	mount /srv/audio /n/audio
+	video/hj264 -f 30 /dev/screen | video/rtmp -a <{audio/aacenc < /n/audio/audio} $url