Skip to content

Conversation

@PaulWessel
Copy link
Member

Thie enhancement allows users to add a narration (or any sound) track to their animation. Via +e the length of the audio can be stretched to exactly fit the animation length.

@Esteban82, this PR compiles but I have not tested any of it. If you have time then please do. The key coding is in movie.c starting around line 2620.

Thie enhancement allows users to add a narration (or any sound) track to their animation.  Via +e the length of teh audio can be stratched to exactly fit the anomation length.
@PaulWessel PaulWessel added documentation Improve documentation new core module feature PR that implements a new core module feature labels May 14, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone May 14, 2023
@PaulWessel PaulWessel requested a review from Esteban82 May 14, 2023 10:48
@PaulWessel PaulWessel self-assigned this May 14, 2023
@Esteban82
Copy link
Member

Esteban82 commented May 14, 2023

Ok, great @PaulWessel. I will test it. Probably tonight or tomorrow.

Will we need to make a test for gmt/test/movie also?

@PaulWessel
Copy link
Member Author

Hard to test movies. Maybe eventually we only create master frame pdf and compare with original

Also add a few check for -A, e.g., file must exist.
@anbj
Copy link
Contributor

anbj commented May 15, 2023

I tried adding an mp3-file to an mp4 movie. This resulted in the movie containing only the audio, and not any video. Maybe @Esteban82 will be luckier.

(Sorry - couldn't wait testing)

@PaulWessel
Copy link
Member Author

I just updated movie.c and also the Indiana Jones track with audio and it worked brilliantly.

@Esteban82
Copy link
Member

I inverse the ratio formula. I test it with the Indiana Jones script. When I reduce length of movie (animation_duration ), the audio was strecht. Now works well with my commit.

@PaulWessel PaulWessel merged commit 3aab231 into master May 16, 2023
@PaulWessel PaulWessel deleted the movie-audio branch May 16, 2023 20:09
@PaulWessel
Copy link
Member Author

Thanks, good catch.

@maxrjones maxrjones added the add-changelog Add PR to the changelog label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog documentation Improve documentation new core module feature PR that implements a new core module feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants