Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 208786

Summary: current kplayer makes invalid command line call to current mplayer
Product: Gentoo Linux Reporter: Jerry McBride <mcbrides9>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: major CC: bernhard.hartleb, bsdunx, giovanni.bobbio, jeremy.william.murphy, treecleaner
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kplayer-0.6.3.ebuild

Description Jerry McBride 2008-02-03 20:06:03 UTC
Compiled current version kplayer and current version mplayer. When trying to play an mp3 file, kplayer passes an invalid commandline parameter to mplayer. The parameter is "-embeddedfonts". Current version has no such parameter...

Reproducible: Always

Steps to Reproduce:
1.click on mp3
2.kmplayer pops up
3.nothing happens...

Actual Results:  
Nothing happend, kplayer app has a message box that shows the dialog between it and mplayer. Mplayer complains "-embeddedfonts" Huh??

Expected Results:  
Should play music...

Built kplayer manually via ebuild. Inbetween unpack and compile I grep'ed the sources and found where "embeddedfonts" resides and removed it from the source... Simple edit... then compile, install and qmerge...

Results... it now works 100%.

I can't believe I'm the only one with this problem?

PS... tried compiling mplayer with embeddedfonts=1 in ebuild... no joy that way, had to hack kplayer to fix this for me....
Comment 1 Bernhard Hartleb 2008-04-07 21:09:27 UTC
No, you are not the only one. I got the same problem here with kplayer-0.6.3.

I solved the problem by commenting this line in kplayer/kplayerprocess.cpp out:
*m_player << (configuration() -> subtitleEmbeddedFonts() ? "-embeddedfonts" : "-noembeddedfonts");

mplayer doesn't seem to know the "-embeddedfonts" and "-noembeddedfonts" switches. I am using mplayer-1.0_rc2_p25993.

As this is a known problem and it looks like this option isn't needed anyway, can somebody please attach a patch to the ebuild? Without it kplayer won't play anything.
Comment 2 Jeremy Murphy 2008-08-05 11:11:51 UTC
MPlayer supports -embeddedfonts/-noembeddedfonts only if compiled with USE=srt.  You can either 
a) enable SRT in MPlayer (via /etc/portage/package.use), or 
b) downgrade KPlayer to 0.6.2 (mask higher versions via /etc/portage/package.mask).
Cheers.
Comment 3 Adam Gregoire 2008-09-18 00:22:29 UTC
Created attachment 165690 [details]
kplayer-0.6.3.ebuild

This should clear it up for users.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-15 17:30:19 UTC
Before I more or less blindly commit 0.6.3-r1, can someone commit, that the required use flag is "ass" in between or is that a different implementation with other cmd params?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-11-12 14:21:38 UTC
Closing. Please reopen if you still see this with 0.7.