iizukanao / picam-streamer

Out-of-the-box SD card image for live streaming with Raspberry Pi
MIT License
62 stars 6 forks source link

For school.... #4

Closed ArchGalileu closed 7 years ago

ArchGalileu commented 7 years ago

Hello iizukanao

How to enable HLS because mobile ;)

Best regards ArchGalileu

iizukanao commented 7 years ago

@ArchGalileu Hi, sorry for the late reply!

Login via SSH to your Pi, then edit /home/pi/picam-streamer/lib/server.js line 44 and add --hlsdir and /home/pi/public/hls to the command line options. The result will look like:

picam = spawn('nice', ['-n', '-20', 'ionice', '-c1', '-n0', 'sudo', '-u', "#" + PICAM_UID, PICAM_PATH, '--rtspout', '--alsadev', 'hw:1,0', '--rotation', '180', '--hlsdir', '/home/pi/public/hls'], {

Then, reboot your Pi. After reboot, you can access HLS at http://YOUR_PI_IP_ADDRESS/hls/index.m3u8

ArchGalileu commented 7 years ago

@iizukanao Thank you me and the kids apreciate ;)

Best regards

iizukanao commented 7 years ago

@ArchGalileu You're welcome. Please let me know if you have any questions.