[FFmpeg-user] ffmpeg not properly rendering utf8 subtitle srt file

Unni Krishnan lists at velnix.com
Thu Jun 11 18:50:46 EEST 2020


Hello,

I am using a utf8 srt file in mac to hardcode subtitle to a video.

--
$file -I Ernest_Celestine_2012.srt
Ernest_Celestine_2012.srt: text/plain; charset=utf-8

$uname -a
Darwin 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020;
root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
--

But ffmpeg is not rendering it properly. But VLC is showing the same srt
file properly.

https://imgur.com/a/DhBcxT7

Currently I am using ffplay to test it.

ffplay -i Ernest_Celestine_2012.mp4 -sub_charenc UTF-8 -vf
subtitles='Ernest_Celestine_2012.srt':charenc='UTF-8':force_style='FontName=Manjari'

How can I fix it?

Regards,
Unni


More information about the ffmpeg-user mailing list