[Live-devel] jpeg streaming max. size

Ross Finlayson finlayson at live555.com
Wed Nov 5 13:34:15 PST 2008


>i´am using the live555 for jpeg streaming and it´s great.Thanks at all.
>
>my question is about the maximun jpeg size i can 
>stream if i´don´t compress the file ?
>i´m trying with the 227kb jpeg and the 
>dispayling quality is wrong (the client show the 
>file which the gray balk at the end of file at 
>bottom) but if i´m setting the compression 
>factor to 98
>all the jpg file can be displaying but with anti-aliassing.
>
>It´s possible that i improve something anywhere ? if yes thanks in advance

As you've discovered, JPEG is a very poor 
(inefficient) codec for video streaming.  Note 
that a 227 kByte JPEG frame will take up more 
than 150 RTP packets (assuming the default MTU of 
1500 bytes) - all of which will need to be 
received without packet loss in order for the 
receiver to be able to properly render the frame.

My first suggestion would be to use a better 
video codec (e.g., MPEG-4 or H.264).

(I assume you've increased 
"OutPacketBuffer::maxSize" to allow for your 
large input frames (otherwise you will have seen 
error messages).  And that your receiver's input 
buffer is also sufficiently large.)
-- 

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


More information about the live-devel mailing list