Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6772789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:35:25+00:00 2026-05-26T15:35:25+00:00

With ffmpeg, I see how to add music file as background for a video,

  • 0

With ffmpeg, I see how to add music file as background for a video, but the problem is how to make the audio loop/repeat. Is there a way out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:35:25+00:00Added an answer on May 26, 2026 at 3:35 pm

    ffmpeg has the promising -loop_input flag, but it doesn’t support audio inputs yet.

    I’d recommend sox and the -shortest option for ffmpeg as a solution.

    sox short_audio.mp3 looped_audio.mp3 repeat 1000 # adjust count as necessary
    ffmpeg -i input_video.mp4 -i looped_audio.mp3 -shortest output_video.mp4
    

    The sox command will loop the input, and the ffmpeg command will use it for the audio, but stop when it runs out of video to process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running ffmpeg.exe through a Java code to encode a video file. How
I am working on ffmpeg and trying to add a audio stream on the
I want a ffmpeg command to make a video out of x images with
When I make ffmpeg, I can see following lines CC ffmpeg.o LD ffmpeg_g CP
ffmpeg extension is loaded as it is shown at phpinfo(), my file and script
I have downloaded ffmpeg lib file and complied it for armv7. I added ffmpeg
It appears that ffmpeg now has a segmenter in it, or at least there
I'm trying to upgrade the FFMpeg source used with one of our projects but
I have seen this question pop up a few times but the authors see
ffmpeg always passes the video through directshow? I need to get a streaming video

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.