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)