[FFmpeg-user] Fwd: xfade casing issue while applying on multiple Video

Rohit Gupta rohit.gupta at sportzinteractive.net
Tue Oct 18 11:32:10 EEST 2022


---------- Forwarded message ---------
From: Rohit Gupta <rohit.gupta at sportzinteractive.net>
Date: Tue, Oct 18, 2022 at 12:56 PM
Subject: xfade casing issue while applying on multiple Video
To: <ffmpeg-user-owner at ffmpeg.org>


Hi.

I am facing issue while applying xfade on  multiple videos using complex
filter graphs,  fade is always getting missed at the last clip of the
sequence, is this a limitation of ffmpeg,
Can some please help me with this. Following is the command executed.

ffmpeg -i
/opt/live-streams/content/client_9/sp_1/m50011684/eng/s_51022530.mp4
-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_2.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_3.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_4.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_5.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_6.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_7.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_8.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_9.mp4

-i
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0_temp_10.mp4

-filter_complex
"[0:v][1:v]xfade=transition=fade:duration=0.5:offset="129.612"[v01];
[v01][2:v]xfade=transition=fade:duration=0.5:offset="254.74"[v12];
[v12][3:v]xfade=transition=fade:duration=0.5:offset="395.71"[v23];
[v23][4:v]xfade=transition=fade:duration=0.5:offset="536.27"[v34];
[v34][5:v]xfade=transition=fade:duration=0.5:offset="678.94"[v45];
[v45][6:v]xfade=transition=fade:duration=0.5:offset="831.78"[v56];
[v56][7:v]xfade=transition=fade:duration=0.5:offset="957.9"[v67];
[v67][8:v]xfade=transition=fade:duration=0.5:offset="1101.08"[v78];
[v78][9:v]xfade=transition=fade:duration=0.8:offset="1232.28"[v89];
[0:a][1:a]acrossfade=d=0.5[a01];
[a01][2:a]acrossfade=d=0.5[a12];
[a12][3:a]acrossfade=d=0.5[a23];
[a23][4:a]acrossfade=d=0.5[a34];
[a34][5:a]acrossfade=d=0.5[a45];
[a45][6:a]acrossfade=d=0.5[a56];
[a56][7:a]acrossfade=d=0.5[a67];
[a67][8:a]acrossfade=d=0.5[a78];
[a78][9:a]acrossfade=d=0.8[a89]" -map "[v89]" -map "[a89]" -b:v 7M
-shortest -preset ultrafast -threads 8 -cpu-used 3  -c:v h264 -c:a aac   -y
/opt/live-streams/content/client_9/sp_1/m50011827/eng/m50011827_c1_ht115_i0.mp4


Thanks & Regards,
Rohit Gupta


More information about the ffmpeg-user mailing list