<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
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.....)<br>
Tried the new index file: it works perfectly. Thanks a lot Ross for
this !!!!<br>
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 ?<br>
<br>
Thanks<br>
Christophe<br>
<div class="moz-signature">
<div class="Section1">
<span style="font-size: 12pt; color: navy; font-family: Arial;">Global
Tech Management SARL</span><br>
<span style="font-size: 10pt; color: navy; font-family: Arial;">360
route de Navilly</span><br>
<span style="font-size: 10pt; color: navy; font-family: Arial;">74930
Pers-Jussy France</span><br>
<span style="font-size: 10pt; color: navy; font-family: Arial;">t:
+41 79 212 91 81<o:p></o:p></span><br>
<span style="font-size: 10pt; color: navy; font-family: Arial;">e:
<a href="mailto:christophe@lemoine-fr.com">christophe@lemoine-fr.com</a></span><br>
<span style="font-size: 10pt; color: navy; font-family: Arial;">
</span></div>
</div>
<br>
On 01/06/2011 05:00 PM, Ross Finlayson wrote:
<blockquote cite="mid:f06240801c94b95a3003e@%5B66.80.62.44%5D"
type="cite">
<blockquote type="cite">We had a similar problem with MPEG2 files
that are hardware
<br>
encoded with a Hauppauge PVR-150 card (CBR file). The PCR
<br>
timestamps increase regularly but infrequently.
<br>
<br>
I fully understand that the liveMedia code should not be
modified
<br>
but in case it's helpful to anyone, our workaround was to change
<br>
MPEG2TransportStreamFramer.cpp so that:
<br>
<br>
#define NEW_DURATION_WEIGHT 0.05
<br>
<br>
also due to the size of the jitter buffer on the receiver we
have:
<br>
<br>
#define MAX_PLAYOUT_BUFFER_DURATION 0.25
<br>
</blockquote>
<br>
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.
<br>
<br>
Note, though, that each of these definitions is enclosed by
<br>
<br>
#if !defined( ... )
<br>
#endif
<br>
<br>
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.)
<br>
</blockquote>
</body>
</html>