Add Neurosift service for AVI files #1983
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a small change to add an "Open With -> Neurosift" entry for .avi files.
DANDI supports uploading of .avi files, but currently there is no way to preview/stream those files in the browser (browsers do not support AVI).
Neurosift now provides a workaround by using Dendro to precompute .mp4 files associated with portions of the .avi files.
For example:
https://dandiarchive.org/dandiset/001084/draft/files?location=sub-DL18%2Fsub-DL18_ses-211110_image%2Bophys&page=1
With this PR you would be able to "Open With" Neurosift and be directed to
https://neurosift.app/?p=/avi&url=https://api.dandiarchive.org/api/assets/3d760886-c1ac-467d-bd87-3dfd71a5cb65/download/&dandisetId=001084&dandisetVersion=draft
At that link, you should be able to view the first X minutes of that video because the Dendro job had already been submitted and completed. For other AVI files, the .mp4 file might not be prepared, and the Dendro job would need to be submitted. Dendro is still at an early stage and we are working on documenting how to obtain a Dendro API key, etc, to be able to submit those jobs. But it would be a great to establish this connection between the archive and Neurosift even during the development phase.
tag: @bendichter @yarikoptic