Replies: 2 comments
-
Try with latest commit 99d303c |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just tried it with 41db97e (9.5.0.1) and it works for me. Testing with a client program using py-mjpeg, I was able to successfully decode and save individual images from the stream. All good thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
I am attempting to process the mjpeg stream produced by tasmota-webcam. I have use two different client libraries and both report that boundary string is missing. e.g from py-mjpeg:
mjpeg.ProtoError: Boundary string expected, but not found
.Looking at the code in xdrv_81_webcam.ino and confirming by examining the HTTP headers and content in python debug shows that the boundary string is sent after each jpeg frame. E.g. the following is sent:
So after the headers the content goes straight to the first jpeg image headers, then a boundary, then repeats for each image. I believe that the boundary should have been sent prior to the first jpeg image too (certainly that is what expected by the source for the python libraries I looked at). In summary the sequence should be:
headers
boundary
image
boundary
image
boundary
image
etc
whereas it is:
headers
image
boundary
image
boundary
etc
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
Flash an ESP32 cam with tasmota-webcam. Attempt to process resultant mjpeg stream with py-mjpeg client code. (Using this library is just an easy example to reproduce, I've tried others that exhibit the same problem with the stream)
Using library https://pypi.org/project/py-mjpeg/
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
stream is processed without error.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions