12#include "../inc/livestream.h"
14static _Bool streamRunning = 0;
21 -f alsa -ac 1 -thread_queue_size 1024 -ar 44100 -i plughw:0,0 \
22 -f v4l2 -video_size 320x240 -thread_queue_size 16384 -i /dev/video0 \
23 -c:a copy -c:v h264 -b:v 2048k -preset ultrafast -filter:v fps=fps=30 -tune zerolatency \
24 -f flv rtmp:localhost/live \
25 -nostdin -nostats > /var/log/ffmpeg_output.log 2>&1 < /dev/null &");
36 system(
"pidof ffmpeg | xargs kill -9");
_Bool getStreamStatus()
Get the Streaming Status object.
void stopLivestream()
Stop the livestream.
void startLivestream()
Start the livestream.