camera-streamer
camera-streamer copied to clipboard
Feature Request: streamline commandline options.
Hi,
To use camera-streamer as an drop in replacement you should use ustreamer like coomandline options. Also would it be great to match unix philosophy/style commandline options with short hand and long descriptive style.
For ustreamer compatibility:
-d /dev/path, --device /dev/path Path to V4L2 device. Default: /dev/video0.
-r WxH, --resolution WxH Initial image resolution. Default: 640x480.
-m fmt, --format fmt Image format. Available: YUYV, UYVY, RGB565, RGB24, JPEG; default: YUYV. In this special case you should use it if there is a inbuilt HW decoder in the desired device.
-f N, --desired-fps N Desired FPS. Default: maximum possible.
-c type, --encoder type Use specified encoder. It may affect the number of workers.
CPU ─ Software MJPEG encoding (default).
HW ─ Use pre-encoded MJPEG frames directly from camera hardware.
M2M-VIDEO ─ GPU-accelerated MJPEG encoding.
M2M-IMAGE ─ GPU-accelerated JPEG encoding.
NOOP ─ Don't compress MJPEG stream (do nothing).
This should also match your behavior and is highly discaussable if there is a need for.
This would be a general recommendation from my side. Those are flags that are users might be used to.
In terms of reusability would be great to have
-s address, --host address Listen on Hostname or IP. Default: 127.0.0.1.
-p N, --port N Bind to this TCP port. Default: 8080.
--static path Path to dir with static files instead of embedded root index page. Symlinks are not supported for security reasons. Default: disabled.
For the last option I will also open an Feature Request.
Regards Kwad