Page 1 of 1

Adding A Static Image to Audio

Posted: 26 Dec 2012 13:44
by ForbiddenSoul
Hi guys o/
Need a little help please.

I have a static image I would like to be displayed while and audio recording is playing in the background. I have set up VLC to convert the PNG Image into MP4/AVI format and the WAV audio into ACC, the only trouble is when I try to mux the 2 together VLC only outputs the first 10 seconds.

How do I get VLC to output the full 10 minutes, or an easier way to do it?
Thanks!

Re: Adding A Static Image to Audio

Posted: 26 Dec 2012 15:33
by mederi
I do not know whether there is "an easier way to do it" but here is an appropriate setting at least:
VLC menu: Tools > Preferences > ( Show settings = All ) > Input/Codecs \ Demuxers \ Image: Duration is seconds [10,00] < "Duration in seconds before simulating an end of file. A negative value means an unlimited play time."
Do not forget to save changes and reastart VLC!

Re: Adding A Static Image to Audio

Posted: 26 Dec 2012 15:39
by ForbiddenSoul
Solved it guys, had to add :image-duration=517 :image-fps=29.97 to match the length and fps of my output video. Note --image-duration=517 --image-fps=29.97 doesn't work.

Re: Adding A Static Image to Audio

Posted: 26 Dec 2012 15:41
by ForbiddenSoul
Didn't see your reply Mederi, that works too. thank you very much!

Re: Adding A Static Image to Audio

Posted: 28 Jun 2021 11:44
by mymicrosoftmylife
Solved it guys, had to add :image-duration=517 :image-fps=29.97 to match the length and fps of my output video. Note --image-duration=517 --image-fps=29.97 doesn't work.
Can you share me the full command you have used with the :image-duration and :image-fps options? I have the same problem. I want to convert a mp3 file to a video in mp4 use a jpeg image as video background but the video stop after 10s. The muxer setting works but I don't want to change it each time I reinstall VLC. Thank you.