[Live-devel] Getting the JPEG payload from a JPEG file

Andy Bell andy at j2kvideo.com
Thu May 20 03:17:52 PDT 2010


Hi,

I have used the 'Elphel' code to build a simple RTSP server which streams a
fixed JPEG frame.  I want to be able to configure the RTSP server to use a
specific JPEG file on disk.  The problem I have is that different JPEG files
have different header sizes and I want to work out how I can work out where
the header ends and where the payload begins.  Looking at the header I can
locate the start of the scan using the marker 0xFFDA, but even when I send
this back to the client I don't get a valid image.  As I am using a JPEG
file I have no idea of the Q factor so I have set this to 100 for the time
being.   Is there any code out there which can help me break up a JPEG file
from disk and stream it back to the client?  If not, where am I going wrong?


Thanks
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100520/1e378d30/attachment.html>


More information about the live-devel mailing list