N
N
neuro4live2021-08-15 22:37:04
linux
neuro4live, 2021-08-15 22:37:04

How to create a video from an image?

Hello! I need to create from one picture a video lasting several minutes, a picture in 1280x720 format (that is, so that a picture of the same resolution is simply displayed on the screen). Then I need to combine this video with another video. I want to do it with ffmpeg. I use the command

ffmpeg -filter_complex aevalsrc=0 -loop 1 -i /path/for/picture.jpg -t 120 /path/for/movie.mp4

The video is created and played in the player. Then if this video is combined with another (which was not generated by ffmpeg), of the same format (1280x720), then only the part of the video that was not generated from the image is played.

I tried to use this command:
ffmpeg -loop 1 -i img.jpg -c:v libx264 -t 30 -pix_fmt yuv420p out.mp4
The result is the same. Please, help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ewgenc, 2021-08-16
@ewgenc

Throw the picture into the video editor and set the right time, throw the second part of the video there and render everything into one file of the desired format. In kdenlive, for example, if you have Linux.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question