<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Tahoma","sans-serif";
color:windowtext;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif"">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif"">I would like to report a bug concerning JPEG video streaming in live555.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif"">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif"">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif"">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE">Marco Porsch<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE">Software engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE">________________________________<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><a href="http://www.intenta.de/"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE;text-decoration:none"><img border="0" width="156" height="35" id="Bild_x0020_1" src="cid:image001.gif@01CF9F69.E36D3040" alt="cid:image001.png@01CD8827.2F1E2820"></span></a><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE">Fon: +49(0)371 5347 760 ∙ Fax: +49(0)371 5347 761
<br>
</span><u><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:blue;mso-fareast-language:DE"><a href="mailto:m.porsch@intenta.de">m.porsch@intenta.de</a></span></u><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE">
∙ </span><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE"><a href="http://www.intenta.de/"><span style="font-size:9.0pt;color:#7F7F7F">http://www.intenta.de</span></a></span><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#7F7F7F;mso-fareast-language:DE">Intenta GmbH ∙ Annaberger Straße 240 ∙ 09125 Chemnitz, Germany
<br>
<br>
Geschäftsführer: Dr.-Ing. Basel Fardi <br>
HRB 26404 Amtsgericht Chemnitz</span><span style="font-family:"Tahoma","sans-serif";mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>