# Get-VideoSubtitles.ps1 Extracts the embedded subtitle tracks of a video file into the current directory, or lists them with `-List`. ## Parameters - **`-Video`** (required): Path to input video file (absolute or relative) - **`-List`**: List the subtitle tracks (index, codec and output name) instead of extracting them. Creates no files ## Supported Formats ffmpeg can copy text subtitles out of a container, and can copy Blu-ray bitmap subtitles to a `.sup` file. It cannot write DVD or DVB bitmap subtitles as a standalone file, and it cannot turn bitmaps into text without OCR. | Container | Subtitle codec | Output | Notes | | --- | --- | --- | --- | | MKV | SubRip (`subrip`) | `.srt` | | | MKV, WebM | WebVTT (`webvtt`) | `.srt` | Converted to SubRip | | MP4, MOV, M4V | mov_text (`mov_text`) | `.srt` | Converted to SubRip | | MKV | ASS / SSA (`ass`) | `.ass` | Copied unchanged, styling is kept | | MKV, M2TS, TS | Blu-ray PGS (`hdmv_pgs_subtitle`) | `.sup` | Copied unchanged. Bitmap, not text | | MKV, VOB | DVD (`dvd_subtitle`) | not extracted | Listed as not supported | | TS | DVB (`dvb_subtitle`) | not extracted | Listed as not supported | | AVI | none | not extracted | AVI has no standard subtitle track | Any other subtitle codec is listed as not supported and skipped with a warning. ## Output Names Each extracted file is saved in the current directory, not next to the video. The name is built from the video name and the track language: - `