Stream raspberry pi camera via Http Live Stream HLS
Stream raspberry pi camera via Http Live Stream HLS
Use ffmpeg. Avconv produces a lot of errors multiplexing the output of raspivid
/usr/local
. So you will have e.g.: /usr/local/ffmpeg-3.3.2-armhf-32bit-static/
.create symlinks for /usr/local/ffmpeg-/usr/local/bin
.
put streamCamHls in /usr/local/bin
.
files like movie*.ts, movie.m3u8 shoud be written to OUTDIR
now install a webserver, like nginx.
/etc/nginx/conf.d/enable-symlinks.conf
: contents:
disable_symlinks off;
create a symlink from OUTDIR to nginx http dir (usually /var/www/html
.)
fire up a video player, like vlc on a computer that can reach the raspi, enter the url:
http://
Please use a ramdisk for OUTDIR, like /dev/shm
, standard on Raspbian. Writing to your flash card will
wear it out quickly.
systemctl daemon-reload
systemctl enable camhls
systemctl start camhls