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

commas in filterchain are always escaped by a backslash #2172

Open
blrbrb opened this issue May 9, 2024 · 0 comments
Open

commas in filterchain are always escaped by a backslash #2172

blrbrb opened this issue May 9, 2024 · 0 comments
Labels
bug Issues that report (apparent) bugs.

Comments

@blrbrb
Copy link

blrbrb commented May 9, 2024

Expected Behavior

Filters that accept expressions or built in ffmpeg constants as options will format correctly with commas.

Actual Behavior

when attempting to apply an option that requires commas to delineate values in an expression (i.e r=X/W*(X,Y) ) an inescapable backslash is inserted into the middle of the string. Breaking the filter chain because it is unable to parse the option properly.

Steps to Reproduce the Problem

Install the latest version of moviepy, and run a filter that accepts expressions for option values:

stream =ffmpeg.input(args.i)

video = stream.video.filter('geq', 'X/W*(X//,Y)', '(1-X/W)*(X,Y)','(H-Y)/H*(X,Y)').filter('hue', '2*PI*t','sin(2*PI*t)+2')

audio = stream.audio.filter("anull")

out = ffmpeg.output(audio, video,f"{args.i}-rainbow{file_extension}" )

ffmpeg.run(out)

The error message:

 [Parsed_geq_1 @ 0x5d34734413c0] [Eval @ 0x7fff3e9b9180] Undefined constant or missing '(' in '/,Y)'

Specifications

  • Python Version:3.12.2
  • MoviePy Version:1.0.3
  • Platform: Ubuntu 24.04 LTS
@blrbrb blrbrb added the bug Issues that report (apparent) bugs. label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs.
Projects
None yet
Development

No branches or pull requests

1 participant