]> git.parisson.com Git - telecaster-server.git/commitdiff
Merge remote-tracking branch 'origin/release/4.1-jack' into dev
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 8 Jun 2025 22:46:18 +0000 (00:46 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 8 Jun 2025 22:46:18 +0000 (00:46 +0200)
1  2 
bin/streaming/telecaster.py
bin/streaming/telecaster.sh

index 52600fe61e623642f4e7fdcfbcf09506ffe1a294,b5b88a205b054742398dcc80605c570cfd9b4438..ae4ed3a9e106ca45d0e20b6634c8a622b237e86b
@@@ -10,41 -10,37 +10,42 @@@ from threading import Threa
  from copy import deepcopy
  
  
- VIDEO_PIPELINE_BASE="""{video_source} {video_options} client-name="webm_streaming_{id}_video" \
+ VIDEO_PIPELINE_BASE="""{video_source} {video_options} \
      ! {format}, width={width}, height={height}, framerate={framerate}/1 \
 -    ! queue ! {decoder} \
 -    ! queue ! videoflip method={flip} \
 -    ! queue ! videoconvert \
 -    ! queue ! vp8enc threads=4 deadline=2 target-bitrate={vp8_bitrate} \
 -    ! queue ! muxout. \
 +    ! {decoder} \
 +    ! videoflip method={flip} \
 +    ! videoconvert \
 +    ! vp8enc threads=4 deadline=2 target-bitrate={vp8_bitrate} \
 +    ! muxout. \
      {audio_source} {audio_options} client-name="webm_streaming_{id}_audio" ! 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 \
 -    ! queue ! volume volume={gain_post} \
 -    ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
 -    ! queue ! audioconvert \
 -    ! queue ! opusenc bitrate={opus_bitrate} \
 -    ! queue ! muxout. \
 +    ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
 +    ! volume volume={gain_pre} \
 +    ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
 +    ! volume volume={gain_post} \
 +    ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
 +    ! audioconvert \
 +    ! opusenc bitrate={opus_bitrate} \
 +    ! muxout. \
      webmmux streamable=true name=muxout \
-     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live_{id}.webm
+     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live_{id}.webm > /dev/null
  """
  
- AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} client-name="mp3_audio_streaming" ! audio/x-raw, format=F32LE, channels={channels} \
-     ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
-     ! volume volume={gain_pre} \
-     ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
-     ! volume volume={gain_post} \
-     ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
-     ! audioconvert \
-     ! lamemp3enc quality={mp3_quality} \
-     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live.mp3
 -AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} ! audio/x-raw, format=F32LE, channels={channels} \
++AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} \
++    ! 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 \
+     ! queue ! volume volume={gain_post} \
+     ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
+     ! queue ! audioconvert \
+     ! queue ! lamemp3enc quality={mp3_quality} \
+     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live.mp3 > /dev/null
  """
  
 +BOOT_TIME_DELAY = 0
 +
 +DEFAULT_CONFIG_FILE = "/etc/telecaster/telecaster.yml"
 +
  
  class TeleCasterGStream(Thread):
  
index b245e70cf3be1211230c1624f82baf8449e6cfb1,4d35a985e1595135894c677b0f439cbb51ba71ec..f9c4580a659ec50d5ecd230b3553df3ee54baab7
@@@ -2,30 -2,34 +2,39 @@@
  
  set -e
  
 -source /etc/telecaster/telecaster.conf
 -
 +#source /etc/telecaster/telecaster.conf
+ #TELECASTER_PATH=/srv/telecaster/telecaster-server/
+ #XDG_RUNTIME_DIR="/run/user/1000"
+ konsole &
  
 -# JACKD
 -#
 -jackd $JACK_OPTIONS &
 -sleep 2
 -catia &
 +# AUDIO
  
- # jackd $JACK_OPTIONS &
- # qjackctl &
+ # PIPEWIRE
+ #
+ #pipewire &
+ #pipewire-pulse &
+ # other non relevant stuff
+ #dbus-run-session dwm 2> ~/.dwm.log &
++# qpwgraph &
++
++# JACK
++jackd $JACK_OPTIONS &
++qjackctl &
++catia &
 +
 +#sleep 2
 +
- #pipewire &
- qpwgraph &
 +
 +#sleep 2
  
  # TELECASTER
 -sleep 2
 -# qjackctl &
 -#sleep 3
 -/srv/telecaster/telecaster-server/bin/streaming/telecaster.py /etc/telecaster/telecaster.yml &
 -#sleep 3
  
 -# JACK ports setup
 +/srv/telecaster/telecaster-server/bin/streaming/telecaster.py &
 +
- #sleep 3
- konsole &
 +
 +
 +# Audio ports setup
  #
  # 1: L
  # 2: R