s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
931 stars 214 forks source link

MJPEG2SD.htm not working for stable version #289

Closed anhydrousmule closed 12 months ago

anhydrousmule commented 1 year ago

Auto-download fetches too new/updated version of .htm to sdcard and that references to "/sustain?" uri's, that functionality only exists in latest/unstable version?. Result is that web control buttons for streaming, playback etc do not work. Also streamserver port definition in .htm is changed to 81, which is not working it needs to be 82 ?

Dirty quickfix to make stream button working again;

In function "appInit()" modify "streamServer" variable initialization to go one port number higher; // streamServer= webHost + ':' + String(+webPort + 1); streamServer= webHost + ':' + String(+webPort + 2);

In function "activateStreamButton()" modify "view.src" initialization to use old way of functionality; // view.src = streamServer + '/sustain?stream=1'; view.src = streamServer + '/stream?source=sensor';

I managed to get all other buttons working by modifying their uri's too, but for download button my limited debugging skills or lack of sleep failed me.

First time reporting issue so thank you for your marvellous code and understanding.

s60sc commented 1 year ago

unforseen problem that v8.8 will auto download v9.0 data folder so manually instal v8.8 data folder.

anhydrousmule commented 1 year ago

Where to get the "right" 8.8 folder? At least the files that are included with 8.8 code download are not working either... they seem to be too old version for 8.8 and web control is broken even more with them?

s60sc commented 1 year ago

Copy the entire 8.8 data folder to the sd card