Hi,

I finally managed to encode my H264 videos for streaming (but it is not a very good solution as I need to have a CBR TS file, with about 40% NULL packets.....) Tried the new index file: it works perfectly. Thanks a lot Ross for this !!!! Just one small detail: when I seek, the stream seems to be stopped immediately, and then the player start to buffer the new frames. During that time, the video is of course frozen, and display is a little "broken" with some artifacts. Would it be possible to pause the stream at the end of a frame ?

Thanks
Christophe
Global Tech Management SARL
360 route de Navilly
74930 Pers-Jussy France
t: +41 79 212 91 81
e: christo...@lemoine-fr.com <mailto:christo...@lemoine-fr.com>

On 01/06/2011 05:00 PM, Ross Finlayson wrote:
We had a similar problem with MPEG2 files that are hardware
encoded with a Hauppauge PVR-150 card (CBR file).  The PCR
timestamps increase regularly but infrequently.

I fully understand that the liveMedia code should not be modified
but in case it's helpful to anyone, our workaround was to change
MPEG2TransportStreamFramer.cpp so that:

#define NEW_DURATION_WEIGHT 0.05

also due to the size of the jitter buffer on the receiver we have:

#define MAX_PLAYOUT_BUFFER_DURATION 0.25

Yes, setting values for those 4 parameters in "MPEG2TransportStreamFramer.cpp" is, unfortunately, somewhat of a 'black art'; it's going to be hard - if not impossible - to find values that will work well for everybody.

Note, though, that each of these definitions is enclosed by

#if !defined( ... )
#endif

So it's possible to change these values without changing the file "MPEG2TransportStreamFramer.cpp" itself. (E.g., you could define your new values on the command line when you compile the file.)
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to