<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>Hi,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> I’am a beginner to use Live555, so my problem maybe quite simple. I have read Live555 FAQ and searched on google . Finally I have to post a message to maillist for help.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>I try to receive H.264 stream from IP camera, and send it to VLC on anther host. VLC is open URL “rtp://@:12345”.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> Notice that openRTSP doing the same thing but output data into file using H264VideoFileSink class, I replace that part of code:<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>if (strcmp(subsession->mediumName(), "video") == 0) {<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> if (strcmp(subsession->codecName(), "H264") == 0) {<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> // For H.264 video stream, we use a special sink that adds 'start codes',<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> // and (at the start) the SPS and PPS NAL units:<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> //fileSink = H264VideoFileSink::createNew(*env, outFileName,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> // subsession->fmtp_spropparametersets(),<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> // fileSinkBufferSize, oneFilePerFrame);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> char const* outputAddressStr = "192.168.1.123"; // this could also be unicast<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> struct in_addr outputAddress;<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> outputAddress.s_addr = our_inet_addr(outputAddressStr);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> const Port outputPort(12345);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> unsigned char const outputTTL = 255;<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> Groupsock outputGroupsock(*env, outputAddress, outputPort, outputTTL);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> rtpSink = H264VideoRTPSink::createNew(*env, &outputGroupsock, 96);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> }<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>then,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>subsession->sink = rtpSink;<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>subsession->sink->startPlaying(*(subsession->readSource()),<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> subsessionAfterPlaying,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> subsession);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-indent:10.5pt'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>The result is that openRTSP is running and VLC received nothing. I used Wireshark to check, no packet sent to destination IP and port.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>I also try testMP3Streamer, replace multicast address with the unicast address aboved. VLC could play it.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><b><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'> </span></b><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>Could anybody give me some sugestions?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>Thanks,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"Verdana","sans-serif";color:black'>Xin<o:p></o:p></span></p></div></body></html>