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 one can concat images and videos #4

Open
bast opened this issue Mar 6, 2022 · 0 comments
Open

How one can concat images and videos #4

bast opened this issue Mar 6, 2022 · 0 comments

Comments

@bast
Copy link
Member

bast commented Mar 6, 2022

This is how I solved it in some project:

for video in video1 video2; do
    ffmpeg -framerate 30 -loop 1 -t 5 -i ${video}-in.jpg -i ${video}.mkv -loop 1 -t 5 -i ${video}-out.jpg -f lavfi -t 5 -i anullsrc -filter_complex "[0][3][1:v]
[1:a][2][3]concat=n=3:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" ${video}-with-slides.mkv
done

One can do a lot more like fade-in, fade-out. But I had little time and I was happy with the result.

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

1 participant