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

Create movie from image series #81

Merged
merged 5 commits into from
Mar 3, 2024
Merged

Create movie from image series #81

merged 5 commits into from
Mar 3, 2024

Conversation

boriskaus
Copy link
Member

@boriskaus boriskaus commented Mar 3, 2024

Once you have your data in Paraview & are happy with your visualisation, you can either orbit the camera and fly over your model (using the Animation View in the View menu of paraview), or you can animate the data versus time.
If you want to save this as animation and use it in presentations, the typical workflow consists in saving it as a series of (*.png) images in a separate directory and using an external software (e.g. ImageMagick) to create a movie from that.

This PR does away with the external software by adding the function movie_from_images which takes a series of images and turns it into a *.mp4 or *.mov movie.

julia> movie_from_images(dir="test_anim/")
ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers

Internally we use FFMPEG.jl along with precompiled binaries for this.

@boriskaus boriskaus requested review from aelligp and NicolasRiel March 3, 2024 16:20
@boriskaus boriskaus merged commit 4c2f1b3 into main Mar 3, 2024
24 checks passed
@boriskaus boriskaus deleted the bk-movie-from-pics branch March 3, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants