Skip to content

[Request] I'm going to add H264/HLS support. #649

@chudsaviet

Description

@chudsaviet

Hi, @guysoft , @foosel .
I have a working prototype of HLS streaming from RaspberryPi, through not embedded it to OctoPrint UI yet.
However, it's working on a separate web page in all browsers, and provides side MJPG frames for timelapses.

It have couple disadvantages:

  1. By design, HLS have lag. I was able to bring it down to 3 - 5 sec.
  2. I was not able to make it work with MJPG-streamer at the same time due to V4L2 limitations - one consumer per device.

But it have advantages:

  1. H264, which is a effective video codec.
  2. No more MJPG-streamer bugs.
  3. Uses Raspberry Pi hardware H264 encoder.
  4. Uses standard HTML5 video tag and HLS.js lib, which is well supported.
  5. Able to add audio.
  6. Able to carry multiple resolutions and bitrates.
  7. Future-proof. We will be able to switch to HEVC or AV1 when they become supported.

I just wanted your opinion on if the 3-5 sec lag will be acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions