Closed mashabelyi closed 6 years ago
Hey @mashabelyi, this was my fault as I had exported the git diff in the wrong format. I just pushed an update and tested that it works for me locally.
Please let me know if this fixes your issue.
Thanks! It works for me now.
Quick question: when I input two 5 second files, it outputs a 5s file with the transition somewhere in the middle. Is there a way to actually concatenate the files? Fade in video 2 and the end of video 1?So, with transition duration=1s, the output file duration would =9s.
Yes, although it's not as simple as it should be at the moment.
This should do exactly what you want for concatenating two, 5-second mp4s with a 1s fade inbetween:
./ffmpeg \
-i 0.mp4 \
-i 1.mp4 \
-filter_complex " \
[0:v]split[v000][v010]; \
[v000]trim=0:4[v001]; \
[v010]trim=4:5[v011t]; \
[v011t]setpts=PTS-STARTPTS[v011]; \
[v011][1:v]gltransition=duration=1:source=./crosswarp.glsl[vt0]; \
[v001][vt0]concat=n=2[outv]" \
-map "[outv]" \
-c:v libx264 -profile:v baseline -preset slow -movflags faststart -pix_fmt yuv420p \
-y out.mp4
See concat.sh for an example of a similar concat with 3 inputs. The filter syntax gets a bit tricky but it's pretty easy to script together with a wrapper for n
inputs.
this is great! Exactly what I wanted. Thanks so much for your help and for this library.
great to hear 👍
iam getting error
error: patch failed: libavfilter/Makefile:367 error: libavfilter/Makefile: patch does not apply error: patch failed: libavfilter/allfilters.c:357 error: libavfilter/allfilters.c: patch does not apply
It's quite likely that something may have changed in upstream ffmpeg master. Looking into it now..
@Aravindraj92 the patch applies correctly against ffmpeg master HEAD, as I just tested it locally.
Please make sure you're using the latest source of ffmpeg.
it not works
iam getting error
error: patch failed: libavfilter/Makefile:367 error: libavfilter/Makefile: patch does not apply error: patch failed: libavfilter/allfilters.c:357 error: libavfilter/allfilters.c: patch does not apply
I had the same problem. How did you fix it
I am getting an error when applying the patch:
Here is the verbose output
The libavfilter/allfilters.c is there, so I am not sure what the problem is here. I am new to patching with git... any advice?