Skip to content
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

How to attach an image either at the beginning or at the end of a video? #8

Closed
NanyangTaiji opened this issue Jan 28, 2020 · 1 comment

Comments

@NanyangTaiji
Copy link

No description provided.

@AnJoiner
Copy link
Owner

You can first convert the picture into a video, and then splice the two videos, but you must pay attention to the encoding format of the two videos.

ffmpeg -loop 1 -i img.jpg -c:v libx264 -t 30 -pix_fmt yuv420p 1.mp4
ffmpeg -i contact:1.mp4|2.mp4 -c copy out.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants