Hi,<div><br></div><div>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?
</div><div><br></div><div>Thanks</div><div>Andy</div>