從(放在Synology NAS裡的)mkv抽取字幕檔

MKV和MP4一樣,檔案本身是一個container,影片的視頻、聲頻、字幕、封面等都可以塞進去。然而,MKV不能在iOS devices上native播放是一件很不爽的事,雖然簡單的conversion可以把MKV轉成能在iPhone / iPod / iPad (和我沒打算買的AppleTV)上播放的Apple標準MP4,但這樣的話,字幕就沒了。

英文的還好,反正聽得懂,但由內地各大小字幕組辛苦弄出來的日劇和動畫就不行了。

其實,Apple標準的MP4是支援純文字字幕的,格式是最簡單、最不花巧的SRT,所以只要找到編碼合適的字幕檔,就可以把它塞進MP4。不想自行上網找的話,先把SSA或者ASS弄出來,再轉成SRT也可。

附字幕720p的MKV影片越來越多,問題就要解決──Windows和Mac上都有不少的字幕工具,不過這些東西都是GUI為主,而我的影片都是存放在跑DSM 4.x (busybox)的Synology NAS上,尤其是十多集的一整輯動畫,才沒有空跟他一個一個在LAN上玩,所以就決定用mkvtoolnix的CLI集體處理。

下面就是以Command和mkvtoolnix從存在跑Busybox Linux的Synology NAS內的MKV影片抽出SSA、ASS或SRT字幕檔的實戰! Continue reading “從(放在Synology NAS裡的)mkv抽取字幕檔”

在Synology NAS將上自己home directory的內容mount到Media Server的捷徑上

IMG_20130219_003304在家用Synology NAS的原因,主要是能夠在家下以不同的devices都可以access到NAS上的檔案,其中最主要的就是多媒體的檔案了。

然而,以支援SMB protocol的app或者電腦access的話,在登入後要經過N重資料夾,非常不便。比較方便的方法,就把多媒體資料夾放在用NAS附帶(需額外下載/免費)Media Server自行產生的資料夾中,但在NAS內把檔案抄來抄去也不是一件過癮的事。

解決方案:把自己的多媒體資料夾mount在Media Server生成的資料夾中,經過支援WebDav、DLNA、UPnP或SMB的播放或檔案管理程式就能更快地access到──── Continue reading “在Synology NAS將上自己home directory的內容mount到Media Server的捷徑上”

在Synology NAS上Compile AtomicParsley

ipod-video-list在電腦或NAS硬碟中有一大堆MP4影片,想在iPad、iPhone時播放,但影片沒有封面,只有一個個預設icon或者每次都要等iTunes讀取影片去擷取中間的截圖、應該很不爽吧?

在Mac上,可以用附有圖像界面的MetaX,去增加、修改MP4影片的meta data和封面;Windows上,也有如TagScanner之類的程式。然而,當要處理的是幾十甚至幾百個MP4時,GUI的程式就一點都不好玩了。

MetaX的背後,是一個開源程式AtomicParsley,AtomicParsley是以一個以C++寫成的程式,以Command line interface操作,除了Google四處找別人complie的binary外,用戶也自行下載原碼在其他像Windows、Mac OS X、Unix、Linux等等等等上compile自用。

AtomicParsley(和基於AtomicParsley的MetaX)處理MP4檔案的方法頗原始,在寫入meta data時需要整個MP4從新複寫一次,所以我選擇在Synology NAS上直接跑AtomicParsle,而不在Mac上用MetaX。

這裡是在Synology上Compile AtomicParsley的方法: Continue reading “在Synology NAS上Compile AtomicParsley”

在Synology NAS上安裝IPKG

如果你是Synology NAS的用戶,而又有比一般用家有多於「單純找個硬碟盒在家連著路由器用」的話,那你在NAS上安裝IPKG就非常必要了。

IPKG和Fedora上的yum、Debian和Ubuntu上的apt-get近似,不懂Linux?當它是一個跑command line的free app store或者Cydia之類吧。

還是不明白的話,我也幫不到你………要是Google找到來這篇的話,那就cut to the chase──

Continue reading “在Synology NAS上安裝IPKG”

E○TV用MP4 Handbrake preset – iOS對應!

Handbrake中的universal preset適用絕於大部份的iOS device,但這個preset (和其他預設的preset) 都強制用29.95做fps值,影片大小和比例有限(而且奇怪…),它的H.264的VBR設定更用上20,在容量上相當慷慨。

handbrake

基本上,從DVD rip出來的影片或者從RMVB、AVI轉成MP4,或者要把在2009年前在某E○TV網站的種子取得的AVI劇集轉成MP4的話,H.264的VBR設定用上22或23就足夠有餘。以E○TV的美劇為例,一季二十多集下來便可以省下42%至45%的空間,但畫質與原來的XVID或者universal preset的20根本沒有區別。何況E○TV的舊AVI都是23.976為fps值,在所有iOS上都能正常播放,根本就不用改成29.95。 Continue reading “E○TV用MP4 Handbrake preset – iOS對應!”

Top Ten List on Using a Computer in an Office

10. If you got problems, you should try turn the machine off and turn it on again.

09. USB is a port (or an input-output interface) on a modern computer, not a storage device.

08. Microsoft Powerpoint is for On-screen presentation, NOT note printing, please use Word for that.

07. Microsoft Word is for simple document to print out on a laser or inkjet printer, NOT for publishing a 300 pages book.

06. You can email a line of text in an email, you don’t NEED to type a sentence in a Word Document, save it and attach it in an Email.

05. You can also email with a PICTURE as attachment, you can add them just like attaching your favorite Word or Excel Documents. You don’t NEED to put a JPEG photo in a Word Document, save it and attach it in an Email.

04. People can actually read your email faster than you press the print button, go pick up your print out , then walk to their desk with a piece of paper with a line of text on it. If they don’t have any respond from your email, they’re probably ignoring you.

03. You can save a HTML file from Word or Microsoft Frontpage and uploaded it somewhere. But doesn’t mean you know how to do Web-design or “writing a web page”.

02. Don’t click on YES everytime anything pop up with a dialog box, READ first, OUT LOUD if necessary.

01. The blue “e” thingy on your desktop with “Internet Explorer” text under it is NOT the Internet, more like it fucks up the internet!

Top Ten List on what I hate on web-building

10. Default blue <a> and purple <a:visited> – am I the only one felt this is ugly?

09. Using 200 Line-breaks <br> to make vertical spacing – You need a new keyboard when your Enter button broke;

08. Using 200 Non-breaking Spaces &nbsp; to make horizontal spacing or even fake “Center” aligment – I know, you’re using Frontpage, and that “align center” button will kill your whole family, including your dogs;

07. HTML page without character setting meta – Not every one is using same languaged-version OS as YOUR machine! Morons!;

06. Italic font-style – It just looks god-damned-ridiculous on ALL BROWSERS;

05. Comic-sans (and 少女體/娃娃體/海報體 in Chinese) under ANY CIRCUMSTANCE – THEY AREN’T CUTE for 13 years already;

04. Tables for minor layout alignment – It’s NOT 1998, Try google “Minial Table” for god’s sake!

03. Hard-coded Inline style – again, this is NOT 1998!!

02. Flash sites; using a HUGE Flash without HTML options and/or skip button (well, i got one, Ctrl-W/Cmd-W!);

01. IE Only – FUCK IE! Especially IE6, FUCK IT!