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

invalid argument when trying to make a transparent mov #115

Open
jurassicjordan opened this issue Dec 17, 2023 · 4 comments
Open

invalid argument when trying to make a transparent mov #115

jurassicjordan opened this issue Dec 17, 2023 · 4 comments

Comments

@jurassicjordan
Copy link

[Parsed_alphamerge_1 @ 0x559b72360280] This filter does not take any options, but options were provided: shortest=1.
[AVFilterGraph @ 0x559b722b2100] Error initializing filter 'alphamerge' with args 'shortest=1'
Error initializing complex filters.
Invalid argument
Process finished

@LeonadroW
Copy link

I also have this problem

@nadermx
Copy link
Owner

nadermx commented Mar 3, 2024

What version of ffmpeg are you all using?

@LeonadroW
Copy link

I use [ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers], well , I found the cmd code in utilities.py saying:{ 'ffmpeg', '-y', '-i', file_path, '-i', temp_file, '-filter_complex',
'[1][0]scale2ref[mask][main];[main][mask]alphamerge=shortest=1,fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse',
'-shortest', output
]}}
and my ffmpeg can't take arguments behind alphamerge, so change it into:
{
cmd = [
'ffmpeg', '-y', '-i', file_path, '-i', temp_file, '-filter_complex',
'[1][0]scale2ref[mask][main];[main][mask]alphamerge,fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse',
'-shortest', output]
}
and in this way it works

@nadermx
Copy link
Owner

nadermx commented Mar 4, 2024

For it to work with backgroundremover it has to be ffmpeg 4.4+, I have it listed on the requriements. You're method is interesting if it works with ffmpeg 4.2, maybe should do that if it works for 4.4+ too.. hrm

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

3 participants