denisecailab / ezTrack

Free, platform independent, behavior tracking software.
GNU General Public License v3.0
118 stars 41 forks source link

Issue with latest update (fixed 8b, now problem with 8c) #25

Closed ewo478 closed 3 years ago

ewo478 commented 3 years ago

Hi, I'm getting an error: "TypeError: Locate() missing 1 required positional argument: 'video_dict'" in cell 8b, screenshot attached Screenshot 2021-04-13 081645

ewo478 commented 3 years ago

I saw there was updated files available for this, downloaded those now have a syntax error in 2.

Screenshot 2021-04-13 082924

ewo478 commented 3 years ago

Fixed with comma but now have issue with 8c processing only 5% of frames before stopping Screenshot 2021-04-13 090007

ewo478 commented 3 years ago

Similarly to issue 18 raised by cadeichsel, tried MP4 instead of avi. This generated the csv.

There was a massive drop in f/s (80 to 25) and total frames to analyze (~45000 to ~15500). Is this the reason? Is there a recommendation for f/s or total frames?

Had dsmpl = 0.5 in step 2 for both mp4 and avi.

ZachPenn commented 3 years ago

ezTrack will process every readable frame in your video. The denominator in the progress bar is based upon metadata in your video codec, and not the actual number of readable frames in the video. Same deal with frame rate; it's metadata, and can be misleading. I've seen a few instances of videos with a large amount of empty/corrupt frames. I'm guessing your issue has something to do with your videos rather than ezTrack.

If you want to confirm that this isn't specific to ezTrack, you could play the video in VLC, which will show the number of decoded frames under video information as you play the video

ewo478 commented 3 years ago

Is this the information from VLC you mean? This is from the .avi I first tried with, suggests 0 lost frames?

Screenshot 2021-04-13 141850

ZachPenn commented 3 years ago

Yes. The total number of frames doesn't seem to be 45,000 either though, but maybe that's because you didn't play the whole thing.

ewo478 commented 3 years ago

I reran the .avi through the notebook and in VLC from start to finish, still saw the same discrepancy in the frame number and 0 lost frames, so I'm not sure why this is happening. Converting to mp4 works so I will go with this, thanks for your help and for developing this software