SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    0 Post(s)
    0 Thread(s)

    add audio in video file using ffmpeg

    I am using ffmpeg, I want to add audio in my video file but I have some different scenario, I have 5 images and 3 min audio file but I want that every image comes for 10 sec in the video and when last image comes for 10 seconds after that video will end. So it mean the whole video time will be 50 seconds. I am trying this but failed to do this. It stuck on the last image till the audio ends and the duration is 3 min this wrong. Please see my code I am new to ffmpeg so this the basic code of audio file I am using to add in video.

    ffmpeg -i output.mp4 -i audio.mp3 -c copy -map 0:0 -map 1:0 final.mp4

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Northeastern USA
    56 Post(s)
    1 Thread(s)
    Unfortunately, this is a web development forum and not a forum that specializes in video encoding. As such, you will likely have to find a community that specializes in video encoding or ffmpeg.

    Here are some possibilities:
    Email lists and chat resources:
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts