GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Let movie -A handle addition of audio track by PaulWessel · Pull Request #7461 · GenericMappingTools/gmt

Conversation

@PaulWessel

@PaulWessel PaulWessel commented May 14, 2023

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@PaulWessel
Let movie -A handle addition of audio track
3f77339
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

Esteban82 commented May 14, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulWessel

PaulWessel commented May 14, 2023

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulWessel
Update documentation for audio
260c0f1
Also add a few check for -A, e.g., file must exist.
@anbj

anbj commented May 15, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulWessel
Update movie.c
fea6982
@PaulWessel

PaulWessel commented May 15, 2023

Copy link
Copy Markdown
Contributor Author

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

Esteban82 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

PaulWessel and others added 4 commits May 15, 2023 12:59
@PaulWessel
Update movie.c
6c3f9b9
@PaulWessel
Merge branch 'master' into movie-audio
3d6e830
@PaulWessel
Merge branch 'master' into movie-audio
64e643e
@Esteban82
Inverse audio_strech function
d8862d0
@Esteban82

Esteban82 commented May 16, 2023

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Esteban82
Esteban82 approved these changes May 16, 2023
View reviewed changes
@PaulWessel
PaulWessel merged commit 3aab231 into master May 16, 2023
@PaulWessel
PaulWessel deleted the movie-audio branch May 16, 2023 20:09
@PaulWessel

PaulWessel commented May 16, 2023

Copy link
Copy Markdown
Contributor Author

Thanks, good catch.

Esteban82 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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

Reviewers

@Esteban82 Esteban82 Esteban82 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@PaulWessel PaulWessel

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

Milestone

6.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@PaulWessel @Esteban82 @anbj @maxrjones
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.