Handbrake-CLI on Synology NAS



我在我的Synology NAS(DS415 )上安装了Docker,并试图通过SSH运行Handbrake-CLI(通过此软件包)。但是,似乎有些破坏了。我在简单的sudo docker run -d supercoder/docker-handbrake-cli -i ~/_inProgress/input/movie.mkv -o ~/_inProgress/output/test.mp4之后收到以下错误消息(我缩短了错误消息以获得可读性):

- hb_init: starting libhb thread
- HandBrake 0.10.1 (2015030800) - Linux x86_64 - https://handbrake.fr
- 4 CPUs detected
- Opening /var/services/homes/xxx/_inProgress/input/movie.mkv...
- CPU: Intel(R) Atom(TM) CPU  C2538  @ 2.40GHz
- Intel microarchitecture Silvermont
- logical processor count: 4
- OpenCL: library not available
- hb_scan: path=/var/services/homes/xxx/_inProgress/input/movie.mkv, title_index=1
- libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/services/homes/xxx/_inProgress/input/movie.mkv/BDMV/index.bdmv
- libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/services/homes/xxx/_inProgress/input/movie.mkv/BDMV/BACKUP/index.bdmv
- libbluray/bluray.c:2182: nav_get_title_list(/var/services/homes/xxx/_inProgress/input/movie.mkv) failed
- bd: not a bd - trying as a stream/file instead
- libdvdnav: Using dvdnav version 5.0.1
- libdvdread: Encrypted DVD support unavailable.
- libdvdread: Can't stat /var/services/homes/xxx/_inProgress/input/movie.mkv
- No such file or directory
- libdvdread: Could not open /var/services/homes/xxx/_inProgress/input/movie.mkv
- libdvdnav: vm: failed to open/read the DVD
- dvd: not a dvd - trying as a stream/file instead
- hb_stream_open: open /var/services/homes/xxx/_inProgress/input/movie.mkv failed
- scan: unrecognized file type
- libhb: scan thread found 0 valid title(s)
- No title found.
- HandBrake has exited.

我最初遵循此博客文章,并在那里收到相同的消息。

在我的桌面上执行相同的内容毫无问题。有人有一个主意吗?

运行Docker实例时,您的输入和输出文件不存在于容器中。您首先需要将文件系统的输入和输出目录作为卷安装(如您共享的博客文章所示)

-v ~/_inProgress/output/:/outout:rw
-v ~/_inProgress/input/:/input:ro

然后您在选项中使用这些路径:

-i /input/<file>
-o /output/<file>

祝你好运!

最新更新