[FFmpeg-devel] [PATCH] MP4 Subtitle support

Benjamin Rainer benjamin.rainer at itec.aau.at
Thu Oct 4 16:23:53 CEST 2012


On Oct 4, 2012, at 4:08 PM, Nicolas George <nicolas.george at normalesup.org> wrote:

> Le duodi 12 vendémiaire, an CCXXI, Benjamin Rainer a écrit :
>> +const CodecMime ff_codec_movsubtitle_mimetypes[] = {
>> +    { "text/srt", 	AV_CODEC_ID_SRT },	/* extend */
>> +    { "text/subrip",	AV_CODEC_ID_SUBRIP },
>> +    { "text/webvtt", 	AV_CODEC_ID_WEBVTT },
>> +    { "text/rtext", 	AV_CODEC_ID_REALTEXT },
>> +    { "text/subV",  	AV_CODEC_ID_SUBVIEWER },
>> +    { "",		AV_CODEC_ID_NONE },
>> +};
> 
> I see none of these MIME types in
> http://www.iana.org/assignments/media-types/text/index.html
> Do you have a reference?
> 
> Regards,
> 
> -- 
>  Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

I found these mime types in some files and they did their job very well / at least for testing.

The correct ones are:

subrip: application/x-subrip
WebVTT: text/vtt	(See http://dev.w3.org/html5/webvtt/)

I have already changed the mime types in a newer patch but, I will try the approach Mr. Boesch mentioned.




More information about the ffmpeg-devel mailing list