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 to concatenate many audio crossfades #854

Open
pabloriera opened this issue Sep 11, 2024 · 0 comments
Open

How to concatenate many audio crossfades #854

pabloriera opened this issue Sep 11, 2024 · 0 comments

Comments

@pabloriera
Copy link

pabloriera commented Sep 11, 2024

Using the filter complex string for concatenating some inputs with crossfading

[0][1]acrossfade=d=0.1:c1=qsin:c2=qsin[out1];
[out1][2]acrossfade=d=0.1:c1=qsin:c2=qsin[out2];
[out2][3]acrossfade=d=0.1:c1=qsin:c2=qsin[out3];
[out3][4]acrossfade=d=0.1:c1=qsin:c2=qsin[out4]

I tried this, but couldn't workit out, it gives the error No such filter: '[input(filename'

stream = ffmpeg.input(input1)
stream1 = ffmpeg.input(input1)
for i in range(n):
    stream = stream.filter([stream, stream1], 'acrossfade', d=duration, c1='qsin',c2='qsin', o=True)
stream.output(output).run(overwrite_output=True)
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