New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open MJPEG image coming from Camera #157
Comments
This could be related to the issue in this project: Motion-Project/motion#65:
|
That error message is just a warning from the underlying libjpeg API. The implementation of |
Thanks @dcommander for the clarification, this helps! |
Just wanted to say I have similar problem so I am looking forward to the 1.6 API. I get pictures from Arecont IP camera and the warning/error I get is "extraneous bytes before marker 0xd9". I believe it is related to this note about hardware encoders: https://tools.ietf.org/html/rfc2435#section-3.1.9:
The files are full of restart markers and the data after the last restart marker (before the eoi marker) is garbage. Having this reported as warning would be great. Not reporting it at all would be best. I was made aware of the problem because the default error action is to output this message to stderr while I could do nothing about it since I was going through python and opencv. |
The 1.6 API is already available in the dev branch and CI/pre-release builds built from that branch. Please give it a test. Documentation links are here: http://www.libjpeg-turbo.org/Documentation/Documentation The primary changes that affect this issue are:
Simply ignoring the -1 return code if |
Opening the following MJPEG jpg file coming from a Logitech camera doesn't work in libjpeg-turbo.
While
tjDecompressHeader3
works fine and returns the correct width and height of the image,tjDecompress2
returns with an errorCould not decompress jpg: Corrupt JPEG data: 2 extraneous bytes before marker 0xd6
.The file opens fine in Firefox, for example:
The text was updated successfully, but these errors were encountered: