I'm trying to extract a subtitle from a Blu-ray disc and it is an hdmv_pgs_subtitle
. So I try
ffmpeg -i file.m2ts -map 0:3 -scodec copy rip3/test.sub
and get
Could not write header for output file #0 (incorrect codec parameters ?):
Operation not permitted
Then I do
ffmpeg -i file.m2ts -map 0:3 -scodec copy rip3/test.sup
ffmpeg -i file.m2ts -map 0:3 -scodec copy rip3/test.srt
and a bunch of other different extensions, until I give .mkv
a shot, which works.
How can I find what extensions ffmpeg allows? I haven't found one place that e.g. names .mkv
as an extension
ffmpeg -formats
mentions matroska
, but doesn't say that .mkv
is the extension. So is there a way to find all supported file extensions for ffmpeg?
EDIT: After reading the answer from slhck I found the extensions by doing this command in the sourcefolder.
find . -type f -iname "*.c" -exec egrep -H ".extensions" {} \;
The filename will give some information about what kind of format it is.