]> git.parisson.com Git - telecaster-server.git/commitdiff
use pw in py script
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 6 Oct 2024 14:05:38 +0000 (16:05 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 6 Oct 2024 14:05:38 +0000 (16:05 +0200)
bin/streaming/telecaster.py

index af4336b7027dd01d4e2007cdb2ec1eb9882c0367..6f73bc5e3596eb8c10c14a5e63af0c013301328d 100755 (executable)
@@ -10,14 +10,14 @@ from copy import deepcopy
 
 #    ! queue ! clockoverlay time-format="%D %H:%M:%S" \
 
-VIDEO_PIPELINE_BASE="""v4l2src device=/dev/video{id} ! {format}, width={width}, height={height}, framerate={framerate}/1  \
+VIDEO_PIPELINE_BASE="""pipewiresrc client-name="video_streaming" \
     ! queue ! {decoder} \
     ! queue min-threshold-time={video_delay} ! videoflip method={flip} \
     ! queue ! timecodestamper first-timecode-to-now=true \
     ! queue ! videoconvert \
     ! queue ! vp8enc threads=4 deadline=2 \
     ! queue ! muxout. \
-    jackaudiosrc connect=2 ! audio/x-raw, format=F32LE, channels={channels} \
+    pipewiresrc client-name="video_streaming" ! audio/x-raw, format=F32LE, channels={channels} \
     ! queue min-threshold-time={audio_delay} ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
     ! queue ! volume volume={gain_pre} \
     ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
@@ -30,7 +30,7 @@ VIDEO_PIPELINE_BASE="""v4l2src device=/dev/video{id} ! {format}, width={width},
     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live_{id}.webm
 """
 
-AUDIO_PIPELINE_BASE="""jackaudiosrc connect=2 ! audio/x-raw, format=F32LE, channels={channels} \
+AUDIO_PIPELINE_BASE="""pipewiresrc client-name="audio_streaming" ! audio/x-raw, format=F32LE, channels={channels} \
     ! queue ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
     ! queue ! volume volume={gain_pre} \
     ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \