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

PR: Check for FFmpeg header files before adding the video extension #3113

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

andfoy
Copy link
Contributor

@andfoy andfoy commented Dec 3, 2020

Fixes #3101

This error is caused when FFmpeg is installed without its development headers, which is common in most Linux distributions. e.g.,
apt install ffmpeg would install libavcodec, libavformat, libavutil, ... as opposed to libavcodec-dev, libavformat-dev, libavutil-dev, .... The current check looks for ffmpeg, however this is not sufficient, due to the example posed above.

This PR also introduces an additional check on Debian-based installations, where sometimes header files might be included on /usr/lib/<multiarch-tag> and not in /usr/lib/. See: https://wiki.debian.org/Multiarch/Tuples

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fmassa fmassa merged commit 2d80e99 into pytorch:master Dec 4, 2020
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
facebook-github-bot pushed a commit that referenced this pull request Dec 8, 2020
Reviewed By: datumbox

Differential Revision: D25396711

fbshipit-source-id: 0430fb1c431634d3bbaef45adf1d9ebfbcc4515e
@andfoy andfoy deleted the fix_ffmpeg_location_debian branch January 13, 2021 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional video libraries needed to build from source
3 participants