[Live-devel] Getting the JPEG payload from a JPEG file
    Jeremy Noring 
    jnoring at logitech.com
       
    Thu May 20 22:17:53 PDT 2010
    
    
  
On Thu, May 20, 2010 at 3:17 AM, Andy Bell <andy at j2kvideo.com> wrote:
> 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?
>
>
You could probably use libjpeg (http://www.ijg.org/) to get at the raw image
data.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100520/135fee22/attachment-0001.html>
    
    
More information about the live-devel
mailing list