GithubHelp home page GithubHelp logo

Comments (6)

jameszah avatar jameszah commented on May 29, 2024

https://github.com/jameszah/ESP32-CAM-Video-Recorder-junior/tree/master/v60

I was making a bunch of changes, but got onto some other things.
This should be very close to the pre-compiled version.

It is important that you have updated esp32-arduino 2.04 -- various things broke from 1.6 --> 2.0.

from esp32-cam-videocam.

monroed11 avatar monroed11 commented on May 29, 2024

Apologies for the late reply and thank you for uploading the v60. I have been trying to stream and record using different resolutions but unable to do so. I just opened a new issue regarding this.

from esp32-cam-videocam.

jameszah avatar jameszah commented on May 29, 2024

You cannot do that. The jpg is made in the camera with very fast hardware. You can write software to convert it to a rgb bitmap, change the size, convert it back to jpg and then record or transmit it, but that would take 100 - 500 milliseconds. I think that is why you need big heavy computers to transcribe video into different formats. 😀

from esp32-cam-videocam.

monroed11 avatar monroed11 commented on May 29, 2024

I found this link regarding down-sampling an image:
https://gist.github.com/408881465/6c6f5a3363bab5ee29f1b581982da464

But I am having a hard time incorporating on the code you posted.

from esp32-cam-videocam.

jameszah avatar jameszah commented on May 29, 2024

That is reducing the size of a bitmap. But you are starting with a jpeg, so first you have to convert it to bitmap (laborious), and then reduce the size, and then convert it back to a jpeg (very laborious).

You can configure the camera to give you a bitmap, but bitmaps are about 10 times the size of a jpeg, so storing or transmitting the image is more time-consuming,

You can find the library (and code) here in the esp32-camera library.

https://github.com/espressif/esp32-camera/blob/master/conversions/include/img_converters.h

from esp32-cam-videocam.

monroed11 avatar monroed11 commented on May 29, 2024

Thank you so much for taking the time to explain to me. What I did is, if streaming is activated, use VGA resolution. Else, HD resolution if recording. At least I somehow achieved the FPS for both recording and streaming that I want.

from esp32-cam-videocam.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.