Des scripts pour streamer - retour accueil
git clone git://bebou.netlib.re/stream-utils
Log | Files | Refs |
commit 383a48d6a7f44682207539ab57b9f691dc3c176d Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 29 May 2024 20:23:44 +0200 Premier commit screengrab=streamer son écran audiograb=capturer le son de sa carte webcam=streamer sa webcam micro=streamer son micro Evidemment le mdp est faux Diffstat:
A | micro | | | 8 | ++++++++ |
A | screengrab | | | 10 | ++++++++++ |
A | soundgrab | | | 9 | +++++++++ |
A | webcam | | | 11 | +++++++++++ |
4 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/micro b/micro @@ -0,0 +1,8 @@ +#! /bin/sh + +ffmpeg \ + -f alsa -i default \ + -c:a libvorbis -b:a 96K \ + -content_type application/ogg \ + icecast://source:password@bebou.netlib.re:1111/coucou.ogg + diff --git a/screengrab b/screengrab @@ -0,0 +1,10 @@ +#! /bin/sh + +ffmpeg \ + -f x11grab \ + -framerate 30 \ + -i :0.0 \ + -s "1280x720" \ + -threads 4 \ + icecast://source:password@bebou.netlib.re:1111/coucou.mpeg + diff --git a/soundgrab b/soundgrab @@ -0,0 +1,9 @@ +#! /bin/sh + +# interface son obtenue avec +# pactl list short sources + +ffmpeg -f pulse \ + -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor \ + -ac 2 \ + output.mkv diff --git a/webcam b/webcam @@ -0,0 +1,11 @@ +#! /bin/sh + +ffmpeg \ + -f v4l2 -video_size 426x240 -framerate 10 -i /dev/video0 \ + -f alsa -i default \ + -f webm -cluster_size_limit 2M -cluster_time_limit 5100 -content_type video/webm \ + -c:a libvorbis -b:a 46K \ + -c:v libvpx -b:v 200K -crf 30 -g 10 -deadline realtime -threads 4 \ + icecast://source:password@bebou.netlib.re:1111/coucou 2> /dev/null + +