This is no longer maintained, check rtsp-server submodule instead.
This repo will not be deleted for archival purposes only.
This a submodule of xiaomi-360-1080p-hacks. You may want to go there instead.
C project to grab a video stream from the Xiaomi Mi 360 1080p camera using direct memory access. Output of the video stream goes to standard output, so you can pipe it wherever you want.
Still not very good. Much artifacts, such buggy, very 640x360. Wow.
Cross compiling for armhf:
arm-linux-gnueabihf-gcc video_direct_memory_access.c pipe.c -pthread -std=gnu99 -o video_direct_memory_access
- Download the
video_direct_memory_access
binary - or - compile as per instructions above - Copy
video_direct_memory_access
to the camera (e.g. using the SD Card) - Also copy a armhf build of FFMPEG to the camera (this might be useful: https://ffbinaries.com/downloads)
- Access the camera through telnet (refer to this project)
- Pipe the output to FFMPEG and stream it (you may see a lot of errors/warnings, ignore them and give it a second):
./video_direct_memory_access | ./ffmpeg -f hevc -i pipe:0 -c:v copy -f mpegts udp://<your_computer_ip>:12345
- To play the video on your PC:
ffplay udp://<your_computer_ip>:12345