Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for H264 encoding #37

Closed
thbl opened this issue Sep 20, 2022 · 11 comments
Closed

Add support for H264 encoding #37

thbl opened this issue Sep 20, 2022 · 11 comments
Labels
feature request feature request

Comments

@thbl
Copy link

thbl commented Sep 20, 2022

Is your feature request related to a problem? Please describe

H264 would make stream more smooth and save bandwidth

Describe the solution you'd like

Add support for H264 encoding in mainsail / crownsnest

Describe alternatives you've considered

No response

Additional information

No response

@thbl thbl added the feature request feature request label Sep 20, 2022
@thbl
Copy link
Author

thbl commented Sep 20, 2022

There is even an integration example in the ustream repo :)
https://github.com/pikvm/ustreamer#janus

@KwadFan
Copy link
Member

KwadFan commented Sep 30, 2022

Well,

I dont know when it will happen, but I plan to use a new backend in the future.
That will have more then a janus webrtc server ;)

Closing that for now, stay tuned.

@KwadFan KwadFan closed this as completed Sep 30, 2022
@ph0tic
Copy link

ph0tic commented Nov 9, 2022

just wanted to show a little love for this request. just realized the used c920 i bought avoided the h.264 purge (maybe?) and really would love a framerate higher than a constant... 2-4fps... even if its just 8, or even 6. or 5.

@NonaSuomy
Copy link

Does this work now with the new backend?

@meteyou meteyou reopened this Feb 19, 2023
@meteyou
Copy link
Member

meteyou commented Feb 19, 2023

not really... we tested https://github.com/ayufan/camera-streamer but it doesn't work really stable (mainsail PR for the client: mainsail-crew/mainsail#1275). we also implemented a HLS client for the RTSP mode in crowsnest. this works fine, but it has a really long delay (too long for my taste)

@NonaSuomy
Copy link

NonaSuomy commented Feb 20, 2023

Maybe try using the stuff that PiKVM built. I believe all his stuff is customized for low latency feeds.
https://docs.pikvm.org/webrtc/

@meteyou
Copy link
Member

meteyou commented Feb 20, 2023

@NonaSuomy i tested this one from PiKVM: https://github.com/pikvm/ustreamer/blob/master/docs/h264.md

But it looks like this kills the snapshot URL. We need a solution to have a low-latency stream + snapshots for timelapse.

@NonaSuomy
Copy link

NonaSuomy commented Feb 20, 2023

Can you verbosely explain how you tested it? If so then I will set it up the same then ask him for assistance on how to restore a snapshot url as well?

I also require the snapshot url to work for the purpose of QRCode scanning.

@NonaSuomy
Copy link

7AF9A6C3-7AD4-4A63-9AF7-ADC95D3EC1FF

@meteyou
Copy link
Member

meteyou commented Feb 20, 2023

I followed the guide from pikvm and then started the webcam with it...

KwadFan added a commit that referenced this issue Mar 11, 2023
This introduces camera-streamer as streamer option
via `mode: multi`

camera-streamer is a feature packed stream service.
It is capable to deliver mjpg/snapshots/webrtc and rtsp

Limited to raspberry pi sbc's for now.

This should also resolv
Feature request #51
Feature request #37
Fixes #83
Closes #85
Fixes #89

BREAKING CHANGES:

Dropping support for Debian Buster based images and kernels older than
5.15y

Dropping RTSP support due aler9/simple-rtsp-server

Dropping usage of ffmpeg

No support anymore for Raspicam V1 (EOL)

Signed-off-by: Stephan Wendel <me@stephanwe.de>

Signed-off-by: Stephan Wendel <me@stephanwe.de>
@KwadFan
Copy link
Member

KwadFan commented May 22, 2023

I think we could close this for now since the newly added backend "camera-streamer" has inbuilt webrtc and there for h264 support at least on Pis with "bullseye" distros ...

@KwadFan KwadFan closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

5 participants