BalenaCam to external website

Hi,

I am very new with Balena and BalenaCam. I follow the instruction in https://www.balena.io/blog/build-a-raspberry-pi-based-network-camera/ and can get BalenaCam activated on my Raspberry Pi 3. I am able to see the streaming video from my pi via the public device url option.

However, I would like to embeded this streaming video to my personal blog/website. Not sure if it’s possible? Please kindly advise. Thank you very much.

Best regards,
leondevil.

Hey @leondevil,

I haven’t tried this, but have you tested embedding the video with an iframe to see if it works?
If so, you can edit the HTML file to better fit your website.

Please let me know if it works, would be an interesting use case!

Hi @dansku,

Thank you very much for your response. I tested an iframe and it seems working. I need to modify the HTML file to fit the iframe.

Anyway, I have another issue with my Raspberry Pi 3 after running and streaming the BalenaCam for 5 minutes. The heat occurs and my pi keeps restarting all the time. Not sure if there is any performance issue or how can I improve this?

Also, is it possible to modify the bitrate/framerate/resolution of the video streaming?

Please kindly advise. Thank you very much.

Best regards,
leondevil.

Hi @leondevil,

Are you sure your Pi is restarting due to overheating and not something else, like a faulty/underspecced power supply or SD card corruption issue?

Hi @xginn8,

I tried to re-deploy multiple times and switch multiple microSD card, but the result still the same.
After running the service more than 5 minutes. There will be a thermometer icon appears at the top right corner as shown in the attached picture.

Not sure if you have any suggestion? Please kindly advise. Thank you very much.

Best regards,
leondevil.

69691226_501340863766309_8420833002182934528_n

Hi @leondevil FYI balenaCam mainly uses webRTC to send the video stream. These connections are p2p. And if many peers connect, the pi will open a new connection to every one of them and send them the video. So if many users request the video stream this will put a considerable strain on the pi.

Hi @mbalamat,

Thank you very much for the informaton. The heat issue is resolved. :slight_smile:

Best regards,
Benjaporn B.