Uncompressed image stream via http
Posted: 27 Sep 2012 10:36
Linux on a proprietary portable device, with USB camera, v4l.
Wifi streaming via HTTP, capture stream in VLC (or iSpy) on Windows 7.
Some cameras provide MJPEG, with that I specify "Content-Type: image/jpeg\r\n" and that's fine.
Others provide only uncompressed YUV 4.2.2 frames.
In that case I of course set
format.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
but I don't know what to set for Content-Type to get VLC to show anything.
If I just leave it at image/jpeg VLC captures the stream, and will record it, calling it an .avi file, but shows only a blank screen.
Does anyone have a suggestion, please?
Wifi streaming via HTTP, capture stream in VLC (or iSpy) on Windows 7.
Some cameras provide MJPEG, with that I specify "Content-Type: image/jpeg\r\n" and that's fine.
Others provide only uncompressed YUV 4.2.2 frames.
In that case I of course set
format.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
but I don't know what to set for Content-Type to get VLC to show anything.
If I just leave it at image/jpeg VLC captures the stream, and will record it, calling it an .avi file, but shows only a blank screen.
Does anyone have a suggestion, please?