Page 1 of 1

Specify TrueType Font with FFmpeg in Win10

Posted: Wed Mar 30, 2016 2:50 am
by jkwu
Hi
I was installed the UMS 6.2.1 on Win10 64bit
I found a problem when I choose a TrueType Font then I will get a error message.
I opened the debug log, then I saw the log

DEBUG 2016-03-29 21:48:33.517 [ffmpeg64.exe-2] net.pms.io.ProcessWrapperImpl Starting "C:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe" -y -loglevel info -i F:\Movie\KANO\Kano.2014.1080p.BluRay.x264-WiKi.mkv -filter_complex subtitles=F\\:/Movie/KANO/Kano.2014.1080p.BluRay.x264-WiKi.srt:force_style='Fontname=C:\Windows\Fonts\kaiu.ttf,Fontsize=21.0,PrimaryColour=&Hffffff,Outline=1,Shadow=1,MarginV=10' -bufsize 1835000 -maxrate 499000000 -g 5 -q:v 1 -qmin 1 -c:a copy -c:v mpeg2video -f vob \\.\pipe\ffmpegvideo_58_1459259313211

My subtitles path is not windows path format, it became a linux path format.

Is there something wrong?
Attach file is my full debug log, Thx

Re: Specify TrueType Font with FFmpeg in Win10

Posted: Wed Mar 30, 2016 11:15 am
by valib
There is an bug in the UMS. FFmpeg is working only with the registered font name not with the font file. The font must be included in the OS environment. You need to set the font name to something like "kaiu" which should be an internal name of the font and not to specify the whole path.

Re: Specify TrueType Font with FFmpeg in Win10

Posted: Wed Mar 30, 2016 11:38 am
by jkwu
Wow, it's work!
valib, Thank you for tell me this.
I don't know I should type the name not the path