MPlayer & MEncoder SB67 (Updated 14 Feb 2021)

MPlayer logo

Introduction:

Here are builds of MPlayer and MEncoder for Windows and macOS that I had requests for.
My main focus with these builds is on MEncoder stability, since that is what we use for the media server transcoding, so each release is thoroughly tested to transcode and mux from and to many formats.
Specifically, the stability of outputting H.264 via x264 and MPEG-2 with AC-3 and DTS variants inside MPEG-PS, and WMV with WMA inside ASF, as well as handling different DVD and subtitle inputs.
I test each build for several different things before release, and since Universal Media Server also uses these builds there are many testers who report any bugs which I then fix.

Download for Windows:

Download for macOS:

Older Downloads:

SB66 (macOS)
SB64
SB63
More

Changelog:

2021-02-14 – SB67 for macOS

  • Fixed x264 dependency

2020-07-28 – SB66 for macOS

  • First release for macOS

2016-05-07 – SB65

  • Updated x264 to r2695, which improves speed and quality

2015-10-28 – SB64

  • Updated x264 to r2638
  • Updated fontconfig to 2.11.92

2015-01-22 – SB63

  • Synchronised with r37363, which fixed audio with DVD sources
  • Updated FFmpeg to f845ae0

More

50 Comments

  1. Thx ๐Ÿ™‚ works great!!! ๐Ÿ™‚

  2. Hi Subjunk,

    what is here improved performance new cpu or code or what? โ—ฆImproved CPU compatibility

  3. SubJunk

    July 20, 2011 at 9:52 am

    @Master: RTM is enabled which means it supports more CPUs ๐Ÿ™‚

  4. quick question… i noticed no mencoder_mt file in build since Subjunk Ps3mediaserver SB21. Just updated to latest build which includes this latest mencoder build. is the MT file no longer necessary? Also i have an AMD dual core processor, Sherpyas had intel and AMD optimized version. Does that no longer matter either?
    Reason why i ask is because when streaming a DVD to a PS3 via PS3Mediaserver, when Mencoder is set to use Multiple cores, i get pixelation. When deselecting that option, it works fine. In both scenarios, in the Common Transcode settings it is set to use 2 cores. I guess it seems like both are being used.
    Please let me know any thoughts, thanks.

  5. SubJunk

    October 3, 2011 at 10:21 am

    @strongbow: Yes, mencoder_mt is no longer needed, since they were merged together. The advantages offered by using a CPU-specific build like Intel/AMD are slim so I don’t offer them.
    For support on the pixelation issue I suggest posting in this thread: http://www.ps3mediaserver.org/forum/viewtopic.php?f=14&t=8883

  6. I suppose there is a bug in SB16. It plays high10 profile for just 1-2 seconds and then mplayer crashes. Can any one check this out and confirm?

  7. Thanks for the builds and updating regularly.
    Yours,
    Tijn

  8. SubJunk

    December 4, 2011 at 9:48 am

    @Tijn: Thanks ๐Ÿ™‚

  9. Thanks for builds.Will it be possible to use mplayer2 sources for compilation.Mplayer2 has some advantages over vanilla mplayer.

  10. Hello SubJunk,

    just wanted to say thank you for providing theses builds! I used to use the Sherpya builds too, but as they became more unfrequent I had to look for an alternative :). I use your builds in my program “AMT – Auto Movie Thumbnailer”.

    http://www.amt.cc

    Thanks a lot and Best Regards
    Karsten

  11. SubJunk

    February 18, 2012 at 12:36 pm

    @KaFu: Great! Thanks for letting me know ๐Ÿ™‚

  12. You’ve lost the Hebrew subtitle support for RTL in builds after SB25! why didn’t you keep it??

  13. sorry – please ignor my last comment – works great with new build for pms!

  14. SVN http://spirton.com/svn/MPlayer-SB/ seems to be missing some updates:

    ————————————————————————
    r16 | spirton | 2012-02-28 16:09:16 -0800 (Tue, 28 Feb 2012) | 1 line

  15. Tried to create a Linux build from your SVN repository.

    svn propset -R svn:eol-style native *
    find * -name ‘*.sh’ | xargs svn propset svn:executable

  16. SubJunk

    April 2, 2012 at 12:45 pm

    @quietdragon: I will be releasing a new version today so I will update it then, thanks

  17. Just wanted to say thanks for sharing these builds ๐Ÿ™‚

  18. SubJunk

    April 20, 2012 at 10:02 am

    Cheers Selur ๐Ÿ™‚

  19. found a problem with the latest build, when trying to extract an audio as raw:
    mencoder -lavdopts threads=8 -mc 0 -aid 1 -ovc frameno -oac copy “G:\Hybrid\test – clips\test.avi” -of rawaudio -o “D:\Encoding Output\test__aid_1__09_35_53_291_01.mp3”
    your builds loop for some streams with:
    Skipping frame!
    Pos: 17.2s 35089f (101%) 2118.39fps Trem: 0min 0mb A-V:0.000 [0:120]

    Skipping frame!
    Pos: 17.2s 35090f (101%) 2118.45fps Trem: 0min 0mb A-V:0.000 [0:120]
    or similiar,…

    older builds work fine

  20. uploaded the .avi I used for testing to: http://www.embedupload.com/?d=1GDGHGIQKG
    (not sure if this is due to a change in the mencoder code or due to something you changed,..)

  21. Which one the current version with libcdio enable?

  22. SubJunk

    April 29, 2012 at 10:42 pm

    @Ricky: I will try to add libcdio support in SB32

  23. Excellent, I’ll wait for SB32.

  24. Dear SubJunk,

    Uhm, might be my mistake but…. MPlayerMEncoder-SB32.zip does not download, it kicks me back to the main article about it.

    Greets,
    Thanks for builds

  25. Ricky Subagyo

    May 6, 2012 at 2:58 am

    Link was fixed, and libcdio are working like charm. Thank you Subjunk

  26. SubJunk

    May 21, 2012 at 11:31 pm

    @Ricky: Great, you’re welcome ๐Ÿ™‚

  27. SB33 is much appreciated :)!

  28. For me it seems like SB33 is scanning the font cache on every startup. Anyone else experiencing this issue?

  29. Did some more testing…

    On first startup MPlayer.exe scans the font directory and tries to cache the results. It saves the results to the dir “LOCAL_APPDATA_FONTCONFIG_CACHE” as defined in fonts.conf. Lets say MPlayer is located in

    c:\test\mplayer.exe
    then the font cache is saved in the directory
    c:\test\LOCAL_APPDATA_FONTCONFIG_CACHE\

    Now lets say I’ve replaced the SMPlayer instance with SB33, then the MPlayer is located (on my Win7-64bit) at
    C:\Program Files (x86)\SMPlayer\mplayer\mplayer.exe
    and the font cache should be created at
    C:\Program Files (x86)\SMPlayer\mplayer\LOCAL_APPDATA_FONTCONFIG_CACHE\

    but sadly if MPlayer is not started with elevated access rights and UAC is turn on, the sub-directory will not be created because the process is not privileged to write to C:\Program Files (x86)\.

    I’ve tried to replace LOCAL_APPDATA_FONTCONFIG_CACHE in fonts.conf with something like “%Appdata%\MPlayer_Font_Cache”, but this does not work either because the environment variable %Appdata% is not expanded and MPlayer tries to create a directory something like

    C:\Program Files (x86)\SMPlayer\mplayer\%Appdata%\MPlayer_Font_Cache\

    which fails again. Thus MPlayer re-scans the fonts on every startup if it is started from a directory with restricted access.

    Additionally the “-nofontconfig” switch does not seem to work too.

  30. SubJunk

    May 28, 2012 at 1:38 pm

    @Kafu: I was able to reproduce the bug on Windows 7, but then I deleted every instance of MPlayer font cache and it correctly used AppData.
    I’m interested to know if that works for you, too.
    Try deleting the following directories:
    C:\Users\Username\AppData\Local\MPlayer
    C:\Users\Username\AppData\Local\VirtualStore\Program Files (x86)\SMPlayer

  31. Sorry for the late reply, was out of town. I’ve deleted the mentioned cache locations and indeed the next time I’ve started mplayer.exe it created a new cache only once. On subsequent starts it worked fine and did not cache again.

    Then I’ve started another instance of mplayer and the same thing happened again, the second instance had to re-cache the fonts on every startup.

    Background why I use two different instances of mplayer:
    Instance one I use for my program AMT, located at
    C:\Program Files (x86)\AMT\Binaries\MPlayerMEncoder-SB34\AMT-MPlayer.exe
    (rename to AMT-MPlayer.exe so I can kill the process by name in case in becomes unresponsive)
    and instance two I use for the SMPlayer, located at
    C:\Program Files (x86)\SMPlayer\mplayer\mplayer.exe

    This setup worked fine up to and including SB32. Also with SB34 the โ€œ-nofontconfigโ€ switch does not seem to have any effect.

    Best Regards

  32. SubJunk

    June 2, 2012 at 3:49 pm

    @KaFu: Hmm, maybe it’s a bug with Fontconfig 2.9, maybe I will rollback to 2.8.
    Thanks for the feedback.

  33. I’m a bit confused by the content of the SVN repository. Browsing to http://spirton.com/svn/MPlayer-SB/ gets me “MPlayer-SB – Revision 22: /” ?

    I’m trying to do a Linux build.

    How can I rebuild an arbitrary version, say SB29 ?

    How can I rebuild the current version ?

  34. Ahh … ignore my question. Obviously an svn newbie question ๐Ÿ™

    Updated to SB29
    ————————————————————————
    r16 | spirton | 2012-02-28 16:09:16 -0800 (Tue, 28 Feb 2012) | 1 line

  35. Checking out on Linux, scripts don’t have executable permissions:

    find * -type d -name .svn -prune -o -type f -print | while read f ; do read LINE < $f && [ -z "${LINE##\#\!*}" ] & done | xargs svn propset svn:executable

  36. SubJunk

    June 4, 2012 at 10:41 am

    @quietdragon: Let me know if you succeed with a Linux version, I’ll be happy to link to it

  37. ( I’ll summarise all my steps when I get a good build. )

    When I ./configure, the script complains because ffmpeg/.svn exists ! Do you have that problem ? What is your workflow ?

  38. mplayer.c mentions FcDebugVal which isn’t in the fontconfig library on my Fedora 12 configuration.

    Index: mplayer.c
    ===================================================================
    — mplayer.c (revision 22)
    +++ mplayer.c (working copy)
    @@ -148,8 +148,18 @@

    #ifdef CONFIG_FONTCONFIG
    #include
    +#endif
    +
    +static void setFontConfigDebug(int fcDebugVal)
    +{
    +#ifdef CONFIG_FONTCONFIG
    +#if defined(__MINGW32__) || defined(__CYGWIN__)
    extern int FcDebugVal;
    +
    + FcDebugVal = fcDebugVal;
    #endif
    +#endif
    +}

    static int max_framesize;

    @@ -3052,12 +3062,12 @@
    }
    #else
    /* force cache creation here and display fontconfig scan activity */
    – FcDebugVal = 128;
    + setFontConfigDebug(128);
    #ifdef _WIN32
    FcConfigEnableHome(FcFalse);
    #endif
    FcInit();
    – FcDebugVal = 0;
    + setFontConfigDebug(0);
    #endif

    // ******************* Now, let’s see the per-file stuff ********************

  39. libmpcodecs/vd_dsnative.c uses GetFullPathNameA() which isn’t available from loader/* compiled on Linux.

    Is this function call really required ?

    If so, work is required in loader/* to expose GetFullPathNameA().

    Index: libmpcodecs/vd_dsnative.c
    ===================================================================
    — libmpcodecs/vd_dsnative.c (revision 22)
    +++ libmpcodecs/vd_dsnative.c (working copy)
    @@ -100,8 +100,10 @@
    return 0;
    }

    +#if 0
    if (sh->ds->demuxer->filename)
    GetFullPathNameA(sh->ds->demuxer->filename, MAX_PATH, fname, NULL);
    +#endif

    if (!(dsn.codec = dsn.DSOpenVideoCodec(sh->codec->dll, sh->codec->guid, sh->bih,
    sh->codec->outfmt[sh->outfmtidx], sh->fps, fname, &err)))

  40. SSA Subtitle Woes

    June 12, 2012 at 11:08 pm

    Hey Subjunk,

    Any idea how to get ASS/SSA subtitles to show properly in UMS? I’ve tried all the solutions on the PMS thread including subpos and font sub margin, but they still end up cut off at the bottom! ๐Ÿ™ Any advice would be greatly appreciated!

  41. SubJunk

    June 13, 2012 at 9:46 am

    Is this when using overscan compensation or without?

  42. I want to build.
    What version is MinGW environment, gcc ?
    what option is ./configure …

  43. Hi Subjunk,

    Thanks for the great work on this. I would like to request an updated build that at least goes to r35037 so I can test the updated ability to encode the techsmith 2 codec as seen here http://comments.gmane.org/gmane.comp.video.mplayer.cvs/19358

    Thanks!

  44. SubJunk

    August 7, 2012 at 4:33 am

    @Riki: I will be updating the build towards the end of the month since I’m on holiday at the moment, cheers ๐Ÿ™‚

  45. @Subjunk: Would be cool if you could add fdk-aac support to your next build. ๐Ÿ™‚

    Cu Selur

  46. SubJunk

    September 4, 2012 at 7:20 pm

    @Selur: I don’t think fdk-aac is supported by MPlayer, is it?

  47. Probably chose the wrong place to put my comment first, so here it’s again…

    Unable to compile this on Linux using gcc. File attributes are messed up (none of the compiler scripts inside โ€“ starting with configure โ€“ is executable). Any trick to fix this quick without digginโ€™ over the whole source? Also everything seems to be written in DOS/WIN code. Had to use dos2unix to make it more appropriate.

  48. SubJunk

    September 10, 2012 at 8:17 am

    @Patrick: I haven’t compiled MPlayer on Linux before so I can’t help you, but most people do (I’m in the minority who compile on Windows) so it can definitely be done. I suggest searching around the net for tutorials since there are a lot of them. Good luck.

  49. I managed to fix the problem with the file attributes. I configured the make file without any further options and started compiling. But gcc gave me tons of warnings and finally quit with this error mesage:

    libmpdemux/mp_taglists.c:176: error: conflicting types for ‘mp_tag2codec_id’
    libmpdemux/mp_taglists.h:24: note: previous declaration of ‘mp_tag2codec_id’ was here
    libmpdemux/mp_taglists.c:183: error: conflicting types for ‘mp_codec_id2tag’
    libmpdemux/mp_taglists.h:25: note: previous declaration of ‘mp_codec_id2tag’ was here
    make: *** [libmpdemux/mp_taglists.o] error 1

    I’m a bit lost here, because I have no clue what this means and earlier versions at least finished compiling.

  50. Thanks for the new builds.

    I’m receiving this even thought I’m configuring “nofontconfig=yes” in the config:
    “Fontconfig error: Cannot load default config file”

    another question, what is the version of gcc this build is compiled from?

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2023 Spirton

Theme by Anders NorénUp ↑