atomic14/esp32-tv
소개
ESP32 - Sound and Vision - Video Streaming to the ESP32
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalESP32 Video Streaming!
Yes - it actually works! Streaming video with audio over WiFi to an ESP32!
And - playing video from an SD Card!
There's two projects in this repo - one for the ESP32 firmware and another for the server.
The README files in each project have more details.
How Does It Work?
The server is pretty simple, it has a few endpoints:
/channel_info- returns a list of channel lengths in audio samples/frame/<int:channel_index>/<int:ms>- returns a JPEG image for the given channel at the given time (in ms)/audio/<int:channel_index>/<int:start>/<int:length>- returns 8 bit PCM audio at 16KHz for the given channel starting from the given sample index and for the given length (in samples)
The ESP32 firmware connects to the server and requests the channel info. The video playback is locked to the audio sample playback. The audio is played back using the I2S peripheral and we use that to know how much time has elapsed to request the correct frames. This way the video and audio are always in sync.
You can get around 15 frames per second at 280x240 resolution, the main limitation is WiFi bandwidth and decoding the JPEGs.
Support for SD Cards
In the README file for the firmware there are instructions on how to convert a video file to a MJPEG AVI file - if you've got a device with an SD Card you can use this instead of WiFi streaming.
관련 프로젝트 살펴보기
불러오는 중…

