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

Add getter and setter for global FFmpeg options #675

Closed
wants to merge 1 commit into from

Conversation

iljalukin
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT

What's in this PR?

This PR adds functions to get and set global FFmpeg options.

Why?

These functions are required to set options before the input file argument, for example -hwaccel vaapi for GPU-based encoding.

Example Usage

$video->setOptions(array(
       '-hwaccel', 'vaapi',
       '-hwaccel_output_format' , 'vaapi',
       '-hwaccel_device' , '/dev/dri/renderD128'
));

To Do

  • Create tests

@iljalukin
Copy link
Contributor Author

PR 627 covers the same issue, closing this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants