Generate video remains blocked

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Generate video remains blocked

local host
Hello,

I want to concatenate 3 videos with a fade between the last two videos.
However, the generation remains stuck to X frames.

Here is the command used:
ffmpeg -i "firstClip.mp4" -i "secondClip.mp4" -i "thirdClip.mp4" -y
-filter_complex
"[1:v]trim=start=0:end=3,setpts=PTS-STARTPTS[1_clip_1];
[1:v]trim=start=3:end=6,setpts=PTS-STARTPTS[fadeoutsrc_1];
[fadeoutsrc_1]format=pix_fmts=yuva420p,fade=t=out:st=0:d=1:alpha=1[fadeout_1];
[fadeout_1]fifo[fadeoutfifo_1];[2:v]trim=start=3,setpts=PTS-STARTPTS[2_clip_2];
[2:v]trim=start=0:end=3,setpts=PTS-STARTPTS[fadeinsrc_2];
[fadeinsrc_2]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1[fadein_2];
[fadein_2]fifo[fadeinfifo_2];
[fadeoutfifo_1][fadeinfifo_2]overlay[crossfade_2];
[0:v][1_clip_1][crossfade_2][2_clip_2]concat=n=4[output];
[1:a][2:a]
acrossfade=d=1[audioTmp];[0:a][audioTmp]concat=n=2:v=0:a=1[audio]"
-vcodec h264 -map [output] -map [audio] output.mp4

Thanks for your help.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Fwd: Generate video remains blocked

local host
Hello,

I want to concatenate 3 videos with a fade between the last two videos.
However, the generation remains stuck to X frames.

Here is the command used:
ffmpeg -i "firstClip.mp4" -i "secondClip.mp4" -i "thirdClip.mp4" -y
-filter_complex
"[1:v]trim=start=0:end=3,setpts=PTS-STARTPTS[1_clip_1];
[1:v]trim=start=3:end=6,setpts=PTS-STARTPTS[fadeoutsrc_1];
[fadeoutsrc_1]format=pix_fmts=yuva420p,fade=t=out:st=0:d=1:alpha=1[fadeout_1];
[fadeout_1]fifo[fadeoutfifo_1];[2:v]trim=start=3,setpts=PTS-STARTPTS[2_clip_2];
[2:v]trim=start=0:end=3,setpts=PTS-STARTPTS[fadeinsrc_2];
[fadeinsrc_2]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1[fadein_2];
[fadein_2]fifo[fadeinfifo_2];
[fadeoutfifo_1][fadeinfifo_2]overlay[crossfade_2];
[0:v][1_clip_1][crossfade_2][2_clip_2]concat=n=4[output];
[1:a][2:a]
acrossfade=d=1[audioTmp];[0:a][audioTmp]concat=n=2:v=0:a=1[audio]"
-vcodec h264 -map [output] -map [audio] output.mp4

Thanks for your help.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Generate video remains blocked

Moritz Barsnick
In reply to this post by local host
On Sun, Aug 05, 2018 at 00:52:34 +0200, local host wrote:
> I want to concatenate 3 videos with a fade between the last two videos.
> However, the generation remains stuck to X frames.

Please also show the complete, uncut console output of your command.

> [...] [1:v]trim=start=3:end=6,setpts=PTS-STARTPTS[fadeoutsrc_1];[fadeoutsrc_1]format=pix_fmts=yuva420p,fade=t=out:st=0:d=1:alpha=1[fadeout_1];[fadeout_1]fifo[fadeoutfifo_1]; [...]

It shouldn't matter functionally, but for readability, you can combine
filter chains like these into one. In other words:
> [...] filtera[out];[out]filterb [...]
can be combined to
> [...] filtera,filterb [...]

Besides that, your filter combo is too complex for me to wrap my head
around it. ;-)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".