Skip to content

Godot MC Slides (Video and Audio Sync) #156

Answered by avanwinkle
bernarma asked this question in Q&A
Discussion options

You must be logged in to vote

My gut reaction is to make a custom slide with a video+audio playback method that accepts a video name and an audio file name. You could then "play" this slide to add it to the stack and use the slide's active event to trigger an MPF event that posts action: method along with kwargs for the video name and audio file.

Then the slide's custom method would load the video file and audio file and play both, which would be as simultaneous as you could get.

In your mode code:

slide_player:
  mode_foo_started: avsync_slide
  slide_avsync_slide_active:
    avsync_slide:
      action: method
      method: play_av
      tokens:
          video: video1.mp4
          audio: audio1_en.wav

In your cust…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bernarma
Comment options

Answer selected by bernarma
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants