Showing posts with label Media. Show all posts
Showing posts with label Media. Show all posts

2015-10-29

影音轉檔及字幕使用

軟體:
1. Handbrake : 從光碟片抽取影音檔, 轉換影音格式. 不提供字幕檔格式設定/編輯.
2. Avidemux : 合併/裁剪影音檔
3. ConvertZ : 字幕檔簡繁體轉換 (Microsoft Office Word, Libreoffice Writer 也都有簡繁轉換功能; 接著利用 notepad++ 轉換至 UTF-8 (檔首無 BOM))
4. Notepad++ : 改變字幕檔編碼格式為 UTF-8; 檔案大小會比原本的檔案增大約 1.5 倍; UTF-8 以 3 bytes 存中文.
5. SrtEdit : 轉換字幕檔格式 (SRT, SSA, ASS), 中文簡繁轉換, 調整字幕大小及字型
6. VLC : media player
7. PLEX : media server


=============================================================================
影音檔格式差別:

MKV:
老牌封裝格式。以可以自由調節各項設置而備受視頻壓制人員的喜愛,而且後天可以提取內掛字幕和外掛字幕都很容易。只是這個格式在安卓和iOS等移動設備上不是默認支持的,因為其相同碼率和設置下體積較大,且由於充分開放自由設置而導致的編碼不同等問題不適合移動設備觀看,另外Mac OSX也不是原生支持這種格式的。

MP4:
新興封裝格式。雖然不及MKV那般高自由度的調節選項,但是由於其被移動設備、掌機以及Mac OSX等原生支持,在移動視頻領域異軍突起,成為了很多視頻網站和論壇開始大量採用的視頻格式。不過此種格式雖然也是可以封裝其他視頻格式的,但是由於其有限的調節設定導致其後天再編輯性不強,也無法提取內嵌字幕。


=============================================================================
字幕有兩種形式

1. softsub (軟)
可以是獨立的字幕檔,也可以封裝在影片檔內. 最大的特點是可以選擇、開啟/關閉指定字幕
常見文字格式: ASS、SSA、SRT、Plain Text
常見圖形格式: DVD字幕、Blu-ray字幕

2.hardsub (硬)
如果你的播放設備不支援字幕(softsub),你就要重新編碼視訊將字幕烙印在畫面上, 但轉換編碼格式很耗時還會損失畫質. 播放時一定有字幕,因為字幕是烙印在畫面上,有畫面就有字幕

輸入字幕

支援的字幕格式:
‧ Plain Text (純文字): 僅內建
‧ SubRip (SRT): 內建、外掛
‧ Advanced SubStation Alpha (ASS): 僅內建
‧ SubStation Alpha (SSA): 僅內建
‧ DVD Subtitles (IDX+SUB): 僅內建
‧ Blu-ray Subtitles (PGS/SUP): 僅內建

字元編碼格式:
‧ UTF-7
‧ UTF-8
‧ UTF-16
‧ UTF-32

前置作業

如果 SRT 之類的文字格式字幕的字元編碼不是 Unicode 格式, 你必須先將字元編碼轉為 UTF-8 或其他 Unicode 格式

http://www.mobile01.com/topicdetail.php?f=511&t=4192036

如果是獨立的字幕檔 (非 SRT),可用 mkvmerge 將所需的字幕、視訊、音訊重新封裝為單 MKV 檔給Handbrake 或 VidCoder 讀取。如果需要匯出內建字幕,可用 gMKVExtractGUI 匯出字幕。

http://www.mobile01.com/topicdetail.php?f=510&t=4192044

由於 Handbrake 不提供字幕樣式設定選項,所以純文字字幕只能使用預設的風格/樣式,但你可以將純文字字幕轉為 ASS,並直接在 ASS 字幕內設定風格/樣式。最後再用 mkvmerge 重新封裝成單 MKV 給 Handbrake 或 VidCoder 讀取。

http://www.mobile01.com/topicdetail.php?f=510&t=4192039

Handbrake 輸出字幕設定

開啟影片後切換到 "Subtitles" 分頁; 如果字幕來源是輸入影片,則點擊 [Add Track] 之後從 "Source" 的下拉式選單選取要使用的字幕, 如果字幕來源是 SRT 檔,則點擊 [Import SRT] 來選取字幕檔案,且必須設定正確的字元編碼 (Car Code), 如果你勾選 [Burn In],則該字幕會被燒錄(烙印)至畫面上,即 "hardsub"。


HandBrake 轉檔出現亂碼 = =
除了Handbreak設定要選UTF-8之外,.srt檔有些也要用文字編輯另存成UTF-8格式。

=============================================================================

2013-03-03

How to rip a video cd to a avi file

1. Copy the AVSEQ01.DAT file from the MPEGAV directory of the VCD to a location on the computer. This file contains the main audio and video of the VCD.

2. Rename the AVSEQ01.DAT file on the computer to AVSEQ01.MPG. Since DAT files are MPEG-1 format, there is no conversion necessary.

3. Open the AVSEQ01.MPG file with the video conversion software. The software should display relevant file information including frame size, frame rate and data rate for the video.

4. Choose an output option to convert the AVSEQ01.MPG file to an AVI file. Use an output frame size that is the same as the source file frame size.

5. Encode the video to AVI format. Depending on the length of the video, encoding may take significant time to complete. Once completed, delete the AVSEQ01.MPG file from the computer.