kiauh icon indicating copy to clipboard operation
kiauh copied to clipboard

Switch from mjpg_streamer to ustreamer

Open kageurufu opened this issue 2 years ago • 11 comments

Is your feature request related to a problem? Please describe

mjpg_streamer is terrible

Describe the solution you'd like

ustreamer is way better

Describe alternatives you've considered

If not switch altogether, add ustreamer as a (default) alternative?

Additional information

No response

kageurufu avatar Jan 27 '22 20:01 kageurufu

Hi, i actually plan to switch to https://github.com/mainsail-crew/crowsnest one day. I think that would actually also fit your feature request, right?

dw-0 avatar Jan 27 '22 21:01 dw-0

Yeah, that would totally work!

I've been helping a few other people switch to ustreamer to fix issues, crowsnest looks like it defaults to ustreamer.

Awesome :)

On Thu, Jan 27, 2022 at 2:19 PM th33xitus @.***> wrote:

Hi, i actually plan to switch to https://github.com/mainsail-crew/crowsnest one day. I think that would actually also fit your feature request, right?

— Reply to this email directly, view it on GitHub https://github.com/th33xitus/kiauh/issues/170#issuecomment-1023647713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7NJ2ISA3DOLYZVFDT6YLUYGZEZANCNFSM5M7AMDIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

kageurufu avatar Jan 30 '22 22:01 kageurufu

just my 5 cents. switch to crownest will break all non-raspberry installations. crownest using raspios specific features and package dependencies. i don't think mainsail team want to adjust crownest to make it fully working on different distros.

CODeRUS avatar Feb 13 '22 01:02 CODeRUS

@CODeRUS can you explain what the exact points are which make it break? At the moment i am not really familiar with it, since it has rather low priority to get included.

dw-0 avatar Feb 13 '22 08:02 dw-0

Main problem is the crows nest install script.

  • hardcoded user ‘pi’ in unit file
  • Unconditional removal of existing folders (like mstreamer)
  • dependency on libraspberrypi-dev
  • Downloads a binary blob (arm64) for golang

susisstrolch avatar Feb 13 '22 09:02 susisstrolch

Okay i see, thanks for explaining. The first two bulletpoints would be managable by myself if i decide to include crowsnest, but the last two im not so sure about. Especially the libraspberrypi-dev dependency seems to become a troublemaker here? Well.. we will see where development of crowsnest will head, its still in early development afaik.

dw-0 avatar Feb 13 '22 12:02 dw-0

The dependency isn’t really a problem, because it’s in an aptget block and can get factored out. I already started those changes. Also the binary blob isn’t a real problem, can get ifdefed based on mcu arch.

susisstrolch avatar Feb 13 '22 12:02 susisstrolch

as soon as mainsail crew fix such problems

CODeRUS avatar Feb 13 '22 13:02 CODeRUS

I will provide, multiarch support, but first I want to get it running perfectly with webrtc on Pis especcially MainsailOS. Most Parts in the nightly branch are already prepared for that. There some bits left to do. ex: webcamd.service, libraspberry-dev...

Promised! You x86/amd64 guys will get crownest ported ;)

Regards

KwadFan avatar Feb 13 '22 14:02 KwadFan

@susisstrolch

  • Unconditional removal of existing folders (like mstreamer)

What exactly do you mean wiht that? It isnt Unconditional, by running the script you have to agree that existing webcamd gets removed, in this case also its dependend binary/git repo (mjpg-streamer).

The binary blobs will stay but to clarify this. The used GO Package in Buster is way to old to build the binary, but I will replace that by prebuild binarys from the authors, so that it is obsolete to have Go installed. Ustreamer will stay as Submodule, to grant that everything works as expected.

I have setup an Debian Bullseye VM ( x86_64 ) and started developing a install chain for that. But please keep in mind that the focus is on "PI" Distros, because I am not able to provide h264 streams on that limited machines encoded through the cpu. So as there is no OMX in x86 it will have downsides using such a machine.

If this isnt that way you wish to have feel free and fork it :)

Regards

KwadFan avatar Feb 13 '22 17:02 KwadFan

So, if some of you x86 guys are crazy enough to test some new stuff:

https://github.com/mainsail-crew/crowsnest/tree/feat/multiarch

This includes a webrtc server but, it isnt implemented in Mainsail yet. Pure Alpha Stuff.

If you setup webrtc as mode,you can reach a simple test page via http://printerip:8085/

If you find Bugs or something that does not work please open a Issue on crowsnest repo with [feat-x86] in Header.

Regards

KwadFan avatar Feb 14 '22 19:02 KwadFan

Today, a crowsnest installer got merged into KIAUH. So this issue can be closed and marked as solved.

dw-0 avatar Feb 03 '23 21:02 dw-0