<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] streaming live H263
video</title></head><body>
<blockquote type="cite" cite>I am trying to make Live555 work with
live video source. My H263 encoder writes encoded frames
to Unix named pipe (FIFO) with a rate of 15 fps<i>.</i> I created
a RTSPServer instance, ServerMediaSession and added
a H263plusVideoFileServerMediaSubsession (reuseFirstSource=True),
passing the FIFO file name as the subsession parameter.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>VLC and/or QuickTime player start playing
the stream, then repeatedly freeze for several seconds, then play
again. However, everything works fine if I stream pre-recoded H.263
encoded elementary stream from file (without using named pipe). Is
this happening when RTSPServer is getting EOF while trying to read the
data from the pipe?</blockquote>
<div><br></div>
<div>No, it's most likely because the server is trying to read more
data from the pipe than is currently available, so the operating
system is blocking the reading server until the other end (the
encoder) makes enough data available.</div>
<div><br></div>
<div>One way to fix this is to - if you can - increase the internal
(i.e., OS) buffering in your named pipe.  Our server tries to
read up to 150000 bytes at a time (the constant BANK_SIZE in
"StreamParser.cpp"), so you should try to make the pipe's
buffer at least this large.</div>
<div><br></div>
<div>Alternatively - if you can't increase the amount of buffering in
your pipe - you could try reducing the value of the constant BANK_SIZE
in "StreamParser.cpp".  You should not make this too
small, though; it needs to be at least as large as the largest
possible H.263 frame that you expect to see.</div>
<div>I don't recommend doing this except as a last resort, though,
because it requires modifying the supplied source code.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>