Bug 193675 - multimedia/mplayer default configuration should enable fontconfig
Summary: multimedia/mplayer default configuration should enable fontconfig
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 02:02 UTC by Axel Gonzalez
Modified: 2014-09-18 12:12 UTC (History)
0 users

See Also:
loox: maintainer-feedback? (riggs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Gonzalez 2014-09-16 02:02:28 UTC
mplayer identifies the subtitles, but it is unable to display them.

Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text

This is the unninformative error of mplayer:

New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

If the conf detects fontconfig on the system, it uses the lib, and is able to display the subtitiles.


Also build without fontconfig, it breaks umplayer (if you select a system font on the ttf file directly for subtitles).

The default command line of umplayer is something like (short version):

mplayer -fontconfig -font 'Bitstream Vera Sans' movie.mkv  
MPlayer was compiled without fontconfig support.
MPlayer SVN-r37257-snapshot-3.3 (C) 2000-2014 MPlayer Team


This breaks the version parsing of umplayer, and makes a blank window.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-16 02:02:28 UTC
Auto-assigned to maintainer riggs@FreeBSD.org
Comment 2 Axel Gonzalez 2014-09-16 02:06:07 UTC
I forgot, this happens only with some subtitles, not all. When it is broken it doesn't show even english subs.
Comment 3 Thomas Zander freebsd_committer freebsd_triage 2014-09-16 06:12:05 UTC
Do you have an example file? My test files with S_TEXT/UTF8 all properly display their subtitles. I supplied it a font file, though, by
cd ~/.mplayer
ln -s /path/to/some/ttf/file subfont.ttf
Comment 4 Axel Gonzalez 2014-09-16 20:44:58 UTC
Here is how it goes:

with fontconfig:
- works out of the box, no links

with no fontconfig:
- by adding the subfont.ttf link - works
- by using: mplayer -font /whatever/font.ttf - works
- by adding the subfont.ttf link - umplayer also works
- When selecting a font in umplayer, no play at all - fails to detect mplayer

Is worth mentioning if it is build in a clean enviroment (poudriere) it will not use fontconfig, but it is build on a desktop it will pick it, and use it.

A temp file with subs: http://loox.e-shell.net/file.mkv
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-09-18 12:08:28 UTC
A commit references this bug:

Author: riggs
Date: Thu Sep 18 12:08:12 UTC 2014
New revision: 368445
URL: http://svnweb.freebsd.org/changeset/ports/368445

Log:
  - Make FONTCONFIG a default OPTION
    - improves compatibility with umplayer
    - does not require manual config modification for subtitle display
  - Bump PORTREVISION

  PR:		193675
  Submitted by:	loox@e-shell.net

Changes:
  head/multimedia/mplayer/Makefile