MPRecorder

From FlightGear wiki
Jump to navigation Jump to search
Note  As of August 2020, FlightGear next has built-in support for recording/replaying multiplayer aircraft.
Deprecated  This software has been abandoned and the source code is no longer available online.
MPRecorder
Developed by Markus Pargmann
Initial release 0.1
Latest release 0.1
Written in Python (Version 3)
OS All with python3 support (only tested on linux)
Development status Inactive
License GNU General Public License
[dead link] Website

MPRecorder is a tool to record and replay multiplayer activities, including chat and all aircraft properties that are transferred in multiplayer. In difference to the integrated FlightGear replay support, you can record and replay multiple aircraft. Also the standard recording quality is most times much higher (10 updates per second). You can use any view you want for video recording, because all replays are in multiplayer, so you can use normal aircraft while replaying a flight.

MPRecorder example video

This is an example video of a landing in St. Barths using MPRecorder to record other views. I am usually not making videos so this is far away from being perfect, but I think you can get an impression.

FlightGear MPRecorder example video at St. Barths


Features

  • Record/Replay multiple flights at the same time
  • Record multiplayer activity within 100nm
  • Each pilot recording stored in <USER_HOME>/.fgfsrec
  • Replays in multiplayer (you can use UFO to record or watch the flight)
  • Replay multiple recordings at the same time
  • Low/high quality replays

Record

Simple command to record at an airport:

./recorder.py -c rec record --lat 18.040707 --lon -63.110125

Replay

Simple command to replay a single recorded flight:

./recorder.py -c alfo replay ~/.fgfsrec/2012_06_24_10_05_alfo

Replay starting at second 42:

./recorder.py -c alfo replay --at 42 ~/.fgfsrec/2012_06_24_10_05_alfo

Replay a complete multiplayer event (All recordings in one directory) while preserving the start times of each recorded flight:

./recorder.py -c alfo replay ~/.fgfsrec/

Replay of multiple recordings starting at the same time:

./recorder.py -c alfo replay ~/.fgfsrec/2012_06_24_10_05_alfo ~/.fgfsrec/2012_06_24_10_00_alfo

Replay of multiple recordings, the second replay starts after 10 seconds:

./recorder.py -c alfo replay ~/.fgfsrec/2012_06_24_10_05_alfo ~/.fgfsrec/2012_06_24_10_00_alfo:10

Help

% ./recorder.py --help
usage: recorder.py [-h] [-s SERVER] -c CALLSIGN {record,replay} ...

positional arguments:
  {record,replay}       To record flights
    record              Record the activities at a given position
    replay              Replay one or more files in multiplayer

optional arguments:
  -h, --help            show this help message and exit
  -s SERVER, --server SERVER
                        SERVER the recorder should use
  -c CALLSIGN, --callsign CALLSIGN
                        Callsign for the recorder. In replay mode this is used
                        as prefix for the id of the replay
% ./recorder.py record --help
usage: recorder.py record [-h] --lon LON --lat LAT

optional arguments:
  -h, --help  show this help message and exit
  --lon LON
  --lat LAT
% ./recorder.py replay --help
usage: recorder.py replay [-h] [-a STARTTIME] [-d]
                          PATH[:STARTTIME] [PATH[:STARTTIME] ...]

positional arguments:
  PATH[:STARTTIME]      Path to a file or directory with replays combined with
                        an optional relative start time in seconds for all
                        recordings found at that path.

optional arguments:
  -h, --help            show this help message and exit
  -a STARTTIME, --at STARTTIME
                        Start the replay at second x
  -d, --hq              High quality replay. This can lead to lagging when
                        replaying big multiplayer events.

Related content