<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Hi, All</div>
<div> First , </div>
<div>I’m really sorry about posting the same question to the mailing list twice yesterday.</div>
<div>Because my mail box received the mail which I sent, I thought I wrote a wrong mail address , but after I sent the same mail once again, and received the mail again, I recognized I have made a mistake. I am really sorry!</div>
<div> </div>
<div>Now I will post my question:</div>
<div>My work is, one android phone send live ts packets to live555 server, other phones can connected to live555 rtsp server and can play the ts packets (I use ffmpeg to decode and play,because ffmpeg support rtsp protocol)</div>
<div>Now these works have done.</div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
<div>But these works can not save/store the live ts packets to local file, under Ross Finlayson’s help, I resolve the problem, I can save the ts packets to a local file, for example: test.ts.[1]</div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
<div>My ts encoder is h264/video, aac/audio. The h264 encoder only have I frame and P frame, no B frame.</div>
<div>But now I need to save the ts packets to a serial of files, like this:</div>
<div> When live555 server receive a I frame, I will save the next packets to 1.ts until the server receive next I frame.</div>
<div>Because my ts only have I frame and P frame, thus 1.ts contains: I P P P P P P P P P….</div>
<div>2.ts contains: I P P P P P P P…</div>
<div>3.ts contains: I P P P P P P P….</div>
<div> </div>
<div>The all small ts files can be combined to a big ts file: test.ts, the same as the [1].</div>
<div> </div>
<div>I think one solution: I write another program to detected the test.ts file, and split it to 1.ts 2.ts 3.ts 4.ts …. until no live ts packets coming.</div>
<div> </div>
<div>Or may anyone can tell me some other <a name="OLE_LINK1"></a>solution?</div>
<div><font face="Times New Roman, serif" size="2" color="#434343"> </font></div>
<div><font face="Times New Roman, serif" size="2" color="#434343"> </font></div>
<div><font size="2" color="#434343">BR,</font></div>
<div><font size="2" color="#434343">Chao, Yuan</font></div>
<div><font face="Times New Roman, serif" size="2" color="#434343"> </font></div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
<div><font face="Times New Roman, serif" size="2"> </font></div>
</font>
</body>
</html>