-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine one image + one audio file to make one video #274
Comments
@TVart I didn't replicate your specific tuning options, but one general form would be import ffmpeg
input_still = ffmpeg.input("image.jpg")
input_audio = ffmpeg.input("audio.wav")
(
ffmpeg
.concat(input_still, input_audio, v=1, a=1)
.output("output.mp4")
.run(overwrite_output=True)
) |
Is it possible to use the same syntax with two images instead of one? |
If you don't add " loop=1" to it, the image will only in the first frame. good luck. |
Thank you for the trick, now I hav the following situation So my video is the result of the concatenation of theses 3 sequences in this order Thanks a lot for your support |
Hi,
I'm looking for creating a video combining 1 image and 1 audio with ffmpeg-python.
Here the command i use to run for this purpose
ffmpeg -loop 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4
So couldn't find way to translate it in your framework
Thanks for your help.
Rgds.
The text was updated successfully, but these errors were encountered: