Bug 57622 - Portupgrade to latest mplayer version breaks application
Summary: Portupgrade to latest mplayer version breaks application
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 00:00 UTC by Stacey Roberts
Modified: 2003-10-07 09:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stacey Roberts 2003-10-06 00:00:42 UTC
I had gmplayer working fine until I portupgraded mplayer to latest version in ports: MPlayer 0.92-2.95.4  (C) 2000-2003 MPlayer Team.

After this upgrade, I noticed the following:
The "border" round the edge of the GUI player itself is missing
None of the buttons on the player GUI works (Play, Stop, Open Folder, etc)

Here's the output from when I run gmplayer:
$ gmplayer -vo x11 hd1.mpg
MPlayer 0.92-2.95.4  (C) 2000-2003 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /usr/local/share/mplayer/mplayer.conf: No such file or dir ectory
Reading config file /home/stacey/.mplayer/config
[cfg] read config file: /home/stacey/.mplayer/gui.conf
Reading config file /home/stacey/.mplayer/gui.conf
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display )
Disabling DPMS
Reading /home/stacey/.mplayer/codecs.conf: this codecs.conf is too old, incomp atible with this mplayer release! at line 6
Reading /usr/local/share/mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /usr/local/share/mplayer/font/font.desc
Cannot load font: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Can't open input config file /home/stacey/.mplayer/input.conf: No such file or  directory
Input config file /usr/local/share/mplayer/input.conf parsed: 52 binds
SKIN dir 1: '/home/stacey/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
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.
 
Playing /usr/home/stacey/hd1.mpg
MPEG-ES file format detected.
VIDEO:  MPEG2  720x576  (aspect 1)  25.00 fps  1024.0 kbps (128.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 720x576 => 720x576 Planar YV12
Using MMX2 for colorspace transform
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:   3.1   77  41% 126%  0.0% 0 0 0%
Successfully enabled DPMS
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
 
Playing /usr/home/stacey/hd1.mpg
MPEG-ES file format detected.
VIDEO:  MPEG2  720x576  (aspect 1)  25.00 fps  1024.0 kbps (128.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 720x576 => 720x576 Planar YV12
Disabling DPMS
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:   3.1   77  40% 138%  0.0% 0 0 0%
Successfully enabled DPMS
 
Exiting... (Quit)
$

Note that I know that I've not got any optimizations compiled into the kernel for playing video files, but then again, I'be never needed to in the past, and have always lived with things as they are.

But now this is all not working and this, only after portupgrading to the latest versions of MPlayer components:
mplayer-fonts-0.50                  =   up-to-date with port
mplayer-gtk-esound-0.92.0_1         =   up-to-date with port
mplayer-skins-1.0.5_2               =   up-to-date with port

Fix: 

Not sure
How-To-Repeat: Portupgrade to latest version in ports
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2003-10-06 00:07:50 UTC
Try the following as the user trying to run mplayer:

$ rm -R ~/.mplayer/
$ cd /usr/ports/multimedia/mplayer
$ make install-user

Does that help things out?

# Adam


--
Adam Weinberger
vectors.cx	>>  adam@vectors.cx	>>  http://www.vectors.cx
magnesium.net	<<  adamw@magnesium.net	<<  http://www.magnesium.net/~adamw
FreeBSD		>>  adamw@FreeBSD.org	>>  http://people.freebsd.org/~adamw
#vim:set ts=8: 8-char tabs prevent tooth decay.
Comment 2 Stacey Roberts 2003-10-06 00:22:59 UTC
Hello Adam,

On Mon, 2003-10-06 at 00:07, Adam Weinberger wrote:
> Try the following as the user trying to run mplayer:
> 
> $ rm -R ~/.mplayer/
> $ cd /usr/ports/multimedia/mplayer
> $ make install-user
> 
> Does that help things out?
> 

Nope.., tried that before posting the PR.

Also, I have already now tried
make deinstall for mplayer
make install clean
Exit SU
As regular user in mplayer ports dir
make install-user

Same results, this is still broken for me.

Thanks for taking the time to respond!

Regards,

Stacey
> # Adam
> 
> 
> --
> Adam Weinberger
> vectors.cx	>>  adam@vectors.cx	>>  http://www.vectors.cx
> magnesium.net	<<  adamw@magnesium.net	<<  http://www.magnesium.net/~adamw
> FreeBSD		>>  adamw@FreeBSD.org	>>  http://people.freebsd.org/~adamw
> #vim:set ts=8: 8-char tabs prevent tooth decay.
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com
Comment 3 Stacey Roberts 2003-10-06 18:50:15 UTC
HI Thomas,

On Mon, 2003-10-06 at 08:23, Thomas E. Zander wrote:
> Hi,
> 
> On Mon, 06. Oct 2003, at  0:22 +0100, Stacey Roberts wrote
> according to [Re: ports/57622: Portupgrade to latest mplayer version breaks application]:
> 
> > Also, I have already now tried
> > make deinstall for mplayer
> > make install clean
> > Exit SU
> > As regular user in mplayer ports dir
> > make install-user
> 
> Unfortunately I'm not able to reproduce your problem since it works
> completely as usual for me.
> 

Not sure how I respond to that..,

> According to your output it looks like you have compiled mplayer with
> freetype.

Err.., I've not explicitly compiled mplayer with anything., all I did to
install was:

make -DWITH_GUI install clean.

Then I selected all skins *except* the one that includes Windows Media
Player, and another that has Cryrus-something-or-the-other.

That's it.

> Please provide a truetype font to the program: Just copy a ttf to
> ~/.mplayer/subfont.ttf
> 

I'd be happy to, if I knew how.., Like I said, if there's any
truetype-anything in there, its not because I actually told mplayer to
use it.

> I'm not sure if this helps, but I've seen that mplayer can be broken by
> things not even god would expect :-)
> 

Not sure if you (or anyone else) are aware, but I'm not the only one
limping along with broken mplayer GUI players., there are quite a few
folks with this and similar problems since portupgrading to the latest
ports version.

Anyways.., if there's a link to how I could supply that truetype thingy
to mplayer, do let me know, I'll give it  a try.

Thanks again for taking the time to reply, Thomas. Always appreciated!

Regards,

Stacey
> Riggs
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com
Comment 4 Thomas E. Zander 2003-10-06 20:11:34 UTC
Yoh,

On Mon, 06. Oct 2003, at 18:50 +0100, Stacey Roberts wrote
according to [Re: ports/57622: Portupgrade to latest mplayer version breaks application]:

> > Unfortunately I'm not able to reproduce your problem since it works
> > completely as usual for me.
> 
> Not sure how I respond to that..,


You don't have to.
That's a alternative sentence to "For me it works and for the momemnt
I don't have access to a machine on which it does not." :-)

> > According to your output it looks like you have compiled mplayer with
> > freetype.
> 
> Err.., I've not explicitly compiled mplayer with anything., all I did to
> install was:
> 
> make -DWITH_GUI install clean.


If you do something like

ldd /usr/local/bin/mplayer | grep freetype

and someting like
libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x284a7000)
appears, mplayer is linked against freetype and wants to use truetype
fonts instead of the ones provided in the mplayer-fonts port.

