2010年11月4日 星期四

VLC中文的方框問題

今天打開VLC,外掛字幕卻都顯示方框,字幕都使用unicode 8問題依然
查了資料發現,重點在於:
字型(使用微米黑)/usr/share/fonts/truetype/wqy/wqy-microhei.ttc或

preferences/(input/codecs)/other codecs/subtitles/Formated Subtitles
(vlc2.x 好像有換位置
preferences/(input/codecs)/Subtitle codecs/subtitles/Formated Subtitles
)
選項不能勾選
(选项/高级/输入编码/其他编码器/字幕中 取消选择 格式化字幕

當然不能忘記字幕要配合VLC的預設字幕encoding啦


引用資料:
VLC字幕乱码[已解决]

ubuntu winff preset and ffmpeg problems (with psp setting)

ffmpeg預設安裝並不會安裝restriceted資源,所以需要另外安裝
當使用winff時遇到unknown codec "libfaac"
可能解決方式如下

Indeed, the package you are after is libavcodec-extra-52. Perhaps run through the steps again, first add Medibuntu:

Code:
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
Then install ffmpeg and the libavcodec package from Medibuntu:

Code:
sudo apt-get install ffmpeg libavcodec-extra-52
And this should set you up correctly...

Andrew

Edit: Mind you looks like you might have to manually 'Force' the Medibuntu libavcodec-extra-52 at the moment .

而winff預設的preset裡並不會有psp的規格
在/usr/share/winff/資料夾中有其他的preset,其中"presets-libavcodec52-v5.xml"就有psp的preset
方法有二,直接更改/usr/share/winff/中的preset,並砍掉/home/user/.winff/presets.xml然後開啟winff即可使用更改後的preset,當然,這樣子是system wide的改法
開啟terminal
cd /usr/share/winff/
sudo mv preset.xml preset.xml.bak
sudo cp presets-libavcodec52-v5.xml preset.xml
rm ~/.winff/preset.xml

然後開啟winff即可

另外,如果僅更改/home/user/.winff/preset.xml就是單純的更改其user的winff preset
cp /usr/share/winff/presets-libavcodec52-v5.xml ~/.winff/preset.xml

PS.剛剛發現presets-libavcodec52-v5.xml的psp格式中的widescreen只使用480x272,但是bitrate使用1.25k,相當的奢侈,故可以直接改成720x480而birtate可以在開啟winff的時候依照轉換的檔案指定大小,反正現在的psp可以接受720x480的檔案了。

打開presets.xml尋找psp widescreen可以找到以下的東西,解析度改成720x480,-b(bitrate) 則依個人喜好更改,一般轉換普通的卡通可以使用384~512就很足夠了,但是電影真的就如他所設定的1.25k會比較好。

-f mp4 -r 29.97 -vcodec libx264 -s 720x480 -aspect 16:9 -b 1250kb -maxrate 4M -bufsize 4M -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 6 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1250k -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 25 -acodec libfaac -ab 128kb -ar 48000 -ac 2

參考資源:
[ubuntu] FFmpeg-extra / libfaac support
winff wiki of preset and presetinstall

TOSHIBA L740 拆機(teardown) 與GPU墊銅片心得

最近因為筆電過保,外加上使用上感覺有點熱度,趁著還沒進入夏天之際趕快來拆解,更換散熱膏(新鮮入手的AC MX-4)與清理風扇。 說是拆解,其實因為材料沒買齊也拆了四次有了,不過最重要的是...都忘了拍照阿 只照了這一張 不過其實上網找過許多網站,不管英文中文的幾...