I've been trying to figure out how to extract hdmv pgs subtitles from an mkv file for a few days now. I must be doing something wrong. I'm a noob at this. Can someone please help? I think i need to set an encoder or set a codec parameter to fix the issue.
this is the subtitle I'm trying to rip
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle (default)
Metadata:
title : Signs / Songs
BPS-eng : 7215
DURATION-eng : 00:22:43.946000000
NUMBER_OF_FRAMES-eng: 96
NUMBER_OF_BYTES-eng: 1230263
_STATISTICS_WRITING_APP-eng: mkvmerge v28.0.0 ('Voice In My Head') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-10-22 23:45:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
and the ffmpeg command i'm using is
ffmpeg -i "FILE PATH".mvk -map 0:4 "FILE PATH".srt
I've also tried
ffmpeg -i "FILE PATH".mkv -map 0:4 pgssub "FILE PATH".srt
ffmpeg -i "FILE PATH".mkv -map 0:4 hdmv_pgs_Subtitles "FILE PATH".srt
along with a few other variations and always get an error.
- Subtitle encoding currently only possible from text to text or bitmap to bitmap
- Unable to find a suitable output format for 'hdmv_pgs_subtitle'
- Unsupported subtitles codec: dvd_subtitle
- Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options
- Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
- or the srt file it creates is 0kb.
Can someone please tell me what i'm doing wrong and show me the correct code to use. I'm on a mac and i've also tried using MKVToolNix and get a weird binary file that doesn't work cause it's probably in the wrong format.