circuitrocks / ESP32-RTSP

ESP32-CAM as RTSP stream server
231 stars 69 forks source link

How can I choose different resolution for the stream #3

Closed 8666 closed 4 years ago

beegee-tokyo commented 4 years ago

It can only be changed inside the MicroRTSP library. https://github.com/circuitrocks/ESP32-RTSP/blob/16e826e33a00661cd89eff55f53d37121ee8999d/lib/Micro-RTSP/src/OV2640.cpp#L66 Select one of the 4 available resolutions

    // .frame_size = FRAMESIZE_UXGA, // needs 234K of framebuffer space
    // .frame_size = FRAMESIZE_SXGA, // needs 160K for framebuffer
    // .frame_size = FRAMESIZE_XGA, // needs 96K or even smaller FRAMESIZE_SVGA - can work if using only 1 fb
    .frame_size = FRAMESIZE_SVGA,

Default is SVGA.