Uncompressed image stream via http

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
paulspignon
New Cone
New Cone
Posts: 3
Joined: 27 Sep 2012 10:10

Uncompressed image stream via http

Postby paulspignon » 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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Uncompressed image stream via http

Postby Jean-Baptiste Kempf » 27 Sep 2012 12:43

video/yuv ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

paulspignon
New Cone
New Cone
Posts: 3
Joined: 27 Sep 2012 10:10

Re: Uncompressed image stream via http

Postby paulspignon » 28 Sep 2012 08:54

Nope Jean-Baptiste, afraid that doesn't help, same behaviour.
/Paul

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Uncompressed image stream via http

Postby Jean-Baptiste Kempf » 28 Sep 2012 12:20

no idea.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Uncompressed image stream via http

Postby Rémi Denis-Courmont » 28 Sep 2012 16:16

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".
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

paulspignon
New Cone
New Cone
Posts: 3
Joined: 27 Sep 2012 10:10

Re: Uncompressed image stream via http

Postby paulspignon » 04 Oct 2012 11:50

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Uncompressed image stream via http

Postby Jean-Baptiste Kempf » 04 Oct 2012 12:38

it will come back.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests