... | ... | @@ -18,20 +18,50 @@ Push the `Record button` and follow the instructions. Do not forget to terminate |
|
|
|
|
|
### Single scenario
|
|
|
|
|
|
Automatic recording of videos is possible using the `VideoRecorder`. The simulation output must be specified over CLI arguments:
|
|
|
Automatic recording of videos is possible using the `VideoRecorder`. The simulation output directory must be specified over the CLI arguments.
|
|
|
|
|
|
![configuration](uploads/de1231c31b92cf2680e1b1e972ef5cd1/configuration.png)
|
|
|
|
|
|
After the `VideoRecorder` finished the video is stored in the simulation output directory if not specified differently.
|
|
|
|
|
|
See the help menu `-h` for how to specify the video path or additional settings:
|
|
|
#### In the terminal
|
|
|
|
|
|
Firstly, generate the `vadere-video.jar` that starts the `VideoRecorder` application. In the terminal, run:
|
|
|
```
|
|
|
mvn clean
|
|
|
mvn -Dmaven.test.skip=true package
|
|
|
```
|
|
|
After the packaging process has finshed, you can find the `vadere-video.jar` in `VadereGui/target`.
|
|
|
|
|
|
Secondly, run `vadere-video.jar` e.g. from Vadere `root`:
|
|
|
```
|
|
|
java -jar VadereGui/target/vadere-video.jar -i path/to/sim/outputdir
|
|
|
```
|
|
|
Do not forget to specify the simulation output directory where the `*scenario `and the `*postvis.traj` is stored using `-i`. (Note that `-i` expects a directory; do not provide the `postvis.traj here.)
|
|
|
|
|
|
The generated video is stored as `movie.mov` in the simulation output directory if the path is not specified manually (`-o`).
|
|
|
|
|
|
See the help menu `-h` to see how video name and path and additional settings can be passed over the command line:
|
|
|
```
|
|
|
java -jar VadereGui/target/vadere-video.jar -h
|
|
|
```
|
|
|
|
|
|
#### In an IDE (IntelliJ)
|
|
|
For debugging the `VideoRecorder` can be started also in an IDE. CLI arguements must be specified in the configuration:
|
|
|
|
|
|
![configuration](uploads/de1231c31b92cf2680e1b1e972ef5cd1/configuration.png)
|
|
|
|
|
|
As in the terminal, the help menu `-h` can be displayed:
|
|
|
|
|
|
![configurationHelp](uploads/6980603079f8cf2a4743a5eb1721013d/configurationHelp.png)
|
|
|
|
|
|
This should display all possible argument settings when running the `VideoRecorder`
|
|
|
Running the `VideoRecorder` with this configuration displays the CLI arguments:
|
|
|
|
|
|
![HelpMenu](uploads/8964d018abeedaf79415964703da2f99/HelpMenu.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Multiple scenarios
|
|
|
|
|
|
We use the python script `Tools/ContinuousIntegration/run_vadere_video.py` to generate multiple videos from multiple videos.
|
... | ... | |