I'll take a quick look into configure....wait.......errr.....damn!

I see the problem!
The configure script in mplayer-0.90 defaulted to bitmap fonts, whereas
the new script detects and links against freetype automatically.

I'll submit a pr to fix this asap!

> I'd be happy to, if I knew how.., Like I said, if there's any
> truetype-anything in there, its not because I actually told mplayer to
> use it.


Yes, I'm sorry, I didn't see the change to the freetype detection when
checking configure last week, shame on me :-(

> Anyways.., if there's a link to how I could supply that truetype thingy
> to mplayer, do let me know, I'll give it  a try.


Well, that's easy: Just find any font named <something>.ttf, for
example in a fonts dir of a windows installation, or a web site
providing free truetype font examples (google certainly helps), and
copy this file to ~/.mplayer/subfont.ttf

That's it. THe next time you start gmplayer, it will use the font.

Well, okay, I'll take care of this autodetection thing.

Thanks for reporting this problem.

Riggs

-- 
- "[...] I talked to the computer at great length and
-- explained my view of the Universe to it" said Marvin.
--- And what happened?" pressed Ford.
---- "It committed suicide." said Marvin.
Comment 5 Stacey Roberts 2003-10-06 21:08:42 UTC
Hello Thomas,

On Mon, 2003-10-06 at 20:11, Thomas E. Zander wrote:
> Yoh,
> 
> On Mon, 06. Oct 2003, at 18:50 +0100, Stacey Roberts wrote
> according to [Re: ports/57622: Portupgrade to latest mplayer version breaks application]:
> 
> > > Unfortunately I'm not able to reproduce your problem since it works
> > > completely as usual for me.
> > 
> > Not sure how I respond to that..,
> 
> You don't have to.
> That's a alternative sentence to "For me it works and for the momemnt
> I don't have access to a machine on which it does not." :-)
> 

'mkay..,

> > > According to your output it looks like you have compiled mplayer with
> > > freetype.
> > 
> > Err.., I've not explicitly compiled mplayer with anything., all I did to
> > install was:
> > 
> > make -DWITH_GUI install clean.
> 
> If you do something like
> 
> ldd /usr/local/bin/mplayer | grep freetype
> 
> and someting like
> libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x284a7000)
> appears, mplayer is linked against freetype and wants to use truetype
> fonts instead of the ones provided in the mplayer-fonts port.
> 
> I'll take a quick look into configure....wait.......errr.....damn!
> 
> I see the problem!
> The configure script in mplayer-0.90 defaulted to bitmap fonts, whereas
> the new script detects and links against freetype automatically.
> 
> I'll submit a pr to fix this asap!
> 

Cheers for that.., Glad I'm not going crazy.

> > I'd be happy to, if I knew how.., Like I said, if there's any
> > truetype-anything in there, its not because I actually told mplayer to
> > use it.
> 
> Yes, I'm sorry, I didn't see the change to the freetype detection when
> checking configure last week, shame on me :-(
> 
> > Anyways.., if there's a link to how I could supply that truetype thingy
> > to mplayer, do let me know, I'll give it  a try.
> 
> Well, that's easy: Just find any font named <something>.ttf, for
> example in a fonts dir of a windows installation, or a web site
> providing free truetype font examples (google certainly helps), and
> copy this file to ~/.mplayer/subfont.ttf
> 

Okay.., I'll give that a go and see how I get on.

> That's it. THe next time you start gmplayer, it will use the font.
> 
> Well, okay, I'll take care of this autodetection thing.
> 
> Thanks for reporting this problem.
> 

No worries.., Thanks for being here to respond :-)

Regards,

Stacey

> Riggs
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com
Comment 6 Peter Pentchev freebsd_committer freebsd_triage 2003-10-07 09:35:30 UTC
State Changed
From-To: open->closed

Superseded by the maintainer update in ports/57687. 
Thanks for the problem report!