Skip to content
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

Cannot save a multiscene animation - imagio:ffmpeg warning #679

Closed
ColinDuff opened this issue Mar 26, 2019 · 6 comments
Closed

Cannot save a multiscene animation - imagio:ffmpeg warning #679

ColinDuff opened this issue Mar 26, 2019 · 6 comments

Comments

@ColinDuff
Copy link
Contributor

Testing the pytrolls_example exercise7 notebook created for eumetsat training session i was unable to save then MSG animation created during the example.
Initailly i had to set the client option to false in save_animation as there was an error generated stating that the client object didnt have a gather attribute. After this change a save was attempted but not completed


[DEBUG: 2019-03-26 15:58:59 : native_msg] Calibration time 0:00:00.049262

[DEBUG: 2019-03-26 15:58:59 : satpy.writers] Enhancement configuration options: [{'name': 'linear_stretch', 'method': <function stretch at 0x7f9258516ea0>, 'kwargs': {'stretch': 'crude', 'min_stretch': 0.0, 'max_stretch': 100.0}}, {'name': 'gamma', 'method': <function gamma at 0x7f9258516c80>, 'kwargs': {'gamma': 1.5}}]

[DEBUG: 2019-03-26 15:58:59 : trollimage.xrimage] Applying stretch crude with parameters {'min_stretch': 0.0, 'max_stretch': 100.0}

[DEBUG: 2019-03-26 15:58:59 : trollimage.xrimage] Applying gamma 1.5

[WARNING: 2019-03-26 15:59:04 : imageio_ffmpeg] We had to kill ffmpeg to stop it. ```


**To Reproduce**
Run exercise 7 notebook



Expected behavior
The animation shuold have been saved as an mp4 file

Actual results
File not saved

imagio version
imageio 2.5.0 py36_0 conda-forge
imageio-ffmpeg 0.2.0 py_0 conda-forge

Additional context
imageio was downgraded to 2.4.1 and the notebook worked as expected

@djhoese
Copy link
Member

djhoese commented Mar 26, 2019

How big was the area of the data being saved (rows x cols)?

@ColinDuff
Copy link
Contributor Author

ColinDuff commented Mar 26, 2019

a full MSG image 3712 by 3712, 6 hours worth of data ie 24files at fps=2

@mraspaud
Copy link
Member

Did the animation PR solve this ?

@ColinDuff
Copy link
Contributor Author

well this and installing imagio 2.4.1 - works fine now

@djhoese
Copy link
Member

djhoese commented Mar 27, 2019

This seems like a bug in ffmpeg. I'm guessing it is either not working with the newest versions of ffmpeg or more likely it is not communicating in the same way. I'm not sure there is an option for it but imageio probably needs to wait longer (be more patient) for ffmpeg to process our large frames. Either way it'll take a lot of testing.

@djhoese
Copy link
Member

djhoese commented Apr 25, 2019

This should be fixed in imageio-ffmpeg versions 0.3+. I made a PR here that adds a ffmpeg_timeout flag and the default was changed from 2.5 seconds to 20 seconds. I'm closing this as it should be fixed now with the new version of imageio-ffmpeg.

@djhoese djhoese closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants