Page 1 of 1

Uncompressed image stream via http

Posted: 27 Sep 2012 10:36
by paulspignon
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?

Re: Uncompressed image stream via http

Posted: 27 Sep 2012 12:43
by Jean-Baptiste Kempf
video/yuv ?

Re: Uncompressed image stream via http

Posted: 28 Sep 2012 08:54
by paulspignon
Nope Jean-Baptiste, afraid that doesn't help, same behaviour.
/Paul

Re: Uncompressed image stream via http

Posted: 28 Sep 2012 12:20
by Jean-Baptiste Kempf
no idea.

Re: Uncompressed image stream via http

Posted: 28 Sep 2012 16:16
by Rémi Denis-Courmont
There is "video/raw", but it is only specified over RTP (and VLC does not even yet support raw video over RTP). Your question has no answer.

Instead, you should use the format specified at http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 and leave the Content-Type alone,
e.g. "application/prs.pignon.rawvideo".

Re: Uncompressed image stream via http

Posted: 04 Oct 2012 11:50
by paulspignon
There is "video/raw", but it is only specified over RTP (and VLC does not even yet support raw video over RTP). Your question has no answer.

Instead, you should use the format specified at http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 and leave the Content-Type alone,
e.g. "application/prs.pignon.rawvideo".
Hi Rémi. That link was very useful, kiitos. I was working on inserting the correct header and frame separator data in the stream. Unfortunately their domain just got suspended :( , no idea why, leaving me a bit stuck. Do you happen to know a good alternative.

/Paul

Re: Uncompressed image stream via http

Posted: 04 Oct 2012 12:38
by Jean-Baptiste Kempf
it will come back.