[Live-devel] JPEG video with grayscale frames

Marco Porsch m.porsch at intenta.de
Mon Jul 14 04:51:06 PDT 2014


Hello,

I would like to report a bug concerning JPEG video streaming in live555.

I can successfully stream 3-component (color) images using a modified version of testOnDemandRTSPServer.cpp and custom JPEG source and subsession classes. I am able to successfully receive the stream using VLC media player. But if I encode my frames as 1-component (grayscale) images, VLC displays only nonsense.

When dumping my encoded JPEG images on the server side they are alright. I tested the streamed data on the receiver side using “openRTSP” with the “–m” switch. The still images also contain only nonsense data.

Upon further examination I found that the JPEG headers on the receiver side proclaim to contain 3-component (24bit) image data. Upon digging into the live555 sources I found that in JPEGVideoRTPSource.cpp in the function createJPEGHeader() e.g. in line 235 the header is always constructed for 3-component images.

Cheers,

Marco Porsch
Software engineer

________________________________
[cid:image001.png at 01CD8827.2F1E2820]<http://www.intenta.de/>
Fon: +49(0)371 5347 760  ∙  Fax: +49(0)371 5347 761
m.porsch at intenta.de<mailto:m.porsch at intenta.de>  ∙  http://www.intenta.de<http://www.intenta.de/>

Intenta GmbH  ∙  Annaberger Straße 240  ∙  09125 Chemnitz, Germany

Geschäftsführer: Dr.-Ing. Basel Fardi
HRB 26404 Amtsgericht Chemnitz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140714/ee710366/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1817 bytes
Desc: image001.gif
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140714/ee710366/attachment.gif>


More information about the live-devel mailing list