espressif / esp-who

Face detection and recognition framework
Other
1.67k stars 466 forks source link

Move _STREAM_BOUNDARY before _STREAM_PART #131

Closed abergmann closed 4 years ago

abergmann commented 4 years ago

The boundary delimiter (_STREAM_BOUNDARY) needs to be send before the body part (_STREAM_PART) too follow RFC2046. This caused ffplay/ffmpeg to fail to open the MJPEG stream.

RFC2046: 5.1. Multipart Media Type "... The body must then contain one or more body parts, each preceded by a boundary delimiter line, and the last one followed by a closing boundary delimiter line. ..."

After the change ffplay, ffmpeg and mplayer worked fine with the MJPEG stream.

This fix was already merged into arduino-esp32 and esp32-camera.

me-no-dev commented 4 years ago

thanks :)