#7 ffmpeg error

Đã đóng
%! (template.HTML=3 năm trước cách đây)đang mở bởi Ghost · 7 ý kiến

TL;DR I'm trying to get the FFmpeg integration to work, but I'm getting a dependency error.

Right now if I try to run it inside the snap shell I get the following:

# snap run --shell home-assistant-snap

# which ffmpeg
/snap/home-assistant-snap/364/usr/bin/ffmpeg

# ffmpeg -h
ffmpeg: error while loading shared libraries: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory

Just wondering if there's a way to get ffmpeg to run inside the container, or if I can perhaps link it to the ffmpeg executable that's already installed on my system?

Any pointers would be appreciated as always. Thanks!

TL;DR I'm trying to get the [FFmpeg integration](https://www.home-assistant.io/integrations/ffmpeg/) to work, but I'm getting a dependency error. Right now if I try to run it inside the snap shell I get the following: ```sh # snap run --shell home-assistant-snap # which ffmpeg /snap/home-assistant-snap/364/usr/bin/ffmpeg # ffmpeg -h ffmpeg: error while loading shared libraries: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory ``` Just wondering if there's a way to get ffmpeg to run inside the container, or if I can perhaps link it to the ffmpeg executable that's already installed on my system? Any pointers would be appreciated as always. Thanks!
Joachim Marthinsen Giæver đã nhận xét 3 năm trước cách đây
Chủ sở hữu

Hi,

Seems like a missing package, libpulse0. I've pushed an update to the latest/edge, that should be ready in few hours, depending on your architecture. :)

Hi, Seems like a missing package, `libpulse0`. I've pushed an update to the latest/edge, that should be ready in few hours, depending on your architecture. :)
Ghost đã nhận xét 3 năm trước cách đây
Poster

Nice, thanks!

Nice, thanks!
Ghost đã nhận xét 3 năm trước cách đây
Poster

Still seeing the same error (as of 2021.9.6):

ffmpeg: error while loading shared libraries: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory
Still seeing the same error (as of `2021.9.6`): ``` ffmpeg: error while loading shared libraries: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory ```
Joachim Marthinsen Giæver đã nhận xét 3 năm trước cách đây
Chủ sở hữu

Oh, by a mistake I added the content supposed to go into LD_LIBRARY_PATH in the PATH environment variable, when adding the libpulse package.

Oh, by a mistake I added the content supposed to go into LD_LIBRARY_PATH in the PATH environment variable, when adding the libpulse package.
Joachim Marthinsen Giæver đã nhận xét 3 năm trước cách đây
Chủ sở hữu

It seems to be working as expected now. :)

It seems to be working as expected now. :)
Ghost đã nhận xét 3 năm trước cách đây
Poster

Confirmed working! Thanks!

Confirmed working! Thanks!
Joachim Marthinsen Giæver đã nhận xét 2 năm trước cách đây
Chủ sở hữu

Hi,

Back to this. It seems to me that the ffmpeg package is available:

ubuntu@ubuntu:~$ sudo snap run --shell home-assistant-snap
root@ubuntu:/snap/home-assistant-snap/443$ which ffmpeg
/snap/home-assistant-snap/443/usr/bin/ffmpeg
root@ubuntu:/snap/home-assistant-snap/443$ ffmpeg -h
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
[...]

(no need to use /full/path/to/ffmpeg)

Hi, Back to this. It seems to me that the `ffmpeg` package is available: ```bash ubuntu@ubuntu:~$ sudo snap run --shell home-assistant-snap root@ubuntu:/snap/home-assistant-snap/443$ which ffmpeg /snap/home-assistant-snap/443/usr/bin/ffmpeg root@ubuntu:/snap/home-assistant-snap/443$ ffmpeg -h ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) [...] ``` (no need to use `/full/path/to/ffmpeg`)
Đăng nhập để tham gia bình luận.
Không có nhãn
Không có Milestone
Không có người được phân công
2 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.