fourMs / VideoAnalysis

A standalone application for creating visualizations and extract motion features from video files.
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/VideoAnalysis/
8 stars 2 forks source link

Motion video should always start with an empty frame #24

Closed balintlaczko closed 4 years ago

balintlaczko commented 4 years ago

This is already happening most of the time, but still having a problem occasionally due to #23

balintlaczko commented 4 years ago

Phew, this was a hard one. The recently implemented reset method for [mg.motion] was already ensuring the black first frame (and not an accidental flash of the first frame), but then there were some issues with calling reset at the wrong time, and manually banging out movie frames (for some other purpose) in the wrong time. Now it seems to work consistently in all color modes.

balintlaczko commented 4 years ago

In batch export, there are still junk first frames in the motion videos every now and then. Works well with single video files, so there has to be some problem during the batch export.

balintlaczko commented 4 years ago

Phew again! Now it works in batch export as well. There is a very particular thing with [jit.op]. If you want to avoid invalid output, even just a single invalid result, you should make sure that it's planecounts and dims are set before you send in the two matrices. Otherwise the first-ever output (after the creation of the object) will always be invalid. Grew some grey hair until I tracked this down... NB this can actually be a potential problem in other parts of the program too.

aleksati commented 4 years ago

Jupp, this still happens occasionally(!). Had to work hard to reproduce it again though, so its as good as done. However, we can keep this open as a reminder (and later development)

balintlaczko commented 4 years ago

Another attempt, hopefully this is fixed now. :)