Update FPV-orange-pi-5-groundstation.md

fixed pipeline as videos were unplayable using mp4 container
pull/324/head
JohnDGodwin 2024-02-12 20:38:40 -05:00 committed by GitHub
parent c9d78e0966
commit fdf58eb972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 2 deletions

View File

@ -60,7 +60,7 @@ enter the following line-by-line
reboot device
TODO: or figure out how to load the driver without a full reboot
TODO: or figure out how to load the driver without a full reboot. Try "modprobe rtl8812au"
----------------------------------------------------------------------
@ -221,7 +221,20 @@ note: This script relies on a push button connected between pin 5 and GND. You w
if [ $(gpio read $GPIO_PIN) -eq 0 ]; then
if [ $RUNNING -eq 0 ]; then
current_date=$(date +'%m-%d-%Y_%H-%M-%S')
gst-launch-1.0 -e udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265' ! rtph265depay ! h265parse ! tee name=t ! queue ! mppvideodec ! videoconvert ! autovideosink sync=false>
gst-launch-1.0 -e \
udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265' ! \
rtph265depay ! \
h265parse ! \
tee name=t ! \
queue ! \
mppvideodec ! \
videoconvert ! \
autovideosink sync=false t. ! \
queue ! \
matroskamux ! \
filesink location=record_${current_date}.mkv &
RUNNING=$!
else
kill $RUNNING