]> git.parisson.com Git - telecaster-server.git/commitdiff
fix video id dev master release/4.3 4.3.1
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 12 Sep 2026 07:23:25 +0000 (09:23 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 12 Sep 2026 07:23:25 +0000 (09:23 +0200)
bin/streaming/telecaster.py
etc/telecaster/telecaster.yml

index 081c7955a8ab3d051eb47b4a81bfb00bcd712f26..1e1bc62bada0299b058a27be8454759af69c623a 100755 (executable)
@@ -178,7 +178,11 @@ class TeleCaster(Thread):
         params = video["v4l2-ctl"]
         # print(params)
         for param in params:
-            command = "v4l2-ctl -d %s -c %s=%s" % (video["id"], param, params[param])
+            if "device" in video:
+                device = video["device"]
+            else:
+                device = video["id"]
+            command = "v4l2-ctl -d %s -c %s=%s" % (device, param, params[param])
             args = shlex.split(command)
             if self.verbose:
                 print(command)
index cf827625e57294531cb130ad3b7070a93f6540f0..a5235881789c214b360227a0d9b7deef4e264d2e 100644 (file)
@@ -8,7 +8,8 @@ telecaster:
   record_dir: /home/telecaster/monitor/
   video:
     gstreamer:
-      - id: 0
+      - id: 2
+        device: /dev/video2
         name: logitech
         width: 1280
         height: 720