Skip to content

Instantly share code, notes, and snippets.

View rkh932's full-sized avatar

James Trimble rkh932

  • University of Tennessee at Chattanooga
  • Chattanooga, TN
View GitHub Profile

How to Setup a RaspberryPi to Stream Video to QGroundControl

USB Webcam

Pre-requisites

Install video 4 linux, sudo apt install v4l-utils

Verify /dev/video0 exists

Start Streaming

%% Load video and labels
videoFile = ''; % The video file to use
outputPath = ''; % The folder to save to
S = load(''); % The .mat file with the labels data
labels = S.gTruth.LabelData;
%% Extract frames to the outputPath
obj = VideoReader(videoFile);
fileCount = 0;
for i=1:size(labels)
@rkh932
rkh932 / GoProQGC.md
Last active July 27, 2022 03:08
How to Connect a GoPro Hero 4 Black to QGroundControl in Linux

How to Connect a GoPro Hero 4 Black to QGroundControl in Linux

What you'll need:

  • QGroundControl
  • curl
  • bash
  • ffmpeg
  • GoPro Hero 4 Black

Instructions