AnimeSuki Forums

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

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

Notices

 
 
Thread Tools
Old 2009-10-11, 02:41   Link #321
pigoz
YUKI.N>
 
 
Join Date: Mar 2009
Location: Milan, Italy
Send a message via MSN to pigoz Send a message via Skype™ to pigoz
Thank you, works great! can't comment on the CPU usage since I'm using a 64bit mplayer compiled by myself.

Adrian: if you allow to change the mplayer for common users too I will maintain an mplayer.git x86_64 binary distribution for sure.

Last edited by pigoz; 2009-10-11 at 05:46.
pigoz is offline  
Old 2009-10-11, 10:07   Link #322
Cpuroast
Member
 
 
Join Date: Mar 2009
CPU usage

Quote:
Originally Posted by Cpuroast View Post
I just tried Rev12-Test2 on Snow Leopard.

It seems that CPU usage during playback nearly doubles in Rev12-Test2 compared to Rev11. Playing back H.264. Haven't tried files encoded in other formats.

This is true for the MT and non-MT options.

I'll stick with Rev11 for now.
Ended up, doing a merge/replace of the mplayer binaries from rev11 into rev12 Test2 and that fixed the high cpu usage and still allowed me to keep the Snow Leopard fixes.

So it's not the front end that is to blame. it's the mplayer binaries from rev12 Test2 that use a lot more cpu power than they did before.

Maybe something is different with the compiling this time, some flag somewhere.

Keep up the great work !!!
Cpuroast is offline  
Old 2009-10-11, 20:28   Link #323
JayBlanc
Junior Member
 
Join Date: Jul 2009
Quote:
Originally Posted by anime_layer View Post
* This is still 32bit. I don't think 64bit is very pressing but I'll look into it. It should also be possible to switch back to the 32bit version for the binary codecs (which aren't 64bit). I think that will need changes to Extended to select the right MPlayer architecture to use.
Just did a test compile using the http://pigoz.wordpress.com/2009/09/0...mplayer-redux/ method and configured to a x86_64 build. Then just did a dropin replacement in your distributed app package.

Works perfectly in embedded window playback! Significant CPU use drop. Being a slightly newer SVN build brings feature improvements as well, such as using the 'D' key to toggle de-interlacing on and off. Biggest improvement for me is it now works fine with Mpeg TS that has aspect ratio changes.

The fun part of this is demonstrating that I can run a x86_64 mplayer binary, with video outputted into the window of the i386 gui app. Much in the same way that QuickTime X drops back to i386 Quick Time 7, you should have no problems running a different arch mplayer binary outputting to the GUI's shared window.

Can I suggest using the same method as with falling back on the multithreaded binary... Allow use of the 64bit decoder, then fall-back on the i386 decoder if it fails (ie, no codec available).
JayBlanc is offline  
Old 2009-10-12, 04:56   Link #324
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
Here are some numbers:

Code:
CPU: Intel Core2Quad Q9550 2.83GHz
VIDEO:  [H264]  1920x1080  24bpp  23.976 fps

                    (% of decoding time)
single-threaded:
rev12-test2 i386:   172% (cpu extensions disabled)
rev12-test3 i386:   100%
rev12-test3 x86_64:  80%

quad-threaded:
rev12-test3 i386:    49%
rev12-test3 x86_64:  25%
And here you can try it out yourself:
http://mplayerosxext.googlecode.com/...ev12-test3.dmg

Oh, and is there anyone caring for PPC support? The compressed build just got 29MB bigger again...
__________________
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 2009-10-12, 09:46   Link #325
Cpuroast
Member
 
 
Join Date: Mar 2009
Test3 doesn't work, libraries referenced from the wrong location.

Quote:
Originally Posted by anime_layer View Post
Here are some numbers:

Code:
CPU: Intel Core2Quad Q9550 2.83GHz
VIDEO:  [H264]  1920x1080  24bpp  23.976 fps

                    (% of decoding time)
single-threaded:
rev12-test2 i386:   172% (cpu extensions disabled)
rev12-test3 i386:   100%
rev12-test3 x86_64:  80%

quad-threaded:
rev12-test3 i386:    49%
rev12-test3 x86_64:  25%
And here you can try it out yourself:
http://mplayerosxext.googlecode.com/...ev12-test3.dmg

Oh, and is there anyone caring for PPC support? The compressed build just got 29MB bigger again...
Test3 doesn't work, libraries referenced from the wrong location.

<Info>: dyld: Library not loaded: /Users/adrian/dev/mplayer/mplayer/usrs/local/lib/libmad.0.dylib
Cpuroast is offline  
Old 2009-10-12, 12:15   Link #326
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
*doh* I tried to make sure by checking everything with otool but it turns out only ppc/x86_64 where affected and the command line defaults to i386.

rev12-test4 fixes the issue. No need to update if you're only Intel 32bit.

http://mplayerosxext.googlecode.com/...ev12-test4.dmg
__________________
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 2009-10-12, 12:40   Link #327
Eternal Phoenix
Junior Member
 
Join Date: Sep 2007
Quote:
Originally Posted by JayBlanc View Post
Just did a test compile using the http://pigoz.wordpress.com/2009/09/0...mplayer-redux/ method and configured to a x86_64 build. Then just did a dropin replacement in your distributed app package.
Any chance that some generous user could compile a lovely new Snow Leopard-compatible MPlayer build and upload it for those of us who don't know how to code to drop into our OSX Extended packages? Pleases and thank yous as per usual.
Eternal Phoenix is offline  
Old 2009-10-12, 13:49   Link #328
chikorita157
ひきこもりアイドル
*IT Support
 
 
Join Date: Feb 2009
Location: New Jersey, United States
Age: 25
Send a message via Skype™ to chikorita157
Quote:
Originally Posted by Eternal Phoenix View Post
Any chance that some generous user could compile a lovely new Snow Leopard-compatible MPlayer build and upload it for those of us who don't know how to code to drop into our OSX Extended packages? Pleases and thank yous as per usual.
I have already compiled a 64-bit version of Mplayer that is compatible with Snow Leopard a while ago. Here is the link to it. To use it, open the contents of MPlayer OS X Extended > Contents > Resources > External Binaries > mplayer.app (Open Contents) > MacOS and replace the mplayer from the zip to the mplayer.app. Launch MPlayer OS X Extended and go to preferences and change the window to Core Video Separate Window and it should work.

I will upload a new build once I get home since the compiling tools are on my other Macbook Pro.

Whoops... It seems that that build does require a new version of libiconv.2.dylib which I forgot to include. I will update that build with the required libraries when I return. If you still impatient, just do step 1 from this and try it again. It should work afterwards.
__________________

Last edited by chikorita157; 2009-10-12 at 14:00.
chikorita157 is offline  
Old 2009-10-12, 16:01   Link #329
Eternal Phoenix
Junior Member
 
Join Date: Sep 2007
Lovely, thanks. According to that article you mentioned, newer builds shouldn't require one to change the video output, so that should fix itself in the new build.
Eternal Phoenix is offline  
Old 2009-10-12, 16:08   Link #330
pigoz
YUKI.N>
 
 
Join Date: Mar 2009
Location: Milan, Italy
Send a message via MSN to pigoz Send a message via Skype™ to pigoz
Quote:
Originally Posted by Eternal Phoenix View Post
Any chance that some generous user could compile a lovely new Snow Leopard-compatible MPlayer build and upload it for those of us who don't know how to code to drop into our OSX Extended packages? Pleases and thank yous as per usual.
As promised I'm starting to get it moving: http://code.google.com/p/mplayerosx-builds/
It probably misses some audio filters and stuff (like BS2B), as the times comes by I will build it with all the libraries and flags adrian is using.

It is core 2 duo only, 64bit only and snow leopard only.
pigoz is offline  
Old 2009-10-12, 16:38   Link #331
Cpuroast
Member
 
 
Join Date: Mar 2009
Quote:
Originally Posted by pigoz View Post
As promised I'm starting to get it moving: http://code.google.com/p/mplayerosx-builds/
It probably misses some audio filters and stuff (like BS2B), as the times comes by I will build it with all the libraries and flags adrian is using.

It is core 2 duo only, 64bit only and snow leopard only.
Just tried swapping in your mplayer build into Rev12 Test4.

It crashes at startup:

Dyld Error Message:
Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /Applications/MPlayer OSX Extended.app/Contents/MacOS/lib/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

Just thought I'd let you know.
Cpuroast is offline  
Old 2009-10-12, 16:41   Link #332
chikorita157
ひきこもりアイドル
*IT Support
 
 
Join Date: Feb 2009
Location: New Jersey, United States
Age: 25
Send a message via Skype™ to chikorita157
Quote:
Originally Posted by Cpuroast View Post
Just tried swapping in your mplayer build into Rev12 Test4.

It crashes at startup:

Dyld Error Message:
Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /Applications/MPlayer OSX Extended.app/Contents/MacOS/lib/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

Just thought I'd let you know.
This is a result because the MPlayer build uses a newer version of libiconv.2.dylib built by Macports than the one that came with the Rev12 Test4. Installing libiconv from Macports will solve this issue... but the libraries really need to be updated...
__________________
chikorita157 is offline  
Old 2009-10-12, 16:47   Link #333
Cpuroast
Member
 
 
Join Date: Mar 2009
Quote:
Originally Posted by anime_layer View Post
*doh* I tried to make sure by checking everything with otool but it turns out only ppc/x86_64 where affected and the command line defaults to i386.

rev12-test4 fixes the issue. No need to update if you're only Intel 32bit.

http://mplayerosxext.googlecode.com/...ev12-test4.dmg
Hi Adrian,

Rev12 Test4 running in x86-64 on a Core2 Duo in 10.6.1 seems to be behaving normally, good stuff, haven't seen any dramatic reductions in cpu usage compared to rev12 Test2 merged with rev11's mplayer binaries. But I guess it only shows on more intensive 1080p files.

Anyways, I was also curious if it was normal that during playback, mplayer osx extended spawns 2 mplayer processes and not just 1, I know earlier versions would only spawn 1, but Rev11 and up spawn 2.

Keep up the great work!!!
Cpuroast is offline  
Old 2009-10-13, 01:59   Link #334
pigoz
YUKI.N>
 
 
Join Date: Mar 2009
Location: Milan, Italy
Send a message via MSN to pigoz Send a message via Skype™ to pigoz
Quote:
Originally Posted by Cpuroast View Post
Just tried swapping in your mplayer build into Rev12 Test4.

It crashes at startup:

Dyld Error Message:
Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /Applications/MPlayer OSX Extended.app/Contents/MacOS/lib/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

Just thought I'd let you know.
thats quite strange... running otool on my binary tells me it should work.
@executable_path/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)

Are you sure you used my version and not chikorita157's one? My version includes in the application bundle all the necessary libraries needed for mplayer to run.
Can someone else confirm it is not working?

Last edited by pigoz; 2009-10-13 at 02:11.
pigoz is offline  
Old 2009-10-13, 09:26   Link #335
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
@pigoz
Neat, thanks for your providing the build!

You also need to change the link paths in the individual libraries, I still see references to /opt/local when calling:
$ otool -L mplayer.app/Contents/MacOS/lib/* | grep /opt/local

I quickly adapted the script I use to change the install names:
http://mplayerosx.sttz.ch/downloads/...tall_names.zip

Running this on the libraries allows me to use your binary:
$ ./mposx_change_install_names mplayer.app/Contents/MacOS

You can find the full script in the Extended SVN under /Scripts/mposx_install which also gathers all necessary libraries automatically but which also contains some Extended-related functionality.
__________________
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 2009-10-13, 09:49   Link #336
pigoz
YUKI.N>
 
 
Join Date: Mar 2009
Location: Milan, Italy
Send a message via MSN to pigoz Send a message via Skype™ to pigoz
@adrian: thank you very much; it was the first time using install_name_tool and of course failed at it
pigoz is offline  
Old 2009-10-16, 18:17   Link #337
franz2
you are the blood
 
 
Join Date: Feb 2009
Location: Midwest, USA
Okay guys, I see things improved a lot since my last post here, great. I must unfortunately come with a doubt:

So I am watching a series with linked .mkvs (you know, separate ones for the OP and ED), and while the segment pre-OP plays fine, as soon as the OP starts the sound gets muted, and I have to restart the player and try to skip to after the OP if I want to watch the rest of the episode.

I'm using the rev12-test4 UI with the mplayer-2009-10-13 binary from mplayerosx-builds. (10.6.1, core 2 duo macbook pro)

I was previously using rev11 with a self compiled binary, and while having it play on the same window didn't work, the sound did.

So, anyone knows what's up? (oh just btw, the series is the CoalGirls release of Nogizaka Haruka)
__________________
crying at anime

Last edited by franz2; 2009-10-16 at 21:29.
franz2 is offline  
Old 2009-10-17, 03:44   Link #338
pigoz
YUKI.N>
 
 
Join Date: Mar 2009
Location: Milan, Italy
Send a message via MSN to pigoz Send a message via Skype™ to pigoz
Do you hear audio if you play only the OP file?

I'll get the files and try to reproduce it. It has probably something to do with FLAC.

EDIT
This is the error message:

Code:
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[flac @ 0x100717800]switching channel layout mid-stream is not supported
[flac @ 0x100717800]decode_frame() failed
Either the files use different channel layouts, or mplayer with linking segments doesn't work well with FLAC; from what I have been told on irc FLAC has only one channel configuration possible for each number of channels (in our case its both 2), so i would exclude the possibility of a problem in the files.

EDIT2
I tried Kovensky's mplayer build for Windows and it has the same problem. At least its not my fail this time.

EDIT3
It was fixed by the mplayer dev, a patch will be out tomorrow probably.

EDIT4
mplayer-2009-10-20 on google code fixes the problem

Last edited by pigoz; 2009-10-20 at 07:57.
pigoz is offline  
Old 2009-10-19, 22:12   Link #339
LordMelkor
Junior Member
 
Join Date: Jul 2006
Quote:
Originally Posted by anime_layer View Post
Well, sorry for wanting to have something to eat and therefore prioritizing projects with a possible income.
Respect.

The only reason I asked was cuz you hadn't made a post in the thread in over 3.5 months.
LordMelkor is offline  
Old 2009-10-20, 21:26   Link #340
franz2
you are the blood
 
 
Join Date: Feb 2009
Location: Midwest, USA
Quote:
Originally Posted by pigoz View Post
EDIT4
mplayer-2009-10-20 on google code fixes the problem
Perfect! Just tried it and it worked great.
__________________
crying at anime
franz2 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 13:37.


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