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.
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.
-
Create a new conda environment (named
mne-videobrowser) with MNE-Python installed.conda create --channel=conda-forge --strict-channel-priority --name=mne-videobrowser mne
-
Activate the environment:
conda activate mne-videobrowser
-
Install this package with rest of the dependencies:
pip install mne-videobrowser
-
Only on linux: If you do not have PortAudio library, which is dependecy of
sounddeviceinstalled, 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:
-
Clone this repository and navigate to project root.
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mne_videobrowser-0.1.0.tar.gz.
File metadata
- Download URL: mne_videobrowser-0.1.0.tar.gz
- Upload date:
- Size: 305.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94f63717a8fbc255dc960eb8514140b93d78c47730e54689c5d9e9a0241e5f60
|
|
| MD5 |
348f9868ef1d3eb475bf18fe33c2f24f
|
|
| BLAKE2b-256 |
723fa11fc1c49b64e48892384a00d9f23c356ba0d13939a54e97d5a0008ee46c
|
File details
Details for the file mne_videobrowser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mne_videobrowser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
043bb372c6e145ad6ae695a7ce36bd98c02656548278bc215085491abe141bdc
|
|
| MD5 |
1b05749c8ed2b4d0ff7f15dff17321ca
|
|
| BLAKE2b-256 |
7d45e531de9a98315248835fb2fa92adbfc5cf2c0826a3356658c63316f8d21e
|