[Solved] Mencoder Engine not loaded

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Ruddeger
Posts: 2
Joined: Thu Dec 31, 2020 7:12 pm

[Solved] Mencoder Engine not loaded

Post by Ruddeger »

Hiya,

I'm on a 2015 iMac running Big Sur.

I realize that Mencoder is not particularly important & that I've generally been able to run most files I've needed through UMS but I still would like to fix this issue so that I know the system is optimized & that when I do run into issues it's not because Mencoder isn't being recognized.
I feel I've done everything I can to make sure Mencoder/Mplayer is installed properly & I have uninstalled/reinstalled multiple versions of UMS.. older versions up to the current beta.

On the Transcoding Settings page of UMS the Mencoder Video header (& Mencoder Web Video) have the warning symbol next to them & when selected the display shows:
"This engine is not loaded!
Transcoding engine MEncoder Video is not available because it failed with the following error:Unknown error"

I've dug through several web opages & forums trying to understand Mplayer/Mencoder & see if I should be doing something else to install them but all roads have led to "install through HomeBrew" which I have, apparently successfully, at least according to HomeBrew telling me it's installed. Also, I have verified that it is the latest version of Mplayer.

Any ideas? Thanks for any help.
User avatar
mik_s
Moderator
Posts: 1115
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Mencoder Engine not loaded

Post by mik_s »

I'm sure the issue is with apple no longer allowing certain programs running on their newest OS.
IIRC Mencoder is currently a 32 bit only program and these are being disallowed.

I think I have seen a better explanation on this forum somewhere but I believe that was the reason.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Ruddeger
Posts: 2
Joined: Thu Dec 31, 2020 7:12 pm

Re: Mencoder Engine not loaded

Post by Ruddeger »

Thank you mik_s.

Spurred by your reply I did some searching & have seen peeps confirming that in no way is 32 bit supported anymore & I haven't been able to 100% confirm that Mplayer is 32 bit but obviously that seems very likely.

Best regards!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Mencoder Engine not loaded

Post by SubJunk »

Our MEncoder for macOS should be 64-bit now unless you're using the "pre-10.15" build. Can you atach logs?
kirk_hammett
Posts: 3
Joined: Tue Jan 05, 2021 7:03 am

Re: Mencoder Engine not loaded

Post by kirk_hammett »

I do have the same issue and the logfile states an error whilst loading usr/local/opt/x264/lib/libx264.160.dylib
All was fine until I upgraded to V10.x lately. A downgrade to V9.x does not help :cry:

Logfile extract:
DEBUG 2021-01-04 19:45:13.898 [main] Checking transcoding engine MEncoder Video
TRACE 2021-01-04 19:45:13.898 [main] Registering custom executable path for transcoding engine MEncoder Video
TRACE 2021-01-04 19:45:13.899 [main] Executing "/Applications/Universal Media Server.app/Contents/Resources/osx/mencoder -info:help"
TRACE 2021-01-04 19:45:13.903 [Process Terminator] ProcessTerminator scheduled shutdown of process "/Applications/Universal Media Server.app/Contents/Resources/osx/mencoder" in 30000 milliseconds
TRACE 2021-01-04 19:45:13.903 [Process Terminator] ProcessTerminator is waiting 29999 milliseconds
TRACE 2021-01-04 19:45:13.905 [SPW "mencoder" consumer] Process output: dyld: Library not loaded: /usr/local/opt/x264/lib/libx264.160.dylib
TRACE 2021-01-04 19:45:13.905 [Process Terminator] ProcessTerminator unscheduled process "/Applications/Universal Media Server.app/Contents/Resources/osx/mencoder" (30430)
TRACE 2021-01-04 19:45:13.905 [SPW "mencoder" consumer] Process output: Referenced from: /Applications/Universal Media Server.app/Contents/Resources/osx/mencoder
TRACE 2021-01-04 19:45:13.905 [Process Terminator] ProcessTerminator is waiting for new tickets
TRACE 2021-01-04 19:45:13.905 [SPW "mencoder" consumer] Process output: Reason: image not found
WARN 2021-01-04 19:45:13.905 [main] Transcoding engine "MEncoder Video" is not available
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Mencoder Engine not loaded

Post by SubJunk »

Ah that error message is helpful. That indicates that our version of MEncoder is not fully statically built, which is my fault, but in my defense it is really hard :) I'll try to fix it
kirk_hammett
Posts: 3
Joined: Tue Jan 05, 2021 7:03 am

Re: Mencoder Engine not loaded

Post by kirk_hammett »

Just as a follow up (but I guess you were not able to find a fix yet ;) ) the issue is also present with the official 10.0.0 release.
If I could try to install something in the OS manually to narrow the root-cause down, let me know.
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Mencoder Engine not loaded

Post by SubJunk »

Thanks for confirming. I do intend to fix this, and will post in here when I have a test build
gili
Posts: 1
Joined: Tue Feb 09, 2021 10:21 am

Re: Mencoder Engine not loaded

Post by gili »

Hello
I have the same problem
Osx 11.2 (Big Sur)
UMS 10.0.1
and the error is
This engine is not loaded: Transcoding engine MEncoder Video is not available because it failed with the following error:Unknown error

I have installed the version "Universal Media Server macOS 10.15+ (disk image)"

Please help
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Mencoder Engine not loaded

Post by SubJunk »

I have started working on this. Will post when there's something to test
Post Reply