README.md 2.27 KB
Newer Older
Niccolò Pretto's avatar
Niccolò Pretto committed
1
2
# Packager

3
4
5
6
7
8
9
10
11
12
13
14
15
## Description
Implements MPAI CAE-ARP (https://mpai.community/standards/mpai-cae/about-mpai-cae/#Figure2) Packager Technical Specification, providing:
- Access Copy Files:
  1. Restored Audio Files.
  2. Editing List.
  3. Set of Irregularity Images in a .zip file.
  4. Irregularity File.
- Preservation Master Files:
  1. Preservation Audio File.
  2. Preservation Audio-Visual File where the audio has been replaced with the Audio of the Preservation Audio File
     fully synchronised with the video.
  3. Set of Irregularity Images in a .zip file.
  4. Irregularity File.
Niccolò Pretto's avatar
Niccolò Pretto committed
16
17

## Getting started
18
The Packager is written in Python 3.9 which is therefore required to run the program.
Niccolò Pretto's avatar
Niccolò Pretto committed
19

20
21
## Installation
PyYaml (https://pyyaml.org) is required for reading the configuration file. You can install it with:
Niccolò Pretto's avatar
Niccolò Pretto committed
22
```
23
24
pip install pyyaml
```
25
MoviePy (https://zulko.github.io/moviepy/) is required for replacing the audio of the Preservation Audio-Visual File. You can install it with:
26
27
```
pip install moviepy
Niccolò Pretto's avatar
Niccolò Pretto committed
28
29
```

30
31
32
33
34
You can also use `requirements.txt` file to install all needed dependencies at once:
```
pip install -r requirements.txt
```

Niccolò Pretto's avatar
Niccolò Pretto committed
35
## Usage
Nadir Dalla Pozza's avatar
Nadir Dalla Pozza committed
36
Once the libraries are installed, you should customise the configuration file `config.yaml`.
37
38
39
There are two required parameters:
1) `WORKING_PATH` that specifies the working path where all input files are stored and where all output files will be saved;
2) `PRESERVATION_FILES_NAME` that specifies the name of the preservation files to be considered.
Nadir Dalla Pozza's avatar
Nadir Dalla Pozza committed
40
41

You can now launch the Packager from the command line with:
42
43
44
```
python3 main.py
```
Nadir Dalla Pozza's avatar
Nadir Dalla Pozza committed
45
Useful log information will be displayed during execution, requiring occasional interaction.
Niccolò Pretto's avatar
Niccolò Pretto committed
46
47

## Support
48
49
50
If you have any problem you can contact us at:
- Nadir Dalla Pozza (nadir.dallapozza@unipd.it)
- Niccolò Pretto (niccolo.pretto@unipd.it)
Niccolò Pretto's avatar
Niccolò Pretto committed
51
52

## Authors and acknowledgment
53
54
55
56
57
58
59
60
61
62
This project was developed by:
- Nadir Dalla Pozza (Università degli Studi di Padova)
- Niccolò Pretto (Università degli Studi di Padova)
- Sergio Canazza (Università degli Studi di Padova)

This project takes advantage of with the following libraries:
- MoviePy (https://zulko.github.io/moviepy/)
- PyYaml (https://pyyaml.org)

Developed with Python IDE PyCharm Community (https://www.jetbrains.com/pycharm/).
Niccolò Pretto's avatar
Niccolò Pretto committed
63
64

## License
65
This project is licensed with GNU GPL v3.0.