Thank you, Ross. The code that I used to convert it is basically a copy-paste from the code of "testMPEG1or2ProgramToTransportStream"<br><br><span><span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">
FramedSource* inputSource = ByteStreamFileSource::createNew(*env, inputFile);
</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 102);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">MPEG1or2Demux* baseDemultiplexor = MPEG1or2Demux::createNew(*env, inputSource);
</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 102);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">MPEG1or2DemuxedElementaryStream* pesSource = baseDemultiplexor->newRawPESStream();
</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 102);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">FramedSource* tsFrames = MPEG2TransportStreamFromPESSource::createNew(*env, pesSource);
</span><br style="font-family: courier new,monospace; color: rgb(0, 0, 102);"><span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">MediaSink* outputSink = FileSink::createNew(*env, outputFile);</span>
<br style="font-family: courier new,monospace; color: rgb(0, 0, 102);">
<span style="font-family: courier new,monospace; color: rgb(0, 0, 102);">outputSink->startPlaying(*tsFrames, afterConverting, NULL);<br><br></span></span>perhaps there is something wrong with my use of the code. Could you provide me the source program stream of
<span style="font-style: italic; font-weight: bold;"><a href="http://www.live555.com/test.ts">http://www.live555.com/test.ts</a></span> so that I can try converting it please? I'll check to see if those errors I mentioned before show up again.
<br><br>Napoleon.<br><br><div><span class="gmail_quote">On 7/11/06, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At 01:45 PM 7/10/2006, you wrote:<br>>I don't know if you tried converting from the original mpeg file,<br>>but when I did, errors like the following appeared:<br>><br>>MPEGProgramStreamParser::parsePESPacket() error: PES_packet_length
<br>>(2036) exceed s max frame size asked for (220)<br>>Missing sync byte!<br>>Missing sync byte!<br>>Missing sync byte!<br><br>When I converted your Program Stream file to a Transport Stream using<br>the "testMPEG1or2ProgramToTransportStream" demo application, I saw no
<br>such errors. If you didn't use that code, then I can't help you - sorry.<br><br><br> Ross Finlayson<br> Live Networks, Inc. (<a href="http://LIVE555.COM">LIVE555.COM</a>)<br> <<a href="http://www.live555.com/">
http://www.live555.com/</a>><br><br>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">
http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>Napoleon E. Cornejo<br><a href="mailto:ncornejo@gmail.com">ncornejo@gmail.com</a><br>San Salvador, 2006