AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Support > Tech Support > Playback Help

Notices

 
 
Thread Tools
Old 2008-07-28, 20:29   Link #21
Discerptor
ANIUE!111
 
 
Join Date: Oct 2006
Quote:
Originally Posted by Ryoujin View Post
Of all the installs this is the one that seems that is giving issues, even uninstalling doesn't help, it keeps up:

Code:
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-autohint.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
COMPUTER:~ USER$ sudo port uninstall fontconfig
--->  Uninstalling fontconfig 2.6.0_0+macosx
COMPUTER:~ USER$ sudo port install fontconfig
--->  Installing fontconfig 2.6.0_0+macosx
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-autohint.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
Here's the trouble spot:

Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-autohint.conf already exists and does not belong to a registered port. Unable to activate port fontconfig.

In Terminal,
Quote:
sudo rm /opt/local/etc/fonts/conf.avail/10-autohint.conf
Then try it again.
Discerptor is offline  
Old 2008-07-28, 21:20   Link #22
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
I wrote that but every time I try to install fontconfig a new one shows up, for example:

Code:
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-no-sub-pixel.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
COMPUTER:~ USER$ sudo rm /opt/local/etc/fonts/conf.avail/10-no-sub-pixel.conf
COMPUTER:~ USER$ sudo port install fontconfig
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-sub-pixel-bgr.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
COMPUTER:~ USER$ sudo rm /opt/local/etc/fonts/conf.avail/10-sub-pixel-bgr.conf
COMPUTER:~ USER$ sudo port install fontconfig
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-sub-pixel-rgb.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
COMPUTER:~ USER$ sudo rm /opt/local/etc/fonts/conf.avail/10-sub-pixel-rgb.conf
COMPUTER:~ USER$ sudo port install fontconfig
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/conf.avail/10-sub-pixel-vbgr.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
Isn't there a more efficient way to delete it all and then re-install? It might seem that I'd have to try sudo port install fontconfig and manually delete every error that shows up
Ryoujin is offline  
Old 2008-07-29, 02:42   Link #23
Discerptor
ANIUE!111
 
 
Join Date: Oct 2006
Do this to get rid of all of them, then:

Quote:
sudo rm /opt/local/etc/fonts/conf.avail/*.conf
And if it yells about the folder existing in the first place, do

Quote:
sudo rm -rf /opt/local/etc/fonts/conf.avail
Discerptor is offline  
Old 2008-07-29, 05:15   Link #24
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
You can also try to force the activation of the port, haven't tried that though:
Code:
sudo port -f activate fontconfig
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.
anime_layer is offline  
Old 2008-07-29, 12:39   Link #25
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
This is much more complex than I thought

Code:
COMPUTER:~ USER$ sudo rm /opt/local/etc/fonts/conf.avail/*.conf 
Password:
COMPUTER:~ USER$ sudo port uninstall fontconfig
Error: port uninstall failed: Registry error: fontconfig not registered as installed.
COMPUTER:~ USER$ sudo port install fontconfig
--->  Installing fontconfig 2.6.0_0+macosx
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/fonts.conf already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
COMPUTER:~ USER$ sudo rm /opt/local/etc/fonts/fonts.conf
COMPUTER:~ USER$ sudo port install fontconfig
--->  Activating fontconfig 2.6.0_0+macosx
Error: Target org.macports.activate returned: Image error: /opt/local/etc/fonts/fonts.dtd already exists and does not belong to a registered port.  Unable to activate port fontconfig.
Error: Status 1 encountered during processing.
Edit 1: It seems that font.dtd was the last error.

Edit 2: Wouldn't it be easier if someone just compiles it and then distributes? :P

Code:
COMPUTER:mplayer USER$ ./mplayer
MPlayer dev-SVN-r27365-4.0.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option ass at line 2
The fontconfig option can't be used in a config file.
Error parsing option fontconfig=yes at line 3
Warning unknown option embeddedfonts at line 4
I'll keep going with the commands and see if it still works or what, tho.

Edit 3: Nope.

Code:
COMPUTER:mplayer USER$ cp /opt/local/mplayer /Applications/MPlayer\ OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
cp: /opt/local/mplayer: No such file or directory

Last edited by Ryoujin; 2008-07-29 at 12:58.
Ryoujin is offline  
Old 2008-07-29, 13:31   Link #26
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
@Ryoujin
Usually MacPorts works really well. You had some bad luck with your MacPorts installation. ^^'

Congratulation! Seems like you compiled mplayer!
You could already use it from that directory and the command line. The rest is just copying the binary to the correct location.

I made a mistake with the last command. Just fixed in the first post. If you've already executed "sudo make install" then the correct command is:
Code:
sudo cp /opt/mplayer/bin/mplayer /Applications/MPlayer\ OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
Unfortunately, making a redistributable binary is not as easy. The binary you compiled this way is linked to all the dependencies you installed with macports. Anyone who would want to run that binary on their computer would have to have everything else installed, too. If you want to make a redistributable binary you also have to compile all dependencies specially. I'm not exactly certain how that works, either.
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.
anime_layer is offline  
Old 2008-07-29, 13:37   Link #27
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
It seems it compiled, but then I tried opening a random MKV file and I got an abnormal error. This is what the Console says

Code:
7/29/08 1:36:22 PM MPlayer OSX[27769] ===================== MPlayer OSX Started ===================== 
7/29/08 1:36:32 PM MPlayer OSX[27769] Path to MPlayer: /Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer 
7/29/08 1:36:32 PM MPlayer OSX[27769] Current directory: ‡Zx† 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: /Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -monitoraspect 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: 1.600000 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -vo 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: macosx:shared_buffer:device_id=0 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -ass 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -embeddedfonts 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -vf-add 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: screenshot 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -slave 
7/29/08 1:36:32 PM MPlayer OSX[27769] Arg: -identify 
7/29/08 1:36:33 PM MPlayer OSX[27769] Abnormal playback error. mplayer returned error code: 1
I trashed the preferences just in case and the error still comes up.
Ryoujin is offline  
Old 2008-07-29, 16:04   Link #28
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
Do you get any errors using the console?

With
Code:
/opt/mplayer/bin/mplayer "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv"
and
Code:
/opt/mplayer/bin/mplayer -monitoraspect 1.6 -vo macosx -ass -embeddedfonts -vf-add screenshot "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv"
?
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.
anime_layer is offline  
Old 2008-07-29, 16:10   Link #29
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
With the first one I get:

Code:
COMPUTER:~ USER$ /opt/mplayer/bin/mplayer "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv"
MPlayer dev-SVN-r27365-4.0.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option ass at line 2
The fontconfig option can't be used in a config file.
Error parsing option fontconfig=yes at line 3
Warning unknown option embeddedfonts at line 4
With the second one I get

Code:
COMPUTER:~ USER$ /opt/mplayer/bin/mplayer -monitoraspect 1.6 -vo macosx -ass -embeddedfonts -vf-add screenshot "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv"
MPlayer dev-SVN-r27365-4.0.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option ass at line 2
The fontconfig option can't be used in a config file.
Error parsing option fontconfig=yes at line 3
Warning unknown option embeddedfonts at line 4
It seems that both are the same thing.
Ryoujin is offline  
Old 2008-07-30, 08:47   Link #30
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
I've been trying to get my head around a redistributable mplayer build and I think I've made some progress.

First I've tried to build mplayer statically (--enable-static) but that kept failing. I've already heard that Apple deliberately crippled the osx build environment but I couldn't link it to static executables. They excluded the static build of the C runtime library so any attempt to build a static executable will fail. Though, if you really want to build a static executable you can to so by compiling a static version of that library yourself from the darwin sources.

Anyway, that the configure script failed with the error that it couldn't find inttypes.h didn't help much in finding the problem. When I finally figured out that my approach was flawed I could finally continue in the search of the right one.

Turns out that's just linking the custom libraries statically. But first you should compile against the osx SDK. I took the build script from the mplayer osx project as a starting point and played with the cflags and ldflags until it finally compiled (happy stories about gcc choking on the assembler code and configure picking up the newer fontconfig while the linker wants to link the older one from osx).

Also, libraries compiled under Leopard won't work with Tiger. There are some POSIX changes in Leopard that are not compatible with Tiger. If you want backward compatibility, you have to specifically compile them with the old POSIX functions.

Well then, to the static linking. Turns out osx will always prefer shared libraries but through stubborn digging I found the -search_paths_first option (actually -Wl,-search_paths_first if you add it as a ldflag). It makes the linker use the static libraries from a directory if there are no shared ones and not search all other directories for a shared one even if it already found the static library.

Don't know if that's the best approach but I ended up creating /sta/local/lib and coping all *.a files from /opt/local/lib to that folder and added it in front of all other search directories to the ldflags.

Turns out macports doesn't do a static version of liblzo2 so I had to make one myself (rather easy, but still...). Also, libfontconfig relies on libexpat but the linker apparently didn't know that and I had to include -lexpat to the extralibs.

Finally, otool -L only showed shared system libraries and the binary works on my friends laptop without macports installed!

Here's a test version of the gui with the binary included. I would be interested if it's working for everyone.
http://files.rubbishchute.net/animes...-rev4-test.dmg
Oh, and if you've skipped the text above, this is Leopard only and intel only. Compiling for Tiger and as an universal binary is still some pitas away.

@Ryoujin
Seems like your mplayer was built without fontconfig. Go back to your build directory and rerun ./configure. Check the output and see if it says fontconfig ... yes or no.
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.
anime_layer is offline  
Old 2008-07-30, 14:52   Link #31
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
Due to other reasons I'm going to reformat my computer tonight (unless something comes up), and I'll do everything again, hopefully this time it will go smoothly as it's supposed to
Ryoujin is offline  
Old 2008-07-31, 00:27   Link #32
Discerptor
ANIUE!111
 
 
Join Date: Oct 2006
anime_layer, this static build is <3. Marry me.
Discerptor is offline  
Old 2008-07-31, 01:11   Link #33
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
I wont be able to do this by myself. I formatted the computer (for other reasons), reinstalled everything, it seemed it was fine (I was still getting the same issues), but when I tried to open something

Code:
2008-07-31 01:06:38.096 MPlayer OSX[50636:20b] ===================== MPlayer OSX Started =====================
2008-07-31 01:06:38.472 MPlayer OSX[50636:20b] FONTCONFIG_PATH: /Applications/MPlayer OSX.app/Contents/Resources/fonts
2008-07-31 01:06:38.473 MPlayer OSX[50636:20b] Path to MPlayer: /Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
2008-07-31 01:06:38.473 MPlayer OSX[50636:20b] Arg: /Volumes/animeBOXongoing/animeONGOING/World Destruction/[Chihiro] World Destruction - 04.mkv
2008-07-31 01:06:38.474 MPlayer OSX[50636:20b] Arg: -monitoraspect
2008-07-31 01:06:38.474 MPlayer OSX[50636:20b] Arg: 1.600000
2008-07-31 01:06:38.474 MPlayer OSX[50636:20b] Arg: -vo
2008-07-31 01:06:38.475 MPlayer OSX[50636:20b] Arg: macosx:shared_buffer:device_id=0
2008-07-31 01:06:38.475 MPlayer OSX[50636:20b] Arg: -ass
2008-07-31 01:06:38.475 MPlayer OSX[50636:20b] Arg: -embeddedfonts
2008-07-31 01:06:38.476 MPlayer OSX[50636:20b] Arg: -vf
2008-07-31 01:06:38.476 MPlayer OSX[50636:20b] Arg: screenshot
2008-07-31 01:06:38.476 MPlayer OSX[50636:20b] Arg: -slave
2008-07-31 01:06:38.476 MPlayer OSX[50636:20b] Arg: -identify
Warning unknown option ass at line 2
The fontconfig option can't be used in a config file.
Error parsing option fontconfig=yes at line 3
Warning unknown option embeddedfonts at line 4
2008-07-31 01:06:38.528 MPlayer OSX[50636:20b] Abnormal playback error. mplayer returned error code: 1
2008-07-31 01:07:43.992 MPlayer OSX[50636:20b] ===================== MPlayer OSX Terminated =====================
So probably this is not meant to be done by someone with no experience with the terminal (this can't be done in a copy-paste style), at least the environment of my computer isn't set to make these things, no clue.

I'm going to re-format the computer to get rid of everything that was installed and then just use pre-made builds or something.
Ryoujin is offline  
Old 2008-07-31, 03:52   Link #34
Nonezumi
Member
 
Join Date: Apr 2007
Quote:
Originally Posted by Ryoujin View Post
I wont be able to do this by myself. I formatted the computer (for other reasons), reinstalled everything, it seemed it was fine (I was still getting the same issues), but when I tried to open something

Code:
Warning unknown option ass at line 2
The fontconfig option can't be used in a config file.
Error parsing option fontconfig=yes at line 3
Warning unknown option embeddedfonts at line 4
So probably this is not meant to be done by someone with no experience with the terminal (this can't be done in a copy-paste style), at least the environment of my computer isn't set to make these things, no clue.

I'm going to re-format the computer to get rid of everything that was installed and then just use pre-made builds or something.
You still hadn't got Fontconfig installed, or at least in a place where the configure program was searching; 'tis all. Otherwise, looks like you were very close indeed!
Nonezumi is offline  
Old 2008-07-31, 09:14   Link #35
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
Quote:
Originally Posted by Nonezumi View Post
You still hadn't got Fontconfig installed, or at least in a place where the configure program was searching; 'tis all. Otherwise, looks like you were very close indeed!
Yeah, the first time I ran thru the command it gave me the same error I got the first time (before formatting the computer). I had to delete the files that kept giving errors (as before too) and then it installed (at least it said that it was active). Just to make sure (at that time) I kept running the sudo port install command and it kept saying that it was skipping fontconfig because it was already installed and active.

I also made sure that every single library and dependency was installed correctly, but when I compiled mplayer that bunch of text that comes up while compiling was randomly giving some warning and error messages, I had no clue if they were normal or what.

Eitherway, I might stick with that static build that you made (haven't tried it yet, tho).
Ryoujin is offline  
Old 2008-08-03, 20:37   Link #36
Takeru
Jag äter idioter
*Graphic Designer
 
 
Join Date: Dec 2005
Location: Vereinigte Staaten
Age: 34
Send a message via AIM to Takeru
Quote:
Originally Posted by anime_layer View Post
Here's a test version of the gui with the binary included. I would be interested if it's working for everyone.
http://files.rubbishchute.net/animes...-rev4-test.dmg
Oh, and if you've skipped the text above, this is Leopard only and intel only. Compiling for Tiger and as an universal binary is still some pitas away.
Works fantastically! Love the Preferences centre.

Also, I'm just curious as to why when I click a dropdown menu or resize the video, does the entire program stop. It's not frozen, it just stops doing anything until I quit clicking things. I've noticed this will all MPlayer OS X builds, not just yours.
__________________
Takeru is offline  
Old 2008-08-05, 05:06   Link #37
safusu
Junior Member
 
Join Date: Jul 2008
Got it to work, thanks for the awesome guide. Using the rev 4 test btw

Man, I LOVE the new prefs pane! Its face lift was long overdue.
safusu is offline  
Old 2008-08-05, 16:10   Link #38
Gamer5389
Junior Member
 
Join Date: Aug 2007
I currently have the screenshot option to save to desktop but when I use the command, no new files appear on the desktop. The program slows down when using the screenshot command repeatedly so is the program saving the pictures somewhere else?
Gamer5389 is offline  
Old 2008-08-05, 17:28   Link #39
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
Quote:
Originally Posted by Gamer5389 View Post
I currently have the screenshot option to save to desktop but when I use the command, no new files appear on the desktop. The program slows down when using the screenshot command repeatedly so is the program saving the pictures somewhere else?
There's a problem with the subtitle filter in my newest version. If you take a look at your MPlayerOSX.log it probably contains the lines:
Code:
Could not open libavcodec PNG encoder
Couldn't open video filter 'screenshot'.
Not sure what's causing it, though. I'll have to look into it.
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.
anime_layer is offline  
Old 2008-08-05, 19:32   Link #40
Ryoujin
What?
 
 
Join Date: Nov 2007
Location: The house besides yours
Age: 40
Could you keep a the first post updated with the latest compiled version that you make? I'm not sure if it's being pointed in the other thread (in the first post) as well.
Ryoujin is offline  
 

Tags
wiki candidate

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 14:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.