]> git.parisson.com Git - telecaster-server.git/commitdiff
chmod
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 4 Feb 2025 11:30:51 +0000 (12:30 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 4 Feb 2025 11:48:47 +0000 (12:48 +0100)
etc/telecaster/telecaster_local.yml [new file with mode: 0644]
tests/tc_video_pw_local.sh [new file with mode: 0755]

diff --git a/etc/telecaster/telecaster_local.yml b/etc/telecaster/telecaster_local.yml
new file mode 100644 (file)
index 0000000..18b11d3
--- /dev/null
@@ -0,0 +1,31 @@
+telecaster:
+  server:
+    ip: 127.0.0.1
+    port: 8000
+    password: hackme
+    type: icecast
+  video:
+    -
+      id: 0
+      width: 848
+      height: 480
+      framerate: 30
+      flip: rotate-180
+      zoom: 140
+      sharpness: 144
+      format: image/jpeg
+      decoder: jpegdec
+      # logitech: true
+  audio:
+    channels: 2
+    opus_bitrate: 96000
+    mp3_quality: 4.0
+    gain_pre: 2.5
+    gain_post: 1.5
+    jack:
+      driver: alsa
+      samplerate: 48000
+      ring_buffers: 3
+      phw: 3
+      chw: 3
+
diff --git a/tests/tc_video_pw_local.sh b/tests/tc_video_pw_local.sh
new file mode 100755 (executable)
index 0000000..083aee9
--- /dev/null
@@ -0,0 +1,19 @@
+#      !/usr/bin/env bash
+
+set -e
+
+# Default TeleCaster video parameters
+
+source /etc/telecaster/telecaster.conf
+
+VIDEO_WIDTH=1280
+VIDEO_HEIGHT=720
+VIDEO_FRAMERATE=30
+VIDEO_FORMAT="image/jpeg"
+
+gst-launch-1.0 pipewiresrc client-name="video_streaming" path="247" \
+       ! $VIDEO_FORMAT, width=$VIDEO_WIDTH, height=$VIDEO_HEIGHT, framerate=$VIDEO_FRAMERATE/1 \
+       ! queue ! jpegdec \
+       ! queue ! videoflip method=clockwise \
+       ! queue ! videoconvert \
+       ! queue ! autovideosink