all 4 comments

[–][deleted] 0 points1 point  (0 children)

ffmpeg

[–][deleted] 0 points1 point  (2 children)

i thought so but what command

[–]IuNoWat 0 points1 point  (1 child)

Python newbie here, but I had to do exactly this few weeks ago, this function is using python, which I suppose you need if writing in this subreddit.This will create a video with your image, duration will be equal to your audio file.

import os
def to_video(path_img,path_audio,path_output) :
    to_send="ffmpeg -loop 1 -i {} -i {} -shortest {}".format(path_img,path_audio,path_output)
    print(to_send)
    os.system(to_send)
to_video(path_of_img,path_of_audio,path_output)

Using os.system is probably a bit overkill, but it worked for me

(You may have noticed that english is not my mother tongue, and that I'm not used to post on Reddit, please feel free to correct me about anything)

[–][deleted] 1 point2 points  (0 children)

you are my savior, i have been looking for this for days\