Skip to main content

Browse video and audio in sync with MEG/EEG data

Project description

Video browser extension for MNE-Python Qt data browser

This is an open-source Python package for browsing video and audio time-synchronized to MEG/EEG data. It serves as an add-on for mne-qt-browser, which is part of MNE-Python, an open-source Python package for exploring, visualizing, and analyzing human neurophysiological data.

This project also complements Helsinki VideoMEG project by supporting video and audio files recorded with their software.

VideoMEG browser screenshot Screenshot of the browser extension showing a black video frame and a test audio file synchronized with MNE-Python's sample MEG data.

Installation

In addition to MNE-Python, this project requires package OpenCV for standard video file (such as .mp4) reading and sounddevice for audio playback. For the qt backend to work correctly, MNE-Python should be installed using conda.

  1. Create a new conda environment (named mne-videobrowser) with MNE-Python installed.

    conda create --channel=conda-forge --strict-channel-priority --name=mne-videobrowser mne
    
  2. Activate the environment:

    conda activate mne-videobrowser
    
  3. Install this package with rest of the dependencies:

    pip install mne-videobrowser
    
  4. Only on linux: If you do not have PortAudio library, which is dependecy of sounddevice installed, install it. For example on Ubuntu/Debian:

    sudo apt install libportaudio2
    

See usage examples in GitHub.

For developers

Installation for development

To install this package for development, follow the regular installation guide (and maybe rename the conda environment to mne-videobrowser-dev or similar to distinguish it from the stable version), but instead of pip install mne-videobrowser:

  1. Clone this repository and navigate to project root.

  2. Install the package in editable mode and with development dependencies.

    pip install -e .[dev]
    

    Editable mode ensures that changes in source code are reflected to the installed package.

Running tests

Tests are located in directory tests/ and they run using package pytest (included in development dependencies).

You can run all the tests with:

pytest

You can also selectively run tests in a specific file/class/method. See pytest documentation for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mne_videobrowser-0.1.2.tar.gz (850.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mne_videobrowser-0.1.2-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file mne_videobrowser-0.1.2.tar.gz.

File metadata

  • Download URL: mne_videobrowser-0.1.2.tar.gz
  • Upload date:
  • Size: 850.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for mne_videobrowser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2301121b07ec3bb17b62da5b40b77b891e7d6e701a6f90efc968986c7348dff0
MD5 b3ab69e52b6ecede14f5286f03c81d1d
BLAKE2b-256 ff20d1482a3ca0852c80bf0d72700a19c9d56c609721fc5b36a7753203bbcb11

See more details on using hashes here.

File details

Details for the file mne_videobrowser-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mne_videobrowser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44e8f3a58db4cb866b0ee156d6408f2ea429c6d8ed6e2d50fad723aae821bffb
MD5 978a79c13c0a29cb769b1641d69fe8bf
BLAKE2b-256 8f86c0a42987cb278f1d006c126e32b0ca610371d6bbe9e3e389f28d6ebabbaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page