From 583a0c493e3c2309523345700442f65c00781d44 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 29 Jan 2024 10:51:47 +0100 Subject: [PATCH] use TC-12 as a first testing source, fix loopback --- .../telecaster/.fluxbox/scripts/launch-url2video.sh | 11 +++++++---- .../.fluxbox/scripts/launch-v4l2loopback.sh | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/home/telecaster/.fluxbox/scripts/launch-url2video.sh b/src/home/telecaster/.fluxbox/scripts/launch-url2video.sh index 212228c..00bdcbb 100755 --- a/src/home/telecaster/.fluxbox/scripts/launch-url2video.sh +++ b/src/home/telecaster/.fluxbox/scripts/launch-url2video.sh @@ -1,14 +1,17 @@ #!/bin/bash -URL=https://e-learning.crfpa.pre-barreau.com/media/Pre-Barreau/CRFPA/2021/Libertes_-_Cours/3cf774cb990d9987/crfpa-libertes-cours-09_16_21-09:45:47.mp4 +#URL=https://e-learning.crfpa.pre-barreau.com/media/Pre-Barreau/CRFPA/2021/Libertes_-_Cours/3cf774cb990d9987/crfpa-libertes-cours-09_16_21-09:45:47.mp4 + +URL=http://TC-12:8080/consume/monitor + +#URL=http://TC-12:9000 VIDEO_SINK_NAME="/dev/video12" AUDIO_SINK_NAME="mix-for-virtual-mic" gst-launch-1.0 uridecodebin uri="$URL" name=uridec do-timestamp=true live=true \ - ! videoconvert \ + ! queue ! videoconvert \ ! v4l2sink device=$VIDEO_SINK_NAME sync=true \ uridec. \ - ! queue \ - ! audioconvert \ + ! queue ! audioconvert \ ! pulsesink device=$AUDIO_SINK_NAME sync=true diff --git a/src/home/telecaster/.fluxbox/scripts/launch-v4l2loopback.sh b/src/home/telecaster/.fluxbox/scripts/launch-v4l2loopback.sh index a5061dc..6570219 100755 --- a/src/home/telecaster/.fluxbox/scripts/launch-v4l2loopback.sh +++ b/src/home/telecaster/.fluxbox/scripts/launch-v4l2loopback.sh @@ -1,3 +1,3 @@ #!/bin/bash -sudo modprobe v4l2loopback devices=1 video_nr=12 card_label="virtual webcam" exclusive_caps=1 max_buffers=2 +sudo modprobe v4l2loopback device=3 video_nr=12 card_label="virtual webcam" exclusive_caps=1 max-buffer=3 -- 2.39.5