From d332a99154945cfebadbf01b56f6033467e1c5ef Mon Sep 17 00:00:00 2001 From: Brian Woods Date: Mon, 6 Feb 2023 19:50:14 -0500 Subject: init push Added: firejail - just scripts for firejail options l2w_snd - piping sound from linux to windows over the network misc_scripts - misc scripts.... proton_sieve - proton sieve file for mainbox sorting sys_ctrl - system control scripts --- l2w_snd/listen.bat | 13 +++++++++++++ l2w_snd/winsnd | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100755 l2w_snd/listen.bat create mode 100755 l2w_snd/winsnd (limited to 'l2w_snd') diff --git a/l2w_snd/listen.bat b/l2w_snd/listen.bat new file mode 100755 index 0000000..30d77b3 --- /dev/null +++ b/l2w_snd/listen.bat @@ -0,0 +1,13 @@ +:: SPDX-FileCopyrightText: 2023 Brian Woods +:: SPDX-License-Identifier: GPL-2.0-or-later + +C:\ + +set LSTN_PORT=18181 +set FFMPEG_PATH=C:\Users\user\ffmpeg-master-latest-win64-gpl\bin + +cd %FFMPEG_PATH% + +ffplay.exe -nodisp rtp://0.0.0.0:%LSTN_PORT% + +exit diff --git a/l2w_snd/winsnd b/l2w_snd/winsnd new file mode 100755 index 0000000..36493ef --- /dev/null +++ b/l2w_snd/winsnd @@ -0,0 +1,10 @@ +#!/bin/bash +# SPDX-FileCopyrightText: 2023 Brian Woods +# SPDX-License-Identifier: GPL-2.0-or-later + +WIN_IP="10.0.8.60" +WIN_PORT="18181" +AUDIO_DEV="alsa_output.usb-Lenovo_ThinkPad_USB-C_Dock_Gen2_USB_Audio_000000000000-00.analog-stereo.monitor" + +# works, but mp3 +ffmpeg -f pulse -i "$AUDIO_DEV" -ac 2 -acodec libmp3lame -ar 44100 -ab 256000 -f rtp rtp://$WIN_IP:$WIN_PORT -- cgit v1.2.3