Added in version 3.60. See v4l2loopback for setup, then use the v4l2loopback
output plugin to stream to OBS:
$ lebiniou [other arguments] -o SDL2,v4l2loopback
The default is to stream to /dev/video2
, to change this:
$ LEBINIOU_V4L2LOOPBACK=/dev/video123 lebiniou [other arguments] -o SDL2,v4l2loopback
or:
$ export LEBINIOU_V4L2LOOPBACK=/dev/video123 $ lebiniou [other arguments] -o SDL2,v4l2loopback
You can do RTMP streaming using the RTMP
output plugin. You need ffpmpeg
installed. For example, to run lebiniou with the SDL2
and RTMP
plugins:
$ lebiniou [other arguments] -o SDL2,RTMP
vlc
: connect to rtmp://localhost/live/stream?psk=key
You can change the stream URL by setting the LEBINIOU_RTMP_URL
environment variable, like this:
LEBINIOU_RTMP_URL="rtmp://stream.example.com/live/myStream?psk=myKey" lebiniou [other arguments] -o SDL2,RTMP
Encoding is done using ffmpeg
, with these arguments:
-loglevel quiet -re -vcodec ppm -f image2pipe -i pipe: -c:v libx264 -b:v 5M -pix_fmt yuv420p -c:a:0 libfdk_aac -b:a:0 480k -f flv
This can be changed by setting the RTMP_FFMPEG_ARGS
environment variable. Feel free to tell us if you find something better !