-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving an animation at 4 frames per second on mac creates green animation #1118
Comments
We tried this on Ubuntu and it worked perfectly fine, so there's probably something askew in my computer's setup. @doutriaux1, here's the FFMPEG log:
|
@chaosphere2112 can you point me to a script so I can use exact same data on my mac and ubunutu and see if i can reproduce this. Also did you try to preserve the png (option in x.close()) and see what they look like? You could send me these pngs and we can try to run ffmpeg on them on various system |
```
import vcs, cdms2, sys
x = vcs.init()
clt_file = cdms2.open(sys.prefix + "/sample_data/clt.nc")
clt = clt_file["clt"]
x.plot(clt, bg=1)
x.animate.create()
x.animate.save("green.mp4", rate=4)
x.close()
```
This does it for me.
What’s the option to preserve the pngs? I watched as they were created, and they all looked fine. I can’t seem to see anything that would preserve them.
|
|
```
Traceback (most recent call last):
File "/Users/fries2/Desktop/green.py", line 9, in <module>
x.close(preserve_pngs = True)
File "/Users/fries2/uvcdat/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vcs/Canvas.py", line 3864, in close
a = self.backend.close(*args,**kargs)
TypeError: close() got an unexpected keyword argument 'preserve_pngs'
```
|
Interesting... ok will fix that. I worked at one point... |
sorry it is:
|
OK, I’ve got a directory of PNGs… I tried printing out the command from the ffmpeg function, and it looks like this:
ffmpeg -y -r 4 -i /Users/fries2/.uvcdat/98ffd71bb38c8c339cc7eaa4b6eaf03f621ebcdb/anim_%d.png -r 4 -b:v 1024k green.mp4
Which doesn’t work– complains about anim_%d not being a file
|
I've got most of this sorted out in a branch, but it's not quite working yet. Will finish after Chico trip. |
When I save an animation of CLT at 4 FPS on my mac, it outputs a solid green video. I've tried this both from my UI stuff as well as from scripts.
@doutriaux1
The text was updated successfully, but these errors were encountered: