I'd like to build videos with transitions.
Like :
Intro - Clip1 - Transition - Clip2 - Transition - Clip3 - Outro
The transition video is always the same one.
But when I put twice the same video in ffmpeg.concat(), the generated ffmpeg command hangs, it doesn't work.
Hi
I'd like to build videos with transitions. Like : Intro - Clip1 - Transition - Clip2 - Transition - Clip3 - Outro The transition video is always the same one.
But when I put twice the same video in
ffmpeg.concat()
, the generated ffmpeg command hangs, it doesn't work.This code :
Generates this command :
ffmpeg -i /tmp/resized_transition.mp4 -filter_complex [0:v][0:a][0:v][0:a]concat=a=1:n=2:v=1[s0] -map [s0] -threads 4 output/test.mp4 -y
Which hangs as well.
Changing it to this :
ffmpeg -i /tmp/resized_transition.mp4 -i /tmp/resized_transition.mp4 -filter_complex [0:v][0:a][1:v][1:a]concat=a=1:n=2:v=1[s0] -map [s0] -threads 4 output/test.mp4 -y
It works.
How can I do that using ffmpeg-python ?
Thank you !