Page 1 of 3

Speed up FFMpeg Font Cache checking.

Posted: Thu Dec 05, 2013 2:27 am
by spkbr
Thank you for the new version!

Is there any way to speed up FFMpeg font cache checking? It takes a minute to finish every time I load UMS, unlike Mencoder, which is almost instantaneous. And I think I don't use FFMpeg at all.

Thanks a lot in advance.

Re: Speed up FFMpeg Font Cache checking.

Posted: Thu Dec 05, 2013 6:32 am
by DeFlanko
I think its a Lovely "Feature" of MPlayer - Font Cache
fontconfig

If you enable fontconfig, the first run of mplayer can take a while, even 2-3 minutes, because the font cache needs to be created. In the window you can follow fonts that are being parsed. Other runs you will have no delay until you make changes to the font directory.

Re: Speed up FFMpeg Font Cache checking.

Posted: Thu Dec 05, 2013 9:39 am
by Vallimar
FFmpeg can be compiled with fontconfig support also but I don't believe the shipped binaries have been compiled with it. I'm unsure if that would help with this issue, however, as I have never had this problem with FFmpeg.

Re: Speed up FFMpeg Font Cache checking.

Posted: Fri Dec 06, 2013 3:20 am
by ExSport
Can't test it right now but I am sure that for mplayer, fontconfig generation was done only once or when new fonts were installed.
I can't say if ffmpeg does the same (once it is created, no other tries) or tries to recreate it every UMS start but it should do it only once.
Are you sure that every restart it is recreated?

Re: Speed up FFMpeg Font Cache checking.

Posted: Fri Dec 06, 2013 12:17 pm
by DeFlanko
yeah i notice it.. i just never really cared about it.. i thought it was by design.

Re: Speed up FFMpeg Font Cache checking.

Posted: Sat Dec 07, 2013 2:47 am
by Wolfgan
ExSport wrote:tries to recreate it every UMS start but it should do it only once.
That-s the current behavior, (sloooooowly) recreating cache at every start of UMS, not much of a cache as expected :-)

Re: Speed up FFMpeg Font Cache checking.

Posted: Sat Dec 07, 2013 3:20 am
by ExSport
Ok, so it seems to be a bug. In major UMS updates cache is recreated also in case it exists due to possibility of incompatible,broken or missing cache.
Maybe because of that it is recreated continually also in case job already passed.
Subjunk should answer it as a owner of ffmpeg cache code :)

Re: Speed up FFMpeg Font Cache checking.

Posted: Sat Dec 07, 2013 2:55 pm
by SubJunk
It's only created once for me, just like MPlayer. Which operating system are you on?

Re: Speed up FFMpeg Font Cache checking.

Posted: Sun Dec 08, 2013 12:40 am
by Wolfgan
SubJunk wrote:It's only created once for me, just like MPlayer. Which operating system are you on?
W7 x32 Professional, latest Java7 update

Re: Speed up FFMpeg Font Cache checking.

Posted: Sun Dec 08, 2013 12:50 am
by SubJunk
Same as me, but mine gets created only once. Weird. Maybe the cache creation is failing for you