• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    C++
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

RGB565_video

Simple example for playing RGB565 raw video

Prototype

Please find more details at instructables: https://www.instructables.com/id/Play-Video-With-ESP32/

Fastest Example

Currently SPIFFS_MJPEG_JPEGDEC_MP3_audio_ESP32I2S8 is the fastest example that can reach 30fps@320x240 with 22050 mono MP3 playing at the same time.

Arduino_GFX 30fps@320x240 MJPEG with 22050 mono MP3

Convert video for SPIFFS

220x124@12fps

ffmpeg -t 2 -i input.mp4 -vf "fps=15,scale=-1:124:flags=lanczos,crop=220:in_h:(in_w-220)/2:0,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -c:v rawvideo -pix_fmt rgb565be output.rgb

Convert audio + video for SD card

audio

PCM

44 kHz

ffmpeg -i input.mp4 -f u16le -acodec pcm_u16le -ar 44100 -ac 1 44100_u16le.pcm

MP3

44 kHz

ffmpeg -i input.mp4 -ar 44100 -ac 1 -q:a 9 44100.mp3

22 kHz

ffmpeg -i input.mp4 -ar 22050 -ac 1 -q:a 9 22050.mp3

16 kHz

ffmpeg -i input.mp4 -ar 16000 -ac 1 -q:a 9 16000.mp3

video

220x176@7fps

ffmpeg -i input.mp4 -vf "fps=7,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0" -c:v rawvideo -pix_fmt rgb565be 220_7fps.rgb

220x176@9fps

ffmpeg -i input.mp4 -vf "fps=9,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0" -c:v rawvideo -pix_fmt rgb565be 220_9fps.rgb

Animated GIF

220x176@12fps

ffmpeg -i input.mp4 -vf "fps=12,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop -1 220_12fps.gif

220x176@15fps

ffmpeg -i input.mp4 -vf "fps=15,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop -1 220_15fps.gif

Motion JPEG

320x240@12fps

ffmpeg -i input.mp4 -vf "fps=12,scale=-1:240:flags=lanczos,crop=320:in_h:(in_w-320)/2:0" -q:v 9 320_12fps.mjpeg

320x240@15fps

ffmpeg -i input.mp4 -vf "fps=15,scale=-1:240:flags=lanczos,crop=320:in_h:(in_w-320)/2:0" -q:v 9 320_15fps.mjpeg

320x240@24fps

ffmpeg -i input.mp4 -vf "fps=24,scale=-1:240:flags=lanczos,crop=320:in_h:(in_w-320)/2:0" -q:v 9 320_24fps.mjpeg

320x240@30fps

ffmpeg -i input.mp4 -vf "fps=30,scale=-1:240:flags=lanczos,crop=320:in_h:(in_w-320)/2:0" -q:v 9 320_30fps.mjpeg

220x176@24fps

ffmpeg -i input.mp4 -vf "fps=24,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0" -q:v 9 220_24fps.mjpeg

220x176@30fps

ffmpeg -i input.mp4 -vf "fps=30,scale=-1:176:flags=lanczos,crop=220:in_h:(in_w-220)/2:0" -q:v 9 220_30fps.mjpeg

208x176@30fps

ffmpeg -i input.mp4 -vf "fps=30,scale=-1:176:flags=lanczos,crop=208:in_h:(in_w-208)/2:0" -q:v 9 208_30fps.mjpeg

Sample Video Source

https://youtu.be/upjTmKXDnFU

More Repositories

1

Arduino_GFX

Arduino GFX developing for various color displays and various data bus interfaces
C
459
star
2

ESP8266WiFiAnalyzer

C++
85
star
3

Arduino_BLE_Scanner

A ESP32 Arduino BLE Scanner
C++
78
star
4

ATtinyWatch

ATtiny85 Watch Core
C++
41
star
5

M5Stack-Cam-Viewer

Arduino M5Cam viewer for M5Stack
C++
30
star
6

ATtinyPowerMeter

C++
30
star
7

MiniTV

C++
29
star
8

nodemcu-webide

Web IDE for developing NodeMCU program with browser and WiFi
HTML
27
star
9

BloodOxygenHeartRateMeter

Maxim Integrated MAX30102 Blood Oxygen Heart Rate Meter
C
21
star
10

ESP32_BiJin_ToKei

C
21
star
11

IoT-Emoji-Sign

C++
14
star
12

ArduinoWatch

Arduino Watch Core
C++
12
star
13

GooglePhotoClock

ESP8266/ESP32 Google Photo frame with current time overlay.
C
12
star
14

FSBrowserPlus

Extended version of ESP32 example FSBrowser
HTML
11
star
15

ArduinoWiFiPhotoBackup

M5STACK Arduino WiFi Photo Backup device
C++
11
star
16

ESP32VideoRemote

ESP32 Camera Robot remote control by ESP32 Remote Controller with Video Monitor
C++
10
star
17

attiny861_i2c_gamepad

C++
9
star
18

TTGO-T-Watch

TTGO T-Watch stuff
C++
9
star
19

arduino-selfie-camera

C++
8
star
20

Design-a-Fancy-GUI-for-Your-Project

C
7
star
21

ESPWebSocketRemote

C++
7
star
22

ServoTester

A simple Arduino servo tester
C++
7
star
23

USBJoyStick

Convert 2 axis analog signals to Arduino Pro Micro USB HID Joystick
C++
7
star
24

LVGL_Watchface

C
7
star
25

Arduino_graphicstest_PDQ

C++
6
star
26

post_data_receiver

A simple node.js app that receive HTTP POST request and echo to console
JavaScript
4
star
27

ESP32_Photo_Album

C
4
star
28

ESP32-LCDKit

some sample codes using ESP32-LCDKit
C++
4
star
29

IoT-Pill-Bottle

Use IoT monitor patient take pill behavior and check pill fill status
C++
4
star
30

LVGL_Music_Player

C
4
star
31

ArduinoFreeFontFile

C
4
star
32

COVID-19_WHO_Dashboard

ESP version of WHO Coronavirus disease (COVID-19) Situation Dashboard
C
3
star
33

ArduinoVNC

Enhance from https://github.com/Links2004/arduinoVNC.git
C
3
star
34

ESP32_SD_Benchmark

Please find more details at: https://www.instructables.com/id/Select-SD-Interface-for-ESP32/
C++
3
star
35

Font-Stuff

Font design utils and demo code for display msg in MCU, include LED matrix and OLED/LCD display unit
2
star
36

IoT-Fidget

C++
2
star
37

ArduinoBiJinToKei

Arduino version BiJin ToKei implementation
C++
2
star
38

BLE-Heart-Rate-Sensor

C++
2
star
39

ESP32WebCam

C
2
star
40

esp32-digital-camera

C
1
star
41

NeoPixelHexPendant

C++
1
star
42

google-photos-object-aware-osd

Google Photos photo frame server with ImageAI object aware OSD
Python
1
star
43

TinyUSBJoystick

C++
1
star
44

aviPlayer

C
1
star
45

ESP32-S3-BOX-3

All ESP32-S3-BOX-3 stuff
C++
1
star
46

NeoPixelMatrix

C
1
star
47

esplora-i2c-gamepad

Use Arduino Esplora as an I2C gamepad
C++
1
star