The phil-fpv
project interfaces with DJI Goggles to capture and process video streams over USB. This README provides instructions on setting up the project and an overview of its functionality.
- Node.js and npm
- ffmpeg (with ffplay)
- Git
-
Clone the Repository:
git clone https://github.com/kluless13/phil-fpv.git
-
Navigate to the Project Directory:
cd phil-fpv
-
Run the Installation Script:
- Run this (if it gets stuck, hit control+c and it should continue):
chmod +x install.sh ./install.sh
- Run this (if it gets stuck, hit control+c and it should continue):
-
Test Programme:
node index.js
-
Excute command:
node index.js --output | ffplay -i - -fast -flags2 fast -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -framedrop -sync ext -probesize 32 -analyzeduration 0
The application identifies DJI Goggles connected via USB using specific vendor and product IDs. Once identified, it establishes communication with the goggles to capture raw video data.
Incoming data from the goggles is processed to identify specific byte sequences, such as the beginning of an h264 frame. The application buffers this data and searches for known patterns to better understand the video stream's structure.
The application provides two primary modes for video streaming:
-
Preview Mode: Users can preview the video stream in real-time using
ffplay
. This mode is useful for immediate feedback without saving the video. -
Save Mode: The video stream can be piped to
ffmpeg
to produce an.mp4
file, allowing users to save and review the captured footage.
The application includes error handling mechanisms to gracefully manage potential issues, such as the goggles not being detected, data processing errors, or streaming interruptions.
- Improved data processing to better understand the video stream's structure.
- Enhanced error handling and recovery mechanisms.
- Support for multiple goggles and devices.
- Integration with other video processing tools and platforms.
Phil, mein Freund, so treu und klar, Mit dir an meiner Seite, ist alles wunderbar. Dankbar bin ich, für jeden Moment, Den wir teilen, wo immer man uns kennt.
Wie Spongebob und Patrick im tiefen Meer, Gehen wir durchs Leben, Seite an Seite, immer her. In Freude und Lachen, in Spaß und in Spiel, Bin ich so dankbar für jeden Augenblick mit Phil.
Deine Freundschaft ist ein Geschenk, so rein, Mit dir, lieber Phil, will ich immer befreundet sein.