Skip to content

Conversation

@polinaeterna
Copy link
Contributor

@polinaeterna polinaeterna commented Oct 26, 2022

Adds instructions on how to install ffmpeg=4 on Linux (relevant for Colab users).

Looks pretty ugly because I didn't find a way to check ffmpeg version from python (without subprocess.call(); ctypes.util.find_library doesn't work`), so the warning is raised on each decoding. Any suggestions on how to make it look nice are welcome!

This is how it looks on Colab:
image

@polinaeterna polinaeterna requested a review from lhoestq October 26, 2022 14:21
@polinaeterna polinaeterna self-assigned this Oct 26, 2022
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 26, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

thanks !

@lhoestq
Copy link
Member

lhoestq commented Oct 26, 2022

To make it warn only once, feel free to use a global counter in python - and if the warning has already been done, you don't do it again

Co-authored-by: Quentin Lhoest <[email protected]>
Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

Added the same formatting for the error message :) thanks !

Oh and regarding the warning counter, you can do it in another PR maybe ?

Co-authored-by: Quentin Lhoest <[email protected]>
@polinaeterna
Copy link
Contributor Author

Added the same formatting for the error message :)

nice!! thank you!

Oh and regarding the warning counter, you can do it in another PR maybe ?

Yes, more warnings is better then no warnings.... I'll merge when the CI passes

@polinaeterna polinaeterna merged commit 669121c into huggingface:main Oct 27, 2022
@polinaeterna polinaeterna deleted the add-ffmpeg4-installation-instructions branch October 27, 2022 08:59
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.

3 participants