-
Hello We have an .slp file that contains 1000 human labeled frames from 12 videos, total 300,000+ frames. We'd like to compress this file significantly, i.e remove all non-human labeled frames and save an slp file containing just the labeled frames. In parallel we've made a short (chimera) video from the 12 vids containing just those 1000 frames that were labeled. We are close (see also a screen grab), but can't change the video filenames in the .slp files. For some reason the original video filenames are still being searched for during the save. The code is below and the 2 files (hybrid .mp4 and original .slp file they are here: https://drive.google.com/drive/folders/1GhK8D1YslYhtR6Ut5xRYi6wZoAeCu8jK?usp=share_link) I think this should be trivial, but I"m out of ideas... the videonames are really sticky!?
ERROR:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @catubc, So the problem stems from setting
You should instead be setting the
We use Lines 1023 to 1029 in c4861e3 we do not currently any setter methods for setting backend specific attributes through Video . But, we could definitely add this (I too have run into this trap when working with the Video class).
Let us know if this helps get rid of those sticky videos! Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks so much Liezl. I've spent several hours past 2 days working on this and fortunately I was able to get it work now - but I had to revert to Talmo's method which just makes a new label file - rather than editing the existing. Below are the 2 functions that we used if anyone else needs help. We will next work on merging this shortened human labeled .slp file with the id-switch .slp file which we made before. We may still require some help with this merge, so I will start a separate issue if that's the case. Thank you again for everything (Talmo too). This function makes the compressed .slp file:
This function makes the compressed .avi video to accompany the above .slp file.
|
Beta Was this translation helpful? Give feedback.
Thanks so much Liezl.
I've spent several hours past 2 days working on this and fortunately I was able to get it work now - but I had to revert to Talmo's method which just makes a new label file - rather than editing the existing. Below are the 2 functions that we used if anyone else needs help.
We will next work on merging this shortened human labeled .slp file with the id-switch .slp file which we made before. We may still require some help with this merge, so I will start a separate issue if that's the case.
Thank you again for everything (Talmo too).
catubc
This function makes the compressed .slp file: