stream-utils

Des scripts pour streamer - retour accueil

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

Log | Files | Refs |

radio (385B)


      1 #! /bin/sh
      2 
      3 # interface son obtenue avec
      4 # pactl list short sources
      5 
      6 id=$(arecord -l | grep ^carte | grep -o [0-9] | head -n1)
      7 ffmpeg -f alsa \
      8        -c:a pcm_s32le \
      9 	   -i hw:0 \
     10 	   -c:a libmp3lame \
     11 	   -f mpegts - |
     12 ffmpeg -f mpegts \
     13        -i - \
     14 	   -c copy -ab 60k output.mp3 \
     15 	   -c copy -ab 60k -content_type audio/mpeg icecast://source:mdp@bebou.netlib.re:1111/radio.mp3