[Live-devel] Problem using MPEG2TransportStreamFramer

Ross Finlayson finlayson at live555.com
Sun Jan 16 12:46:37 PST 2011


>I am trying to write a RTSP server for Android 
>to stream TS files to a SagemCom STB. The RTSP 
>server is working very well, but I have some 
>problems playing some files in the STB.
>
>I´m reading 7 TS packets (1316 bytes) from the 
>file, sending them to the STB, sleeping some 
>time and then back to read. I have ported class 
>MPEG2TransportStreamFramer to Java

I'm not sure what it means to 'port' C++ code to 
Java.  (Does 'Android' not support C++ 
applications at all?)  Perhaps you meant to say 
"I have rewritten class 
MPEG2TransportStreamFramer in Java"?


>  to be able to estimate by the TS PCRs how much 
>time my sending thread has to sleep to give the 
>STB time to play what I last sent. Some TS files 
>containing MPEG2 video Streams and MPEG1 audio 
>streams are played quite fast and files 
>containing H264 video streams and MPEG1 audio 
>streams are played very slow. Also the image 
>gets frozen periodically (I don´t know if this 
>is because the WiFi latency) and I can´t play TS 
>files containing MP3 streams, while I know for 
>sure that the STB can play them. Anyone can help 
>me with this please?

Probably not, unless you are using our software 
'as is' - i.e., without modification or 
rewriting.  This mailing list is for discussion 
of the "LIVE555 Streaming Media" software, which 
is written in C++.  If you want to use this code 
as a model for your own code that uses another 
programming language, then that's fine.  However, 
we won't be able to help you at all with this. 
Sorry.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



More information about the live-devel mailing list