jacksonliam / mjpg-streamer

Fork of http://sourceforge.net/projects/mjpg-streamer/
3.03k stars 1.23k forks source link

FR: Support for YU12 #318

Open hapklaar opened 3 years ago

hapklaar commented 3 years ago

It's possible to use most Canon and Nikon DSLR camera's, which have the live view feature, as a webcam on Linux. Unfortunately the camera's only output in YU12, which is currently not supported by mjpg-streamer and as such can't be used in OctoPrint or Fluidd (webcamd).

Would you consider adding support for YU12?

burnbabyburn commented 3 years ago

That would be awesome! A Huwaei P8Lite (with broken wifi) connected via usb and droidcam is showing up as a Yu12 device also!

Driver Info: Driver name : Droidcam Card type : Droidcam Bus info : platform:v4l2loopback_dc-000 Driver version : 5.10.60 Capabilities : 0x85200001 Video Capture Read/Write Streaming Extended Pix Format Device Capabilities Device Caps : 0x85200001 Video Capture Read/Write Streaming Extended Pix Format Device Capabilities Priority: 0 Video input : 0 (loopback: ok) Format Video Capture: Width/Height : 1920/1080 Pixel Format : 'YU12' (Planar YUV 4:2:0) Field : None Bytes per Line : 1920 Size Image : 3110400 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags : Streaming Parameters Video Capture: Frames per second: 30.000 (30/1) Read buffers : 16 keep_format 0x08000000 (bool) : default=0 value=0 sustain_framerate 0x08000001 (bool) : default=0 value=0 timeout 0x08000002 (int) : min=0 max=100000000 step=1 default=0 value=0 timeout_image_io 0x08000003 (bool) : default=0 value=0