当前位置: 首页 > 工具软件 > MPlayer OS X > 使用案例 >

Mplayer/mencoder as application bundle for Mac OS X?

督嘉言
2023-12-01


Selur
22nd April 2012, 15:39
Does any one know a place where to get a relatively up-to-date application bundle (.app) for mencoder&mplayer on Mac OS X?

Or alternatively:
- a link/guide on how to compile mplayer&mencoder statically on Mac OS X?
or
- a link/guide on how to compile mplayer&mencoder on Mac Os X and create a stand alone application bundle?

--------
background: I would like to use the created application bundle to add it to my Hybrid application bundle to have a standalone Hybrid version for Mac OS X,...

Cu Selur
smok3
22nd April 2012, 20:41
from memory;

./configure --prefix=${SOURCE} --cc=clang --as=yasm && make -j && make install

not sure what you mean with application bundle.

p.s. i have fresh bins on other machine and i can share if you want to compare (but not until next week).

edited.
Selur
22nd April 2012, 20:43
application bundle = .app file that includes the binaries and all required dynamic libraries
smok3
22nd April 2012, 20:47
application bundle = .app file that includes the binaries and all required dynamic libraries

ouch, is that what it is ? :)
Selur
22nd April 2012, 20:47
afaik yes :)
smok3
22nd April 2012, 21:20
actualy it was quick to redo, here you go
https://sourceforge.net/projects/resizecalc/files/osxffdrop/experimental/mplayer_mencoder_osx.7z/download
(hopefully this is static enough, not sure about x11 stuff)

otool -L mplayer 
mplayer:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/usr/X11/lib/libpng15.15.dylib (compatibility version 20.0.0, current version 20.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
/usr/X11/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.2.0)
/usr/X11/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current version 6.4.0)
/usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/usr/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/usr/X11/lib/libXss.1.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/X11/lib/libXv.1.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/X11/lib/libXinerama.1.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/X11/lib/libXxf86vm.1.dylib (compatibility version 2.0.0, current version 2.0.0)
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.7.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.15.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.20.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.7.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1138.23.0)

file mplayer 
mplayer: Mach-O 64-bit executable x86_64

p.s. and here are some decent instructions on how to make a bundle;
http://stackoverflow.com/questions/1596945/building-osx-app-bundle
Selur
22nd April 2012, 21:37
Thanks, will have a look at the instructions tomorrow, thanks for the builds. :)

----
sadly the build does not help:
macmini:bin selur$ ./mplayer 
dyld: Library not loaded: /usr/X11/lib/libpng15.15.dylib
Referenced from: /Users/selur/Downloads/mplayer_mencoder_osx/bin/./mplayer
Reason: image not found
Trace/BPT trap
macmini:bin selur$ ./mencoder 
dyld: Library not loaded: /usr/X11/lib/libpng15.15.dylib
Referenced from: /Users/selur/Downloads/mplayer_mencoder_osx/bin/./mencoder
Reason: image not found
Trace/BPT trap
(deinstalled macports to be sure my system is more like that of normal users)
smok3
22nd April 2012, 22:00
right, how about this two .app bundles?
https://sourceforge.net/projects/resizecalc/files/osxffdrop/experimental/mplayer_mencoder_bundle.app.7z/download

notes:
i used ( http://macdylibbundler.sourceforge.net/ ) something like:
"dylibbundler -od -b -x ./mplayer.app/Contents/MacOS/mplayer -d ./mplayer.app/Contents/libs/" (manually prepared app tree)
Selur
22nd April 2012, 22:10
that one works fine :)
Nice :)
smok3
22nd April 2012, 22:12
ok, so there seems to be at least 4 options:
a. a bundle like this
b. force users to install x11 from xcode disk or app store
c. a combo of this two, like: 1st check if user has x11, else use bundled ?
d. fancy script that would download, compile, install everything :P
Selur
22nd April 2012, 22:15
I'll probably build a bundle. :)

1. install macports
2. build mplayer-devel to get all the dependencies
3. check out current mplayer source code
4. build the current code
5. make a bundle structure per hand 
6. use macdynlibbundler to add the libraries to the bundle

Cu Selur
smok3
22nd April 2012, 22:16
how about you test this one, so i can safely include it in future versions of ffdrop as well? (or is it missing something?)
Selur
22nd April 2012, 22:28
normally I include: at least libass, xvid, x264, lame, flac, mp3lame, dts, aac, libvorbis, libpng ;)
think I got it working :) -> http://forum.videohelp.com/threads/345401-Hybrid-on-mac?p=2157063&viewfull=1#post2157063
smok3
23rd April 2012, 08:59
I see & good.
Selur
1st May 2012, 11:00
I give up,... :( 
I always end up with or comparable output:
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /Users/herve/Downloads/macstuff/MacOS/../libs/libfontconfig.1.dylib
Reason: Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Trace/BPT trap
see: http://forum.videohelp.com/threads/345533-MacPorts-mplaver-devel-portable-app

No clue how to fix the:
libfontconfig.1.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
part,..

-> if anyone knows how to compile and bundle (with all the bells an whistles) mplayer&mencoder such that is portable, please post.
-> got it working: https://github.com/ps3mediaserver/ps3mediaserver/tree/master/contrib has some nice build scripts,..

Cu Selur
 类似资料:

相关阅读

相关文章

相关问答