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 ffmpeg cannot start because of loading shared lib #16846

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hieulq
Copy link

@hieulq hieulq commented Feb 27, 2025

Maybe after PR #16712 , ffmpeg build with JP6 seem broken with error /usr/lib/ffmpeg/jetson/bin/ffmpeg: error while loading shared libraries: libavdevice.so.60: cannot open shared object file: No such file or directory

Proposed change

Adding LD Path to frigate container while starting ffmpeg in tensorrt container

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code
  • Documentation Update

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • The code has been formatted using Ruff (ruff format frigate)

Maybe after PR blakeblackshear#16712 , ffmpeg build with JP6 seem broken with error `/usr/lib/ffmpeg/jetson/bin/ffmpeg: error while loading shared libraries: libavdevice.so.60: cannot open shared object file: No such file or directory`

This PR fixes the issue
Copy link

netlify bot commented Feb 27, 2025

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 8d9cb8b
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/67c019b2bc283b0008bb05d0
😎 Deploy Preview https://deploy-preview-16846--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hieulq
Copy link
Author

hieulq commented Feb 27, 2025

sorry, there are some error when merging with #16835

=> ERROR [tensorrt tensorrt-base 3/6] COPY --from=trt-deps /usr/local/cuda-12.3/targets/x86_64-linux/lib/libcurand.so.* /usr/local/cuda/                                                      3.8s
------
 > [tensorrt tensorrt-base 3/6] COPY --from=trt-deps /usr/local/cuda-12.3/targets/x86_64-linux/lib/libcurand.so.* /usr/local/cuda/:
------
ERROR: target tensorrt: failed to solve: lstat /usr/local/cuda-12.3/targets/x86_64-linux/lib: no such file or directory
make: *** [docker/tensorrt/trt.mk:20: local-trt-jp6] Error 1

I will recheck that.

@hawkeye217
Copy link
Collaborator

@LanderN

Related discussion: #16845

@LanderN
Copy link
Contributor

LanderN commented Feb 27, 2025

Previously (before #16712), jetson ffmpeg was installed to /usr/local. Now that the installation prefix moved to /usr/lib/ffmpeg/jetson, maybe the better fix would be to add an entry to /etc/ld.so.conf? (Probably by adding a new file in /etc/ld.so.conf.d/)

@NickM-27
Copy link
Collaborator

I believe that would be preferable

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.

4 participants