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

Fix silent FFMPEG failure #27

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

RobRoyce
Copy link
Contributor

This pull request addresses issue #26 by ensuring an error message is displayed when the trimesh, pyrender, and/or JITRenderer modules fail to import due to a missing ffmpeg library, rather than allowing the process to fail silently.

Note that this use of try/except is still problematic and should probably be addressed in future updates. But at least this temporary fix will keep people from spending a lot of time trying to figure out the issue.

@VincentCCandela
Copy link

VincentCCandela commented Dec 29, 2024

SOLUTION:

  1. install ffmpeg on your system
  2. put this in your main runtime to make sure that your code points correctly to your ffmpeg binary

import os
os.environ["IMAGEIO_FFMPEG_EXE"] = "/usr/bin/ffmpeg" (replace with the correct ffmpeg path)

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