bugerdread / esp32-mjpeg-ipcam Goto Github PK
View Code? Open in Web Editor NEWTurn ESP32-CAM into mjpeg IP camera
Turn ESP32-CAM into mjpeg IP camera
Hi @BugerDread , when I compile your project, I get error here, Can you help me, plss ???
Arduino: 1.8.13 (Linux), Board: "AI Thinker ESP32-CAM
Error:
libraries/esp32cam/esp32cam.cpp.o: In function esp32cam::CameraClass::begin(esp32cam::Config const&)': /home/khanh411/snap/arduino/50/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/xtensa-esp32-elf/include/c++/5.2.0/bits/unique_ptr.h:76: multiple definition of
esp32cam::CameraClass::begin(esp32cam::Config const&)'
sketch/esp32cam.cpp.o:sketch/esp32cam.cpp:12: first defined here
libraries/esp32cam/esp32cam.cpp.o: In function esp32cam::CameraClass::end()': esp32cam.cpp:(.text._ZN8esp32cam11CameraClass3endEv+0x0): multiple definition of
esp32cam::CameraClass::end()'
sketch/esp32cam.cpp.o:esp32cam.cpp:(.text._ZN8esp32cam11CameraClass3endEv+0x0): first defined here
libraries/esp32cam/esp32cam.cpp.o: In function esp32cam::CameraClass::changeResolution(esp32cam::Resolution const&, int)': esp32cam.cpp:(.text._ZN8esp32cam11CameraClass16changeResolutionERKNS_10ResolutionEi+0x0): multiple definition of
esp32cam::CameraClass::changeResolution(esp32cam::Resolution const&, int)'
sketch/esp32cam.cpp.o:esp32cam.cpp:(.text._ZN8esp32cam11CameraClass16changeResolutionERKNS_10ResolutionEi+0x0): first defined here
libraries/esp32cam/esp32cam.cpp.o: In function esp32cam::CameraClass::capture()': esp32cam.cpp:(.text._ZN8esp32cam11CameraClass7captureEv+0x0): multiple definition of
esp32cam::CameraClass::capture()'
sketch/esp32cam.cpp.o:esp32cam.cpp:(.text._ZN8esp32cam11CameraClass7captureEv+0x0): first defined here
libraries/esp32cam/esp32cam.cpp.o: In function esp32cam::CameraClass::streamMjpeg(Client&, esp32cam::CameraClass::StreamMjpegConfig const&)': esp32cam.cpp:(.text._ZN8esp32cam11CameraClass11streamMjpegER6ClientRKNS0_17StreamMjpegConfigE+0x0): multiple definition of
esp32cam::CameraClass::streamMjpeg(Client&, esp32cam::CameraClass::StreamMjpegConfig const&)'
sketch/esp32cam.cpp.o:esp32cam.cpp:(.text._ZN8esp32cam11CameraClass11streamMjpegER6ClientRKNS0_17StreamMjpegConfigE+0x0): first defined here
Multiple libraries were found for "WiFi.h"
Used: /home/khanh411/snap/arduino/50/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi
libraries/esp32cam/esp32cam.cpp.o:(.bss._ZN8esp32cam6CameraE+0x0): multiple definition of esp32cam::Camera' Not used: /snap/arduino/50/libraries/WiFi sketch/esp32cam.cpp.o:(.bss._ZN8esp32cam6CameraE+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::detail::convertJpegQuality(int)':
/home/khanh411/snap/arduino/current/Arduino/libraries/esp32cam/src/internal/config.cpp:12: multiple definition of esp32cam::detail::convertJpegQuality(int)' sketch/config.cpp.o:sketch/config.cpp:12: first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::Config()':
config.cpp:(.text._ZN8esp32cam6ConfigC2Ev+0x0): multiple definition of esp32cam::Config::Config()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6ConfigC2Ev+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::Config()':
config.cpp:(.text._ZN8esp32cam6ConfigC2Ev+0x0): multiple definition of esp32cam::Config::Config()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6ConfigC2Ev+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::~Config()':
config.cpp:(.text._ZN8esp32cam6ConfigD2Ev+0x0): multiple definition of esp32cam::Config::~Config()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6ConfigD2Ev+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::~Config()':
config.cpp:(.text._ZN8esp32cam6ConfigD2Ev+0x0): multiple definition of esp32cam::Config::~Config()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6ConfigD2Ev+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setPins(esp32cam::Pins const&)':
config.cpp:(.text._ZN8esp32cam6Config7setPinsERKNS_4PinsE+0x0): multiple definition of esp32cam::Config::setPins(esp32cam::Pins const&)' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config7setPinsERKNS_4PinsE+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setResolution(esp32cam::Resolution const&)':
config.cpp:(.text._ZN8esp32cam6Config13setResolutionERKNS_10ResolutionE+0x0): multiple definition of esp32cam::Config::setResolution(esp32cam::Resolution const&)' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config13setResolutionERKNS_10ResolutionE+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setBufferCount(int)':
config.cpp:(.text._ZN8esp32cam6Config14setBufferCountEi+0x0): multiple definition of esp32cam::Config::setBufferCount(int)' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config14setBufferCountEi+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setRgb()':
config.cpp:(.text._ZN8esp32cam6Config6setRgbEv+0x0): multiple definition of esp32cam::Config::setRgb()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config6setRgbEv+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setYuv()':
config.cpp:(.text._ZN8esp32cam6Config6setYuvEv+0x0): multiple definition of esp32cam::Config::setYuv()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config6setYuvEv+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setGrayscale()':
config.cpp:(.text._ZN8esp32cam6Config12setGrayscaleEv+0x0): multiple definition of esp32cam::Config::setGrayscale()' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config12setGrayscaleEv+0x0): first defined here libraries/esp32cam/internal/config.cpp.o: In function
esp32cam::Config::setJpeg(int)':
config.cpp:(.text._ZN8esp32cam6Config7setJpegEi+0x0): multiple definition of esp32cam::Config::setJpeg(int)' sketch/config.cpp.o:config.cpp:(.text._ZN8esp32cam6Config7setJpegEi+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::Frame()':
/home/khanh411/snap/arduino/current/Arduino/libraries/esp32cam/src/internal/frame.hpp:13: multiple definition of esp32cam::Frame::Frame()' sketch/frame.cpp.o:sketch/frame.hpp:13: first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::Frame()':
frame.cpp:(.text._ZN8esp32cam5FrameC2Ev+0x0): multiple definition of esp32cam::Frame::Frame()' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5FrameC2Ev+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::Frame(void*)':
frame.cpp:(.text._ZN8esp32cam5FrameC2EPv+0x0): multiple definition of esp32cam::Frame::Frame(void*)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5FrameC2EPv+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::Frame(void*)':
frame.cpp:(.text._ZN8esp32cam5FrameC2EPv+0x0): multiple definition of esp32cam::Frame::Frame(void*)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5FrameC2EPv+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::releaseFb()':
frame.cpp:(.text._ZN8esp32cam5Frame9releaseFbEv+0x0): multiple definition of esp32cam::Frame::releaseFb()' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame9releaseFbEv+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::~Frame()':
frame.cpp:(.text._ZN8esp32cam5FrameD2Ev+0x0): multiple definition of esp32cam::Frame::~Frame()' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5FrameD2Ev+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::~Frame()':
frame.cpp:(.text._ZN8esp32cam5FrameD2Ev+0x0): multiple definition of esp32cam::Frame::~Frame()' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5FrameD2Ev+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::writeToImpl(Print&, int, Client*)':
frame.cpp:(.text._ZN8esp32cam5Frame11writeToImplER5PrintiP6Client+0x0): multiple definition of esp32cam::Frame::writeToImpl(Print&, int, Client*)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame11writeToImplER5PrintiP6Client+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::writeTo(Print&, int)':
frame.cpp:(.text._ZN8esp32cam5Frame7writeToER5Printi+0x0): multiple definition of esp32cam::Frame::writeTo(Print&, int)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame7writeToER5Printi+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::writeTo(Client&, int)':
frame.cpp:(.text._ZN8esp32cam5Frame7writeToER6Clienti+0x0): multiple definition of esp32cam::Frame::writeTo(Client&, int)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame7writeToER6Clienti+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::isJpeg() const':
frame.cpp:(.text._ZNK8esp32cam5Frame6isJpegEv+0x0): multiple definition of esp32cam::Frame::isJpeg() const' sketch/frame.cpp.o:frame.cpp:(.text._ZNK8esp32cam5Frame6isJpegEv+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::toJpeg(int)':
frame.cpp:(.text._ZN8esp32cam5Frame6toJpegEi+0x0): multiple definition of esp32cam::Frame::toJpeg(int)' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame6toJpegEi+0x0): first defined here libraries/esp32cam/internal/frame.cpp.o: In function
esp32cam::Frame::toBmp()':
frame.cpp:(.text._ZN8esp32cam5Frame5toBmpEv+0x0): multiple definition of esp32cam::Frame::toBmp()' sketch/frame.cpp.o:frame.cpp:(.text._ZN8esp32cam5Frame5toBmpEv+0x0): first defined here libraries/esp32cam/internal/resolution.cpp.o: In function
esp32cam::Resolution::isValid() const':
/home/khanh411/snap/arduino/current/Arduino/libraries/esp32cam/src/internal/resolution.cpp:9: multiple definition of esp32cam::Resolution::isValid() const' sketch/resolution.cpp.o:sketch/resolution.cpp:9: first defined here libraries/esp32cam/internal/resolution.cpp.o: In function
esp32cam::Resolution::getWidth() const':
resolution.cpp:(.text._ZNK8esp32cam10Resolution8getWidthEv+0x0): multiple definition of esp32cam::Resolution::getWidth() const' sketch/resolution.cpp.o:resolution.cpp:(.text._ZNK8esp32cam10Resolution8getWidthEv+0x0): first defined here libraries/esp32cam/internal/resolution.cpp.o: In function
esp32cam::Resolution::getHeight() const':
resolution.cpp:(.text._ZNK8esp32cam10Resolution9getHeightEv+0x0): multiple definition of esp32cam::Resolution::getHeight() const' sketch/resolution.cpp.o:resolution.cpp:(.text._ZNK8esp32cam10Resolution9getHeightEv+0x0): first defined here libraries/esp32cam/internal/resolution.cpp.o: In function
esp32cam::Resolution::find(int, int)':
resolution.cpp:(.text._ZN8esp32cam10Resolution4findEii+0x0): multiple definition of `esp32cam::Resolution::find(int, int)'
sketch/resolution.cpp.o:resolution.cpp:(.text._ZN8esp32cam10Resolution4findEii+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board AI Thinker ESP32-CAM.
So i guess its been a while since you have made this code and did you found out that any issues with the system until now ?
Also what is the most stable fps and the resolution you could achieve with this and do you get any frame drops or lags with this camera?
On your tests, using 800x600 10fps, what was the final bandwidth?
To estimate for 30 fps it is just three times greater or it is not proportional due to encoding?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.