MPRecorder: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Minor cleanup; +related: Howto:Record, analyze and replay multiplayer flights with network tools, Instant Replay)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{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.}}
{{Infobox Software
{{Infobox Software
| title                  = MPRecorder
| title                  = MPRecorder
Line 7: Line 10:
| initialrelease        = 0.1
| initialrelease        = 0.1
| latestrelease          = 0.1
| latestrelease          = 0.1
| writtenin              = Python 3
| writtenin              = Python
| writteninversion      = 3
| os                    = All with python3 support (only tested on linux)
| os                    = All with python3 support (only tested on linux)
| platform              =  
| platform              =  
| developmentstatus      = Active
| developmentstatus      = Inactive
| type                  =  
| type                  =  
| license                = [[GNU General Public License]]
| license                = [[GNU General Public License]]
| website                = http://fgfs.allfex.org/mprecorder/
| website                = http://fgfs.allfex.org/mprecorder/{{dead link|2020-08}}
}}
}}
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 aircrafts. 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 aircrafts while replaying a flight.
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 ==
== 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.
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.


{{#ev:youtube|FCgBhIgjOmo|600|auto|Flightgear MPRecorder example video at St. Barths}}
{{#ev:youtube|FCgBhIgjOmo|600|left|FlightGear MPRecorder example video at St. Barths}}{{-}}


== Features ==
== Features ==
* Record/Replay multiple flights at the same time
* Record/Replay multiple flights at the same time
* Record multiplayer activity within 100nm
* Record multiplayer activity within 100nm
* Each pilot recording stored in <USER_HOME>/.fgfsrec
* Each pilot recording stored in <code>&lt;USER_HOME&gt;/.fgfsrec</code>
* Replays in multiplayer (You can use UFO to record or watch the flight)
* Replays in multiplayer (you can use UFO to record or watch the flight)
* Replay multiple recordings at the same time
* Replay multiple recordings at the same time
* low/high quality replays
* Low/high quality replays


== Record ==
== Record ==
Simple command to record at an airport:
Simple command to record at an airport:
  ./recorder.py -c rec record --lat 18.040707 --lon -63.110125
  ./recorder.py -c rec record --lat 18.040707 --lon -63.110125


== Replay ==
== Replay ==
Simple command to replay a single recorded flight:
Simple command to replay a single recorded flight:
  ./recorder.py -c alfo replay ~/.fgfsrec/2012_06_24_10_05_alfo
  ./recorder.py -c alfo replay ~/.fgfsrec/2012_06_24_10_05_alfo
Line 54: Line 55:


== Help ==
== Help ==
  % ./recorder.py --help
  % ./recorder.py --help
  usage: recorder.py [-h] [-s SERVER] -c CALLSIGN {record,replay} ...
  usage: recorder.py [-h] [-s SERVER] -c CALLSIGN {record,replay} ...
Line 94: Line 94:
   -d, --hq              High quality replay. This can lead to lagging when
   -d, --hq              High quality replay. This can lead to lagging when
                         replaying big multiplayer events.
                         replaying big multiplayer events.
== Related content ==
* [[Howto:Record, analyze and replay multiplayer flights with network tools]]
* [[Instant Replay]] - The built in record and instant replay feature.


[[Category:Software]]
[[Category:Software]]
[[Category:GPL software]]
[[Category:GPL software]]
[[Category:Multiplayer]]
[[Category:Multiplayer]]

Latest revision as of 05:13, 10 November 2020

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