stream-utils

Des scripts pour streamer - retour accueil

git clone git://bebou.netlib.re/stream-utils

Log | Files | Refs |

commit c9a38dae67b5b972dffd3738c739e429dcd7686f
parent e1a73d4539249ea8b72f544a1ba6cc70a3fe2a5a
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Sat, 14 Jun 2025 11:39:47 +0200

Ajout du nécessaire pour streamer la radio

Diffstat:
Aradio | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/radio b/radio @@ -0,0 +1,15 @@ +#! /bin/sh + +# interface son obtenue avec +# pactl list short sources + +id=$(arecord -l | grep ^carte | grep -o [0-9] | head -n1) +ffmpeg -f alsa \ + -c:a pcm_s32le \ + -i hw:0 \ + -c:a libmp3lame \ + -f mpegts - | +ffmpeg -f mpegts \ + -i - \ + -c copy -ab 60k output.mp3 \ + -c copy -ab 60k -content_type audio/mpeg icecast://source:mdp@bebou.netlib.re:1111/radio.mp3