<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>about mpeg4 stream project  </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi Ross and all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thank you for your advice.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I did some simulation tests today as you advised (</FONT> <FONT SIZE=2 FACE="Courier New">your-reader-application | testOnDemandRTSPServer), </FONT>

<BR><FONT SIZE=2 FACE="Courier New">but somehow I did get stream video success, the VLC player could not get any data from my application.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">the first thing I did was I changed testOnDemandRTSPServer.cpp as you advised, when I run the program, I did see &quot;stream from the file &quot;stdin&quot; &quot;&nbsp; came out on my screen, I think this program has no problem; The real problem might come from my &quot;your-reader-application.c&quot;. In this program, I read a mpeg4 data file to my internal buffer and then I write these data to &quot;stdout&quot;.</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">I used&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Courier New">strIn = fopen(&quot;test.m4e&quot;, &quot;rb&quot;) to open a stream io;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">and fread(buf, sizeof(unsigned char), 1024*1024, strIn) to get data in my buffer;</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I check the data in the buffer, they are OK. </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I used a couple of &quot;c&quot; functions to send data out, such as</FONT>

<BR><FONT SIZE=2 FACE="Courier New">fprinf(stdout, &quot;%x&quot;, data) and fwrite( &amp;data, sizeof(unsigned char), data_size)...... </FONT>

<BR><FONT SIZE=2 FACE="Courier New">but none of them make the program working. I think the data type may be wrong from my first program to sendcond program.</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">I guess the type of data sending to &quot;stdout&quot; is binary, and next program's &quot;stdin&quot; will read binary data too. some how I do not know how to make the &quot;stdout&quot; as a binary stream io. In window program, I can use _setmode() to change stream io property. </FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Please help.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Thank you in advance.&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Lin Dong </FONT>

<BR><FONT SIZE=2 FACE="Courier New">Quixote Corp.</FONT>
</P>
<BR>

<P><B><FONT FACE="Times New Roman">Ross Finlayson</FONT></B><FONT FACE="Times New Roman"> </FONT><A HREF="mailto:live-devel%40lists.live555.com?Subject=%5BLive-devel%5D%20about%20mpeg4%20stream%20project&amp;In-Reply-To=41E16D542244C24F97752590527EF9BB01FD9A92%40flsv1065.pal.quixote.prv"><U><FONT COLOR="#0000FF" FACE="Times New Roman">finlayson at live555.com</FONT></U></A><BR>
<I><FONT FACE="Times New Roman">Thu Jan 10 13:39:40 PST 2008</FONT></I><FONT FACE="Times New Roman"> </FONT>
<UL>
<UL>
<LI><FONT FACE="Times New Roman">Previous message: </FONT><A HREF="file://007957.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[Live-devel] about mpeg4 stream project</FONT></U></A> </LI>

<LI><FONT FACE="Times New Roman">Next message: </FONT><A HREF="file://007961.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[Live-devel] testMP3Streamer &amp; SDP's</FONT></U></A> </LI>

<LI><B><FONT FACE="Times New Roman">Messages sorted by:</FONT></B><FONT FACE="Times New Roman"> </FONT><A HREF="file://date.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[ date ]</FONT></U></A><FONT FACE="Times New Roman"> </FONT><A HREF="file://thread.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[ thread ]</FONT></U></A><FONT FACE="Times New Roman"> </FONT><A HREF="file://subject.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[ subject ]</FONT></U></A><FONT FACE="Times New Roman"> </FONT><A HREF="file://author.html"><U><FONT COLOR="#0000FF" FACE="Times New Roman">[ author ]</FONT></U></A><FONT FACE="Times New Roman"> </FONT></LI>
<BR>
</UL></UL>
<P><FONT SIZE=2 FACE="Courier New">&gt;</FONT><I><FONT SIZE=2 FACE="Courier New">I am doing a mpeg4 stream project on embedded Linux system, the </FONT></I>

<BR><FONT SIZE=2 FACE="Courier New">&gt;</FONT><I><FONT SIZE=2 FACE="Courier New">MPEG4 data come from a circular buffer or ping-pong buffer in my </FONT></I>

<BR><FONT SIZE=2 FACE="Courier New">&gt;</FONT><I><FONT SIZE=2 FACE="Courier New">embedded device, It seems I can start from </FONT></I>

<BR><FONT SIZE=2 FACE="Courier New">&gt;</FONT><I><FONT SIZE=2 FACE="Courier New">testOnDemandRTSCServer.cpp, but my problem is how I can make the </FONT></I>

<BR><FONT SIZE=2 FACE="Courier New">&gt;</FONT><I><FONT SIZE=2 FACE="Courier New">memory buffer as a file in Linux system</FONT></I>
</P>

<P><FONT SIZE=2 FACE="Courier New">The easiest way to do this, IMHO, is to write an application that </FONT>

<BR><FONT SIZE=2 FACE="Courier New">reads encoded data from your buffer, and writes it to 'stdout'.&nbsp; Then </FONT>

<BR><FONT SIZE=2 FACE="Courier New">pipe this into the &quot;testOnDemandRTSPServer&quot; application, by running:</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">your-reader-application | testOnDemandRTSPServer</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">For this to work, you will need to modify the </FONT>

<BR><FONT SIZE=2 FACE="Courier New">&quot;testOnDemandRTSPServer.cpp&quot; code to</FONT>

<BR><FONT SIZE=2 FACE="Courier New">1/ set &quot;reuseFirstSource&quot; to True</FONT>

<BR><FONT SIZE=2 FACE="Courier New">2/ use the filename &quot;stdin&quot; instead of &quot;test.m4e&quot;</FONT>

<BR><FONT SIZE=2 FACE="Courier New">-- </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Ross Finlayson</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Live Networks, Inc.</FONT>

<BR><A HREF="http://www.live555.com/"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://www.live555.com/</FONT></U></A>

<BR><FONT SIZE=2 FACE="Courier New">-------------- next part --------------</FONT>

<BR><FONT SIZE=2 FACE="Courier New">An HTML attachment was scrubbed...</FONT>

<BR><FONT SIZE=2 FACE="Courier New">URL: </FONT><A HREF="http://lists.live555.com/pipermail/live-devel/attachments/20080110/fd20cb51/attachment.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">http://lists.live555.com/pipermail/live-devel/attachments/20080110/fd20cb51/attachment.html</FONT></U></A><FONT SIZE=2 FACE="Courier New"> </FONT>
</P>


<DIV><P><HR>
<BR>
* C O N F I D E N T I A L I T Y N O T I C E *<BR>
-----------------------------------------------------------<BR>
The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Quixote Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer.<BR>
<BR>

</P></DIV>
</BODY>
</HTML>