[Live-devel] TS Files and Sound
Napoleon Cornejo
ncornejo at gmail.com
Tue Jul 11 13:47:35 PDT 2006
Thank you, Ross. The code that I used to convert it is basically a
copy-paste from the code of "testMPEG1or2ProgramToTransportStream"
FramedSource* inputSource = ByteStreamFileSource::createNew(*env,
inputFile);
MPEG1or2Demux* baseDemultiplexor = MPEG1or2Demux::createNew(*env,
inputSource);
MPEG1or2DemuxedElementaryStream* pesSource =
baseDemultiplexor->newRawPESStream();
FramedSource* tsFrames = MPEG2TransportStreamFromPESSource::createNew(*env,
pesSource);
MediaSink* outputSink = FileSink::createNew(*env, outputFile);
outputSink->startPlaying(*tsFrames, afterConverting, NULL);
perhaps there is something wrong with my use of the code. Could you provide
me the source program stream of http://www.live555.com/test.ts so that I can
try converting it please? I'll check to see if those errors I mentioned
before show up again.
Napoleon.
On 7/11/06, Ross Finlayson <finlayson at live555.com> wrote:
>
> At 01:45 PM 7/10/2006, you wrote:
> >I don't know if you tried converting from the original mpeg file,
> >but when I did, errors like the following appeared:
> >
> >MPEGProgramStreamParser::parsePESPacket() error: PES_packet_length
> >(2036) exceed s max frame size asked for (220)
> >Missing sync byte!
> >Missing sync byte!
> >Missing sync byte!
>
> When I converted your Program Stream file to a Transport Stream using
> the "testMPEG1or2ProgramToTransportStream" demo application, I saw no
> such errors. If you didn't use that code, then I can't help you - sorry.
>
>
> Ross Finlayson
> Live Networks, Inc. (LIVE555.COM)
> <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
--
Napoleon E. Cornejo
ncornejo at gmail.com
San Salvador, 2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060711/918aff72/attachment.html
More information about the live-devel
mailing list