Archives de catégorie : wifibroadcast

Overlaying telemetry text on video before Wifibroadcast

Overlaying telemetry text on video before Wifibroadcast

Update code here : mavproxy_MyPiModule.py
Github here :github/MyPiDrone/MyPiModule

    • (1) Here a python sample with a named pipe MyPiCamera_sample.py and command execution with tx :
       mkfifo /tmp/MyPiCamera.pipein
      ./MyPiCamera_sample.py | tee $VIDEO | ./tx  -p $PORT -b $BLOCK_SIZE -r $FECS -f $PACKET_LENGTH $WLAN 1>/dev/null 2>&1 &
      sleep 3
      echo 'My telemetry text' > /tmp/MyPiCamera.pipein

      or with gstreamer:
      mkfifo /tmp/MyPiCamera.pipein
      ./MyPiCamera_sample.py | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink port=5000 host=10.0.0.12 >/dev/null 2>&1 &
      sleep 3
      echo 'Welcome PiCamera' > /tmp/MyPiCamera.pipein
  • (2) manage_video.sh and myvideo.service not used anymore

Data transport diagram :

mypidrone1_tarot_data_flow_diagram_v1-2

MyPiModule radio functions :

mypidrone1_tarot_mypimodule_radio_control_v1-1

Demos videos :

File recorded on SD card :

Sample Photo snapshot (to Zoom click on here):

mypidrone-overlaying-telemetry-text-on-video-demo1

Roll Sample :
mypidrone-overlaying-telemetry-text-on-video-roll-demo

Pitch and Roll sample :
mypidrone-overlaying-telemetry-text-on-video-pitch-demo