Synology NAS 上加快 Photo Station 製造 thumbnail
如果大家有用緊 Synology NAS 都可能會用佢一個叫 "Photo Station" 嘅程式. 呢個APP會自動將你放入去"photo"中的相片製造 thumbnail. 但我發覺佢好慢, 我有2萬張相, 300 個VIDEO, 佢(DS-212J) 花左一個多星期都一半未做好... 所以GOOGLE下有無人有SOLUTION. 就係咁, 發現:http://www.markinthedark.nl/news/ubuntu-linux-unix/78-speed-up-thumbnailing-on-synology-ds211j.html
方法如下:
(做之前如果做緊 thumbnail conversion, 最好停左先)
1. 先 SSH / TELNET 去個 NAS, 用 "root" login
2. DiskStation> cd /usr/syno/bin
3. DiskStation> vi convert_nosharpen.sh
4. 貼以下 code:
#!/usr/bin/perl -w
@new_args = ();
$old_arg = "";
for $arg(@ARGV) {
if($arg eq "-size") { $arg = "-sample"; }
if($arg ne "-unsharp") {
if($old_arg ne "-unsharp") {
push @new_args, $arg;
}
}
$old_arg = $arg;
}
exec "/lib/hddapp/usr/syno/bin/convert", @new_args;
5. Save and exit vi (Esc -> wq -> Enter)
6. DiskStation> chmod +x /usr/syno/bin/convert_nosharpen.sh
7. DiskStation> ln -sf /usr/syno/bin/convert_nosharpen.sh /usr/syno/bin/convert
8. Done! (可 resume thumbnail conversion)
以我的 NAS, 我做過實驗, 用 default, 20秒個一張相, 用左新 setting, 只需2秒個一張相! {:6_121:}
CPU utilization 之前爆 100%, 依家 4/50% {:6_134:} Ching,勁!{:6_193:}
Synology NAS 上加快 Photo Station 製造 thumbnail
Thanks a lot- 發送自我的 iPhone 大板凳應用 我同ching既相同video差唔多...
好似好複雜咁...今晚返去試下先. 好嘢喎~~!! {:9_426:}
就咁睇code好似係減低個thumbnail既resoultion去push個速度, kenneth兄有無測試過啲thumbnail有無走樣呢? {:9_419:} 我初初 set up 果陣真係攪左好耐 (估計有成個月)
有呢個方法快好多 {:6_193:} 好嘢喎~~!!
就咁睇code好似係減低個thumbnail既resoultion去push個速度, kenneth兄有無測試過啲t ...
ykluk 發表於 2012-7-31 14:27 http://m.post76.com/discuss/images/common/back.gif
我估佢係唔做一d "filter" 之類嘅動作. 你專門D... 我比較過無乜分別... 我估佢係唔做一d "filter" 之類嘅動作. 你專門D... 我比較過無乜分別...
kenneth_obee 發表於 2012-7-31 14:49 http://www.post76.com/discuss/images/common/back.gif
我十幾年無掂過啲program code, 不過就咁睇, 佢好似應該有幾個parameter, 一個係"size", 一個係"sample", 當發現個file太大時就會行"unsharp", 我諗呢個可能就係將張相減低resolution去加快速度~~!! {:8_374:}
不過如果無乜後遺症就唔使理我講乜啦, 收藏你個post等買機時用先~~!! {:8_368:} 我十幾年無掂過啲program code, 不過就咁睇, 佢好似應該有幾個parameter, 一個係"size", 一個係"sample" ...
ykluk 發表於 2012-7-31 15:33 http://m.post76.com/discuss/images/common/back.gif
According to the source that I am referring, it says it is the "unsharp" option that slows down the conversion process. Also, according to the same source, if upload photos using assistant software in PC, the thumbnails creation process will be happened on your PC instead. According to the source that I am referring, it says it is the "unsharp" option that slows down th ...
kenneth_obee 發表於 2012-7-31 15:41 http://www.post76.com/discuss/images/common/back.gif
哦, 咁係唔係如果事先做晒thumbnail, 佢就唔使行unsharp function呢? 從而增加速度呢? {:8_386:}
頁:
[1]
2