2017-03-03 334 views
0

我在Synology NAS(DS415 +)上安裝了Docker,並嘗試通過ssh運行手剎cli(通過this包)。 但是,有些東西似乎被打破。我收到以下錯誤消息後一個簡單的sudo docker run -d supercoder/docker-handbrake-cli -i ~/_inProgress/input/movie.mkv -o ~/_inProgress/output/test.mp4(我縮短了錯誤信息的可讀性):Synology NAS上的Handbrake-CLI

- 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. 

我跟着this blog post原本並得到了相同的消息出現。

在我的桌面上執行相同的操作沒有任何問題。 任何人都有想法?

+2

您的問題更適合[超級用戶](http://superuser.com/tour)。 – Cyrus

+0

謝謝,我還不知道這個部分。我把它發佈在那裏。 – sqe

回答

2

運行docker實例時,您的輸入和輸出文件不存在於容器中。你需要首先你的文件系統,卷(如您分享的博客文章顯示)

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

安裝的輸入和輸出目錄,那麼你在選擇使用這些路徑:

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

祝你好運!

+0

好吧,看起來我只是有一個錯字,忘了'sudo'。但是,感謝您的幫助。 – sqe

+0

我已將[code](http://ivo2u.nl/5u)添加到支持上述[blogpost](http://ivo2u.nl/5n)的github。希望它能解釋一些事情。 – Ivonet