Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Adding Poster Image to an Audio File using FFmpeg Command

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.33k
    Comment on it

    Hello Readers,


    Usually, we need to add a poster image with audio like with mp3 in your project. You can use FFmpeg application command for the same task to add audio (e.g. audio.mp3) to one "poster" image.


    You will need -shortest codac to express that stop following the audio tracks flow is finished and streaming is finished.


    You must copy the image in the bin folder. Then execute this command.


    ffmpeg -loop 1 -i inputimage.jpg -i inputaudio.mp3 -c:v libx264 -c:a strict experimental -b:a 192k -shortest outputfile.mp4
    

    After using above command you will get a mp3 audio file which have an image and shows up when it run or play.


    Thanks-


 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: