2008-07-28, 20:29 | Link #21 | ||
ANIUE!111
Join Date: Oct 2006
|
Quote:
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:
|
||
2008-07-28, 21:20 | Link #22 |
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. |
2008-07-29, 12:39 | Link #25 |
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 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 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. |
2008-07-29, 13:31 | Link #26 |
Senior Member
Graphic Designer
|
@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
__________________
|
2008-07-29, 13:37 | Link #27 |
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 |
2008-07-29, 16:04 | Link #28 |
Senior Member
Graphic Designer
|
Do you get any errors using the console?
With Code:
/opt/mplayer/bin/mplayer "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv" Code:
/opt/mplayer/bin/mplayer -monitoraspect 1.6 -vo macosx -ass -embeddedfonts -vf-add screenshot "/Users/USER/Downloads/[Chihiro]_Sekirei_04_[h264][00B71E51].mkv"
__________________
|
2008-07-29, 16:10 | Link #29 |
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 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 |
2008-07-30, 08:47 | Link #30 |
Senior Member
Graphic Designer
|
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.
__________________
|
2008-07-31, 01:11 | Link #33 |
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 ===================== 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. |
2008-07-31, 03:52 | Link #34 | |
Member
Join Date: Apr 2007
|
Quote:
|
|
2008-07-31, 09:14 | Link #35 | |
What?
Join Date: Nov 2007
Location: The house besides yours
Age: 40
|
Quote:
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). |
|
2008-08-03, 20:37 | Link #36 | |
Jag äter idioter
Graphic Designer
|
Quote:
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.
__________________
|
|
2008-08-05, 16:10 | Link #38 |
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?
|
2008-08-05, 17:28 | Link #39 | |
Senior Member
Graphic Designer
|
Quote:
Code:
Could not open libavcodec PNG encoder Couldn't open video filter 'screenshot'.
__________________
|
|
Tags |
wiki candidate |
|
|