libcamera-vid is simpler to use and can stream directly to RTMP:
And here's a version that adds audio as well:
Code:
libcamera-vid -t 0 --inline --width 854 --height 480 --framerate 24 --bitrate 500000 --codec libav --libav-format flv -n -o rtmp://a.rtmp.youtube.com/live2/<KEYS>
And here's a version that adds audio as well:
Code:
libcamera-vid -t 0 --inline --width 854 --height 480 --framerate 24 --bitrate 500000 --codec libav --libav-format flv --libav-audio --audio-bitrate 192000 --av-sync 200000 -n -o rtmp://a.rtmp.youtube.com/live2/<KEYS>
Statistics: Posted by phennessey — Fri Aug 30, 2024 8:26 pm