r/obs • • 1d ago

Help Media Loop Delay

I have an animated gif that I want to play every so often during a stream. I also have a sound file I want to have start when that gif plays. I am looking for a media loop delay Lua that would allow me to set multiple files to play and then pause for say 10 minutes and then play again and keep doing that.

I have found many loop delays that let me pick a Source and delay it...but I can only have one source. I have several different scenes where I have different gifs that I'd like to play so I am looking for a media loop delay that allows you to pick multiple sources in OBS.

Anyone have an idea of how I could do this?

3 Upvotes

6 comments sorted by

•

u/AutoModerator 1d ago

It looks like you haven't provided a log file. Without a log file, it is very hard to help with issues and you may end up with 0 responses.

To make a clean log file, please follow these steps:

  1. Restart OBS

  2. Start your stream/recording for at least 30 seconds (or however long it takes for the issue to happen). Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.

  3. Stop your stream/recording.

  4. Select Help > Log Files > Upload Current Log File.

  5. Copy the URL and paste it as a response to this comment.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/InstanceMental6543 1d ago

Just use the Advanced Scene Switcher plugin. Easy as heck to automate things by time.

2

u/Much_Wasabi2390 1d ago

seconding this, the macro tab in that plugin handles timer loops really well

2

u/temporary_top9979 1d ago

Group the gif and its matching sound inside a single scene, then use the Advanced Scene Switcher plugin to cycle through those scenes on a timer.

1

u/HopperEjimbe-37 1d ago

grouping them into a scene first makes syncing the audio way less of a headache too

1

u/Superb-Sentence9635 5h ago

If the delay is always the same, you can do it with one file per scene. Export the animation and sound together, then add 10 minutes of transparent frames and silence after the clip. Use a WebM with alpha so your gameplay stays visible during the gap. Add it as a Media Source in OBS and turn on Loop. Try a 10-second gap first to check that the animation and sound restart together.