Skip to content

Get correct frame amount for video files without nb_frames property & allow codec selection#246

Open
ximion wants to merge 3 commits intodenisecailab:masterfrom
ximion:wip/videofixes
Open

Get correct frame amount for video files without nb_frames property & allow codec selection#246
ximion wants to merge 3 commits intodenisecailab:masterfrom
ximion:wip/videofixes

Conversation

@ximion
Copy link
Contributor

@ximion ximion commented May 17, 2023

[This is a new PR due to a source-branch change, following up #193 - the original PR text is reproduced below for reference]

Hi!
First of all, I'm really impressed by this project! Two years ago, it was a bit mediocre compared to MIN1PIPE, but now based on very early testing, Minian seems to outperform CaImAn and MIN1PIPE for my datasets! (Still need a lot more testing for that though, I wonder whether switching out Minian's median filter with an anisotropic filter for denoising would make things even better...)
The best thing is that Minian's documentation is excellent, which makes it very easy to get started, and all public API seems to be well documented as well. Really awesome work!

The data I generate is recorded with PoMiDAQ or Syntalos, which prefer the MKV container for video, as it's a bit nicer to store FFV1 video in, but more importantly I use MKV's ability to save arbitrary metadata with the video file quite excessively.
When loading these files into Minian, it currently crashes as the nb_frames property apparently doesn't exist for MKV containers. Fortunately, the amount of frames is very easy to calculate, so this patch adds support for just that!

Thanks for considering the change! :-)
Cheers,
Matthias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant