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

Support for filter_script:v #833

Open
pmdyy opened this issue Apr 12, 2024 · 0 comments
Open

Support for filter_script:v #833

pmdyy opened this issue Apr 12, 2024 · 0 comments

Comments

@pmdyy
Copy link

pmdyy commented Apr 12, 2024

I am trying to integrate filter_script:v from the ffmpeg cli tool, useful for long, complex filter graphs where it gets limited when using in command line directly, and throws an too many args error. This is fixed by running from the file script instead.

Here is the ffmpeg command I am trying to replicate using ffmpeg-python:

ffmpeg -i video.mp4 -filter_script:v ../crop_filter.txt -c:v h264_nvenc -preset slow -crf 18 output.mp4

I could not find a way to use filter_script:v directly in ffmpeg-python. The current API allows for direct filter strings via .filter(), but not for external filter scripts.

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