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

Make 'build against installed ffmpeg' the default build strategy #27

Closed
wants to merge 1 commit into from

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Jun 14, 2024

This PR changes the "default" build strategy of torchcodec:

  • before: by default torchcodec is built against all of our FFmpeg versions available on S3. That's slow
  • after: by default torchcodec is built against the installed version of FFmpeg. That's fast and that's what most developers will want during development.

We are removing the BUILD_AGAINST_INSTALLED_FFMPEG env variable and introducing instead BUILD_AGAINST_ALL_FFMPEG_FROM_S3.

I think there's a pretty low risk that binaries get built without settting BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1. We'll add a battery of sanity checks as we build the distribution packages to make sure that never happens.

This is a follow-up to this review comment: https://www.internalfb.com/diff/D58527965?dst_version_fbid=262903956885891&transaction_fbid=981479793448363

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 14, 2024
@NicolasHug NicolasHug marked this pull request as ready for review June 14, 2024 12:30
@facebook-github-bot
Copy link
Contributor

@NicolasHug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
This PR changes the "default" build strategy of torchcodec externally:

- before: by default torchcodec is built against all of our FFmpeg versions available on S3. That's slow
- after: by default torchcodec is built against the installed version of FFmpeg. That's fast and that's what most developers will want during development.

We are removing the `BUILD_AGAINST_INSTALLED_FFMPEG` env variable and introducing instead `BUILD_AGAINST_ALL_FFMPEG_FROM_S3`.

I think there's a pretty low risk that binaries get built without settting `BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1`. We'll add a battery of sanity checks as we build the distribution packages to make sure that never happens.

This is a follow-up to this review comment: https://www.internalfb.com/diff/D58527965?dst_version_fbid=262903956885891&transaction_fbid=981479793448363

Pull Request resolved: pytorch/torchcodec#27

Reviewed By: ahmadsharif1

Differential Revision: D58584992

Pulled By: NicolasHug
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58584992

@facebook-github-bot
Copy link
Contributor

@NicolasHug merged this pull request in 94f3151.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants