the easy way is MP support commandline arguments on startup
there is one for gstreamer
missionplanner.exe -gstream “udpsrc port=5601 caps=‘application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264’ ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink”