<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)">
<base href="x-msg://5684/">
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"MS PGothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"MS PGothic","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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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=EN-US link=blue vlink=purple style='word-wrap: break-word;
-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Hi,</span><o:p></o:p></p>

<div>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have gone to the link you have mentioned</span><span
style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes. The easiest way to do this is to change the appropriate
"test*Streamer.cpp" file to read from "stdin" (instead of
"test.*"), and then pipe the output of your encoder to (your
modified) "test*Streamer" application.</span><span style='font-family:
"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:13.5pt;font-family:"Times New Roman","serif";
color:black'> </span><span style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have changed   char const* inputFileName =
"test.264";</span><span style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>to      char const* inputFileName =
"stdin";
                      
but does not<span class=apple-converted-space> </span>play.</span><span
style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

<p class=MsoNormal>You apparently do not understand what 'stdin' and 'pipe'
mean. <span style='font-family:"Times New Roman","serif"'> </span>This is
something that all Unix (including Linux) developers (and anyone who uses this
software) should know.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This  is my first Linux application, so I do accept that my
understanding is weak, that is why I am seeking help and into this forum.<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal>Is your FIFO accessible as a named file? <span
style='font-family:"Times New Roman","serif"'> </span>If so, you should be
able to access the fifo by changing<span style='font-family:"Times New Roman","serif"'> </span>'inputFileName'<span
style='font-family:"Times New Roman","serif"'> </span>from
"test.264" to the file name of your FIFO.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>Yes my FIFO is named pipe myrtspfifo
and I changed  inputFileName = myrtspfifo and it pops up error that  </span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>"Unable to open
file \""</span><span style='font-size:9.5pt;font-family:Consolas'>
<< inputFileName << <span style='color:#A31515'>"\" as a
byte-stream file source\n"</span>;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal>Alternatively, is your FIFO an application that outputs to
'stdout'? <span style='font-family:"Times New Roman","serif"'> </span>If
so, then change<span style='font-family:"Times New Roman","serif"'> </span>'inputFileName'
to "stdin", and pipe your FIFO application to
"testH264VideoStreamer". <span style='font-family:"Times New Roman","serif"'> </span>(Once
again, if you don't understand what 'stdout', 'stdin', and 'pipe' mean, then
you should not be using Linux, or our software.)<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have to use it as I need rtsp, if you support or not that is
that is different issue. I came to this forum only because I have less time to
deliver it and I expected some quick solutions.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal>If neither of these are true, then you will need to write
your own "FramedSource" subclass that implements your FIFO,
delivering NAL units one-at-a-time. <span style='font-family:"Times New Roman","serif"'> </span>I
suggest that you use our "DeviceSource" code (in
"liveMedia") as a model for this. <span style='font-family:"Times New Roman","serif"'> </span>Also,
because you will be delivering discrete NAL units, rather than a byte stream,
you will need to change the "testH264VideoStreamer" code to use a
"H264VideoStreamDiscreteFramer", rather than a
"H264VideoStreamFramer".<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes I kept it as last option , but I read the blogs and found
that few people are there who has already got it worked  (h264 streaming
using named FIFO)so I thought it should work for me with some help from the
forum.<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>~rakesh<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>