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.
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
andmplayer
worked fine with the MJPEG stream.This fix was already merged into arduino-esp32 and esp32-camera.