Difference between revisions of "Video replay"

From PaparazziUAV
Jump to navigation Jump to search
Line 13: Line 13:
   /path/to/paparazzi/paparazzi/sw/ground_segment/cockpit/gcs -layout horizontal_with_video.xml -mplayer '-udp-slave /path/to/video/to/play.mp4'
   /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.
Don't forget to enter the path to the video you want to play. You are going to have to configure your GCS in order for it to diplay the 2D map and the video. This part is explained [https://wiki.paparazziuav.org/wiki/GCS_Configuration#Video_plugin here]. 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).
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.
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.

Revision as of 02:39, 14 July 2014

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. You are going to have to configure your GCS in order for it to diplay the 2D map and the video. This part is explained here. 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.