Skip to content

Telecommunication-Telemedia-Assessment/AVrateVoyager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVrate Voyager

AVrate Voyager is an online based image/video/audio quality testing framework. The docker part is based on bottle_docker_kit. The rating part is based on avrateNG. If you want to perform a lab test, then you should use avrateNG. The core idea of AVrate Voyager is to playout the stimuli within a webbrowser and collect all ratings and answers in a database. However this may create some limitations for the stimuli that are considered, e.g. they must be playable with a webbrowser which requires, e.g., for videos a specific encoding and video codec.

A brief overview of AVrate Voyager can be seen in the this video or these slides.

Requirements

  • linux based system with docker and docker-compose installed, it should work with both installed under windows
  • for local development and export scripts you need python3 with numpy and pandas

Preparation

Before you can perform your test some steps are required. E.g. changing the configuration and small adaptions of the html-templates for the test. The template syntax used is SimpleTemplate Engine, please checkout their guide.

General config

The main configuration for the test system can be adapted in app/config.json:

{
    "welcome_msg": "video quality",  // welcome message used in the welcome screen
    "rating_template": "rating/acr.tpl", // used template for rating
    "title": "video quality", // page title
    "max_stimuli": 150,  // in case you have more than max_stimuli files only max_stimuli files are presented to a participant
    "cookie_secret": "x-files-forever",  // cookie to check whether the test has been done already
    "http_user_name": "stg7",  // username for the /stats route
    "http_user_password": "test" // password for the /stats route
}

The max_stimuli specifies how many stimuli should be rated by one participant, if you want to rate all stimuli, then remove this from the config or set it to a value > number of stimuli.

Start page

For your specific test you should adapt the start page, so change the text in the app/templates/welcome.tpl file.

Questionnaire

The first page after the welcome page is the questionnaire, here questions regarding the background of the participant are collected. The questions can be adapted in the file app/templates/questionnaire.tpl, there are already examples provided, e.g. adapt the given question array to your needs.

questions = [
    {
        'type': 'choice', 
        'question': 'What is your age?', 
        'qkey': 'user_age_range', 
        'options': 
                [
                    '', 
                    '< 18', 
                    '18 to 24', 
                    '25 to 29', 
                    '30 to 39', 
                    '40 to 49', 
                    '50 to 59', 
                    '60 to 69', 
                    '70+'
                ]
    },
    ....
]

choice and input fields are currently supported, important is that you define a unique qkey. qkey is used to store the result of the question in the database.

Instructions

Please change the instructions according to your test design, see template file app/templates/instructions.tpl.

On the questionnaire and instructions pages the stimuli for the user are precached to avoid loading during the conduction of the test, however this must be checked and verified and can result in long loading times for these pages.

The test system continues either with the training or rating phase. Training is performed in case you have training files in the app/train folder stored, otherwise it will be skipped.

Rating template

The rating template consists of two parts, the first part is the presentation of the stimuli app/templates/stimuli.tpl, and the second part is the rating method.

The app/templates/stimuli.tpl template is currently only for audio and video files, thus for images adaption are required. Adaption for video and audio tests are still required for the template, depending on the specific test design, e.g. playing the video in full screen or with a fixed resolution.

The rating method is defined using the app/config.json file, modify the key rating_template. Currently only rating/multi_slider.tpl and rating/acr.tpl are supported.

  • rating/multi_slider.tpl: implements several slides for rating, just for demonstration
  • rating/acr.tpl: implements ACR rating scale

Stimuli files

All videos/image/audio files in the folder app/stimuli are used in the test. In case you add files to the app/train folder a training (where the results are not stored) with the files in this folder is performed before the tests starts.

Start (for development)

You can run the service with

docker-compose up -d

Now your web-server is running at http://localhost:8080, remove -d flag for a non permanent service.

In case you have python and the required libraries installed you can also run app/main.py directly without docker, this approach is just recommended for development.

General online test hints

  • make sure the videos play with firefox and chrome, consider that most participants will not have high end equipment
  • try to reduce the overall file size of all stimuli, e.g. approx 500MB for 180 stimuli where only 30 were asked per participant was ok in some of our tests

For videos it is important that you encode them with 4:2:0 8 bit and a suitable CRF value using H.264, otherwise e.g. Firefox will not be able to play the videos.

Behind the scene tricks

In case you want to perform a test run in the system without filling the forms, open <baseurl>/dev before, in most of the templates a second submission button will be shown which now enables you to skip the filling of the forms.

To see some basic statistics of your currently running test you can open <baseurl>/stats and login with the specified password and username in the config.json.

If you want to redo the test or had some other troubles, a simple <baseurl>/rc will reset the cookies that prevent you from doing the test again.

These magic routes should be removed/disabled for a production environment.

Production deployment

Use the docker-compose approach to get the services started.

Default settings are performing python autoload, thus the service will reload in case the main.py is changed. For a production setup this should be changed (check app/uwsgi.ini and comment py-autoreload = 2 line). In addition for a real production system HTTPS is recommended, here caddyserver could be used with e.g. a configuration Caddyfile in the following way:

your.test.domain.name {
    reverse_proxy 127.0.0.1:<PORT>
}

where <PORT> is the configured port in the docker-compose.yml file of AVrate Voyager, the default value is 8080. You should further check the firewall settings on the production server.

Tools folder

In the tools folder some useful command line tools for pre-processing videos/images/audio files are stored, e.g.:

  • convert_videos_to_cc_versions.py: converts a UHD-1/4K video to a 540p center cropped CRF 22 H.264 version that can be used for an online test (this tools has been used in the paper rao2021crowd)

Developers

If you like this software you can also donate me a ☕

Contributors

  • Maximilian Schaab
  • Serge Molina
  • Anton Schubert
  • John Dumke and Margaret Pinson (questionnaire form)

Acknowledgments

If you use this software in your research, please include a link to the repository and reference one of the following paper.

@inproceedings{rao2021crowd,
  title={Towards High Resolution Video Quality Assessment in the Crowd},
  author={Rakesh {Rao Ramachandra Rao} and Steve Göring and Alexander Raake},
  booktitle={Thirteenth International Conference on Quality of Multimedia Experience (QoMEX)},
}

@inproceedings{goering2021voyager,
  title={AVRate Voyager: an open source online testing platform},
  author={Steve Göring and Rakesh {Rao Ramachandra Rao} and Stephan Fremerey and Alexander Raake},
  year={2021},
  booktitle={2021 IEEE 23st International Workshop on Multimedia Signal Processing (MMSP)},
  pages={1--6},
  organization={IEEE}
}

License

GNU General Public License v3. See LICENSE file in this repository.

Star History

Releases

No releases published

Packages

No packages published