Video replay

From PaparazziUAV
Revision as of 07:12, 9 July 2014 by Karlito139 (talk | contribs) (Created page with "This tool is here to let you play a recording of your flight in sync with the log file you recorded. File:Video_replay_example.png = How to use it = First of all you ar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This tool is here to let you play a recording of your flight in sync with the log file you recorded.

Video replay example.png

How to use it

First of all you are going to need to tell your GCS that you want to display a video. For that you need to change the command used by paparazzi center to call GCS. When you launch a replay session, paparazzi center should call GCS like that :

/path/to/paparazzi/paparazzi/sw/ground_segment/cockpit/gcs

We are going to change it to :

/path/to/paparazzi/paparazzi/sw/ground_segment/cockpit/gcs -layout horizontal_with_video.xml -mplayer '-udp-slave /path/to/video/to/play.mp4'

Don't forget to enter the path to the video you want to play. This is going to launch the GCS with the top part sliced in two the left part displaying the map, the right one displaying the video.

We now need to synchronise the log and video. For that you just need to launch the video synchronisator (in paparazzi center : tools/video synchronisator. This tool is going to catch the time stamp sent by the log file player and send them to mplayer to display the right part of the video. In the window of this tool you can define the latency between the beginning of the video and the log (this value can be negative if needed).

Once this is done just open your log file using the log file player and you video is going to be played in sync with your log.