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

  • Home
  • SEARCH
  • 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 9250467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:27:06+00:00 2026-06-18T10:27:06+00:00

I’m trying to achieve something which I earlier thought should be a simple task.

  • 0

I’m trying to achieve something which I earlier thought should be a simple task.
Is there a ffmpeg command that can do the following:

convert an audio.wav file to a video,
Add some 100 pics (img%d.png) to the video so they “automatically” stretch to fill the entire length of the video.

I don’t want to set the frame rate manually because it’s either making the audio go ahead or lack behind.

I also don’t want the following to happen, which happenned when I used “loop_input”:

A short video of images got created, which played fast and then repeated itself for the entire duration of the audio.

Please let me know the command.

I’ve currently tried the following, but these are not giving me the desired results:

This one makes, but video goes fast and audio is not full:

ffmpeg -i img%d.png -i audio.wav -acodec copy output.mpg

This one makes short video which repeats for full audio duration:

ffmpeg -loop_input -shortest -i img%d.png -i audio.wav -acodec copy output.mpg

This one works nearly, but “-r 4” makes video go slow and audio goes ahead. If I use “-r 5” then audio goes slow, and video goes ahead:

ffmpeg -r 4 -i img%d.png -i audio.wav -acodec copy -r 30 output.mpg
  • 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-06-18T10:27:07+00:00Added an answer on June 18, 2026 at 10:27 am

    measure the time of the audio track and then use -t $audio_duration.

    this arg, along with “-loop 1” will stop the mp4 at a time that matches the audio.

    you might also try 2 pass technique , including -vcodec libx264 as it works well producing mp4.

    and think about the following adjusted for your inputs and record rates:

        -b:v 200k -bt 50k
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.

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.