AVI movie data altered after resaving file with movie.save #1178
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I would inspect the movie and make sure it still looks reasonable. The load function converts to float, and also does an |
Beta Was this translation helpful? Give feedback.
-
This is strange. What operating system are you in? If not Windows, if it isn't too much trouble, could you share a small movie (e.g., a couple of hundred frames) and small self-contained code file that you used to recreate these issues? |
Beta Was this translation helpful? Give feedback.
Ok I tried to reproduce and found a bug in Windows save for avi 😭 So I'll need to work on that.
It looks like the default for avi, though, looking on the code is to save with lots of scaling operations that makes it better for viewing more than for processing. If you want to stop that and keep things the same (again, without actually testing it), try setting the
q_min
andq_max
arguments toNone
, and it will turn this off. Then it should give the same outputs as inputs -- if you don't do that it will try to scale the input to the full dynamic range, which is what we are seeing in your example so it looks nicer for presentations etc.This is because saving avi isn't really ever used on the…