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. found another problem,… when calling:

    mplayer “test2.mkv” -nosound -vo null -ao null -nosub -vf pullup

    mplayer crashes:
    ——–
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Allocating mp_image_t, 1920x1090x12bpp YUV planar, 3139200 bytes
    *** [pullup] Exporting mp_image_t, 1920x1080x12bpp YUV planar, 3110400 bytes
    V: 0.4 10/ 10 ??% ??% ??,?% 0 0 100.00x
    affinity: +0..1..2..3.
    breaks: .0..1..2..3.
    duration: 1
    V: 0.4 11/ 11 ??% ??% ??,?% 0 0 100.00x

    MPlayer interrupted by signal 11 in module: video_read_frame
    – MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with –enable-debug and make a ‘gdb’ backtrace and
    disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
    – MPlayer crashed. This shouldn’t happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it’s MPlayer’s fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
    won’t help unless you provide this information when reporting a possible bug.
    ——–

    uploaded a sample to reproduce the crash to: http://www.embedupload.com/?d=9EI2UWMNLF

    I also tried a bunch of older mplayer releases, seems like this is an older problem,…
    It also crashes when I use ‘-vf softskip,ivtc=1’ instead of ‘-vf pullup’.

  2. @Selur: What are you trying to do? Maybe there’s a better command line to use, that looks a bit weird.

    @Josh: Thanks 🙂

  3. @Subjunk:
    1st depending on the output after running ‘-vf pullup’ and ‘-vf pp=lb,pullup’ on a source I decide which if the source is interlaced or not.
    2nd ‘-vf softskip,ivtc=1’ is used to handle mixed progressive and interlaced 29.976 fps material it even is recommend to do so over at http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html if you know a better method, I’m happy to try other stuff. 🙂

  4. First of all, I would like to thank you for this release.

    2012-10-30 – SB42
    – Changed from shared to static pthreads

    Now, I have a single .exe file, that can plays everything. Nice. Again: a personal thank you.

    Second, I agree with Abu Abdullah: “It will be great if you create a tutorial on how to compile mplayer on windows. or maybe you can provide the sites that helped you on this and what patches you are applying.”

    I am with old PC with very low CPU performance (Intel Atom N270 1.6Ghz with hyper threading) and I just need a few more frames/sec. to play smoothly 720p movies. (I already set lavdopts=thread to 2.) If i had the possibility to compile the mplayer from source, I believe I could gain these frames. So, such tutorial will be great (or just a way to download a complete .zip with sources, with some instructions included).

    Best regards!

  5. @Tanton: OK, I will put together instructions 🙂

  6. just a “heads up”: seems like the ‘ivtc’ filter is broken, whenever I try to ivtc a dvd it crashes (detc and filmdint seems to be still working)

  7. thanks for your build mplayer.
    I have compiled the latest svn of mplayer on mingw 64bit (tdm) and I would try to enable avisynth scripts.
    How do you know? I have to edit the configure file?

    I found this line in mplayer/configure
    libavdemuxers=$(echo $libavdemuxers_all | sed -e ‘s/ LIB[A-Z0-9_]*_DEMUXER//g’ -e s/REDIR_DEMUXER// -e s/AVISYNTH_DEMUXER//)

  8. @Selur: Thanks for that. There have been some recent commits to do with ivtc so hopefully they fixed it.

  9. @AlessandroG: Hi 🙂 It should be enabled by default, have you tried loading a .avs file?

  10. @SubJunk: looking forward to a build with the ivtc changes. 🙂
    Also I found a new problem, neither ffmpeg nor mencoder can extract ac3 audio from an .mpg file.
    ffmpeg -y -threads 8 -i “H:\test.mpg” -map 0:1 -vn -acodec copy “H:\Temp\test.ac3”
    -> aborts
    mencoder -lavdopts threads=8 -mc 0 -aid 128 -ovc frameno -oac copy “H:\test.mpg” -of rawaudio -o “H:\Temp\test.ac3”
    -> aborts
    mplayer -v -mc 0 -vc dummy -nocorrect-pts -noconsolecontrols -aid 128 -dumpaudio -dumpfile “H:\Temp\test.ac3” “H:\test.mpg”
    -> works

    reading http://lists.mplayerhq.hu/pipermail/mencoder-users/2012-March/013075.html it seems like this got broken between 32950 and 32951 which was before SB1. 😉
    -> tried revision 32848 build by sherpya (http://sourceforge.net/projects/mplayer-win32/files/MPlayer%20and%20MEncoder/old/revision%2032848/) and it works with that build.

  11. Gibt es eigentlich einen Grund warum der bomvl (Bitmap Overlay) video filter nicht in mencoder&mplayer verfügbar ist?

  12. thanks for the new release.

    Sorry for the last entry: I did mean to write:
    Is there a reason that mplayer&mencoder do not include the bomvl (Bitmap Overlay) video filter?

  13. @Selur: You’re welcome 🙂 I don’t know about bomvl

  14. It seems some files still suffer the regression from r35486, fixed in r35543, that causes repeating/stuttering audio.

  15. I have been looking for a new mplayer for win32 instead of Sherpya’s for a long time. Thanks to spirton.

  16. mplayer SB44 subcp bug:
    HI~,when i used -subcp enca:zh:UTF-8 -ass 1 to load srt subfont(UTF8) ,the mplayer (sb44) crashd.
    And used “- subcp UTF-8” , it works. It seems your mplayer doesn’t sopport enca option.
    But I want use the enca option to detect the codepage automatically. So please fix the bug. Thanks.
    −subcp enca:: (ENCA only)
    crash log:
    ——————————–
    mplayer -subcp enca:zh:UTF-8 -ass 1 test.mkv

    MPlayer SB44 (C) 2000-2012 MPlayer Team
    Custom build by SubJunk, http://www.spirton.com

    Playing Animal.Armageddon.EP01.2009.720P.Blu-Ray.X264.DD2.0-SiHD.mkv.
    libavformat version 54.40.100 (internal)
    libavformat file format detected.
    [lavf] stream 0: video (h264), -vid 0
    [lavf] stream 1: audio (ac3), -aid 0, -alang eng
    [lavf] stream 2: subtitle (subrip), -sid 0, -slang chi
    VIDEO: [H264] 1280×704 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
    Clip info:
    creation_time: 2010-08-10 13:30:44
    Load subtitles in ./
    SUB: error opening iconv descriptor.
    [ass] Error opening iconv descriptor

    MPlayer interrupted by signal 11 in module: read_subtitles_file
    – MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with –enable-debug and make a ‘gdb’ backtrace and
    disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
    – MPlayer crashed. This shouldn’t happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it’s MPlayer’s fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
    won’t help unless you provide this information when reporting a possible bug.
    ———————————–

  17. @ctex: It’s not a bug, I just haven’t added enca before 🙂 I will add it to the next version, thanks!

  18. @Josh: SB44 only syncs up to r35518 so it won’t have the fix from r35543 yet

  19. using your latest version SB45 i get this error
    when i rewind back and forth
    i’m using the smplayer interface ( the redxii mplayer build shows the same error)

    D:/Downloads/MPlayerMEncoder-SB45/mplayer.exe -noquiet -nofs -nomouseinput -lavdopts threads=2 -sub-fuzziness 1 -identify -slave -vo direct3d -ao dsound -nokeepaspect -priority abovenormal -framedrop -nodr -double -wid 393698 -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1.3 -ass-styles C:/Users/Marius/.smplayer/styles.ass -fontconfig -font Arial -subfont-autoscale 0 -subfont-osd-scale 19 -subfont-text-scale 19 -subcp ISO-8859-2 -subpos 100 -volume 100 -nocache -osdlevel 0 -noslices -channels 2 -af volnorm=1,scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 D:/Torenturi/The.Vampire.Diaries.S04E09.HDTV.x264-LOL.mp4

    MPlayer SB45 (C) 2000-2012 MPlayer Team
    Custom build by SubJunk, http://www.spirton.com

    Setting process priority: abovenormal

    Playing D:/Torenturi/The.Vampire.Diaries.S04E09.HDTV.x264-LOL.mp4.
    libavformat version 54.44.100 (internal)
    libavformat file format detected.
    ID_VIDEO_ID=0
    [lavf] stream 0: video (h264), -vid 0
    ID_AUDIO_ID=0
    [lavf] stream 1: audio (aac), -aid 0, -alang und
    VIDEO: [H264] 720×404 24bpp 23.976 fps 616.7 kbps (75.3 kbyte/s)
    Clip info:
    major_brand: isom
    ID_CLIP_INFO_NAME0=major_brand
    ID_CLIP_INFO_VALUE0=isom
    minor_version: 1
    ID_CLIP_INFO_NAME1=minor_version
    ID_CLIP_INFO_VALUE1=1
    compatible_brands: isom
    ID_CLIP_INFO_NAME2=compatible_brands
    ID_CLIP_INFO_VALUE2=isom
    creation_time: 2012-12-13 22:45:25
    ID_CLIP_INFO_NAME3=creation_time
    ID_CLIP_INFO_VALUE3=2012-12-13 22:45:25
    ID_CLIP_INFO_N=4
    Load subtitles in D:/Torenturi/
    ID_FILE_SUB_ID=0
    ID_FILE_SUB_FILENAME=D:/Torenturi/The.Vampire.Diaries.S04E09.HDTV.x264-LOL.srt
    SUB: Added subtitle file (1): D:/Torenturi/The.Vampire.Diaries.S04E09.HDTV.x264-LOL.srt
    ID_FILENAME=D:/Torenturi/The.Vampire.Diaries.S04E09.HDTV.x264-LOL.mp4
    ID_DEMUXER=lavfpref
    ID_VIDEO_FORMAT=H264
    ID_VIDEO_BITRATE=616728
    ID_VIDEO_WIDTH=720
    ID_VIDEO_HEIGHT=404
    ID_VIDEO_FPS=23.976
    ID_VIDEO_ASPECT=0.0000
    ID_AUDIO_FORMAT=MP4A
    ID_AUDIO_BITRATE=123216
    ID_AUDIO_RATE=48000
    ID_AUDIO_NCH=2
    ID_LENGTH=2523.31
    ID_SEEKABLE=1
    ID_CHAPTERS=0
    Opening video filter: [ass auto=1]
    [ass] auto-open
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
    libavcodec version 54.79.100 (internal)
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ID_VIDEO_CODEC=ffh264
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 48000 Hz, 2 ch, floatle, 123.2 kbit/4.01% (ratio: 15402->384000)
    ID_AUDIO_BITRATE=123216
    ID_AUDIO_RATE=48000
    ID_AUDIO_NCH=2
    Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
    ==========================================================================
    AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
    ID_AUDIO_CODEC=ffaac
    [Mixer] No hardware mixing, inserting volume filter.
    Starting playback…
    Unsupported PixelFormat 61
    Unsupported PixelFormat 53
    Unsupported PixelFormat 81
    Movie-Aspect is undefined – no prescaling applied.
    VO: [direct3d] 720×404 => 720×404 Planar YV12
    [ass] PlayResX undefined, setting to 384

    ID_VIDEO_TRACK=0
    ID_AUDIO_TRACK=0

    Ran out of numbered images, expect crash. Filter before vo is broken.

    MPlayer interrupted by signal 11 in module: decode video
    ID_SIGNAL=11
    – MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with –enable-debug and make a ‘gdb’ backtrace and
    disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
    – MPlayer crashed. This shouldn’t happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it’s MPlayer’s fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
    won’t help unless you provide this information when reporting a possible bug.

  20. The “Ran out of numbered images, expect crash.” seems to be fixed with r35710.
    http://code.google.com/p/mplayer-for-windows/wiki/Changelog
    Keep up the great work :)!

  21. Go a problem with this file (http://www.embedupload.com/?d=7YKYLHFDZC) and the latest mplayer version.
    I doesn’t show an image. Since ffmpeg and vlc both don’t but MPC-HC with LAV Filters does I guess this might be related to the lav version used,…

  22. SubJunk

    January 11, 2013 at 9:37 am

    @Selur: It says the file was removed due to copyright. What’s the filename?

  23. btw. my findings so far are that all files that are muxed with MP4Box 0.5.1 have this problem, files muxed with MP4Box 0.5.0 work fine.

  24. SubJunk

    January 11, 2013 at 12:08 pm

    @Selur: Mm yeah just seems like a bad file, bad luck!

  25. not just one file,.. need to redo quite a bunch since mp4box 0.5.1 seems to mess things up,..

  26. SubJunk

    January 11, 2013 at 1:33 pm

    @Selur: Did you make the file yourself?

  27. yup,…
    what I did was to convert a dvd to raw .264 video and mux it with mp4box 0.5.1 problem was, that I wasn’t aware that all the 0.5.1 releases over at http://gpac.wp.mines-telecom.fr/downloads/gpac-nightly-builds/ produce such broken files,… (play fine in current VLC 2.0.5 and when using LAV Filters, but nowhere else)

    for that file is not really bothering me that, was only me testing some filter routines, but I got a bunch of other clips which I probably have to redo no. :/ (extracting the video with ffmpeg or mp4box and remuxing it with an older mp4box version or mkvmerge still leaved the file broken)

  28. 1. update: mp4box is fixed
    2. do you know a way to check whether a mplayer/mencoder build is build with libdvdnav or not other than trying to navigate a dvd menu? Is there something like ‘-vf help’ to check for dvdnav?

  29. mplayer.exe dvdnav://

    If libdvdnav weren’t enabled it should say “No stream found to handle url dvdnav://”

  30. Dear compiler,
    I love your builds but can you please re-add mp3lame since I use it a lot….

    [Info]
    MEncoder SB50 (C) 2000-2013 MPlayer Team
    Custom build by SubJunk, http://www.spirton.com

    MPlayer was compiled without libmp3lame support.
    -lameopts is not an MEncoder option

    Exiting… (error parsing command line)
    [Info]

    Thanks in advance!

  31. @Tijn: Sure, it will be back in SB51 🙂

  32. Thanks for your quick replay and most of all: THANKS for re-adding the lamelibrary!

  33. small request: could you modify mencoder/mplayer such that it will look for the avisynth.dll (required for avisynth input) first next to the binary and only then in the system. Atm mencoder/mplayer only look for the binary in the system path, at least they can’t handle avisynth input if the avisynth.dll isn’t in the system folder. (it would be helpful to also look next to the binary itself to allow portable avisynth support without having to install avisynth)

  34. forget the request, it already does work, I just messed up something when copying the avisynth.dll 🙂

  35. Static Linux builds, great. I asked about this long time ago in the mailing list and the response was you cannot, it depends on the hardware while compilation. How did you do that, was their heavy changes in the code?

    Thanks for the new Linux builds.

  36. Hello SubJunk,

    Thanks for the quality of your builds.
    They are very usefull ^^
    The last build appear to be compiled without faac support (I’m using libfaac.dll)
    Do you think it’s possible to re-add faac support in your build?

    Many thanks again for your work and the quality of your builds

    Best regards,
    LEFBE

  37. SubJunk

    March 12, 2013 at 8:47 am

    @LEFBE: OK, I will add it 🙂

  38. Many thanks, you’re just a boss ^^

  39. was wondering if its possible to get that experimental 64 bit mencoder? i tried sherps but its doing that sound problem you fixed in ure build awhile back.

  40. @mazey: I mainly build MEncoder for UMS so I have no use for a 64-bit build; we have enough memory problems because of Java without adding 64-bit to the mix

  41. ok fair enuff, any chance of a new build? its been awhile heh.

  42. Got a question regarding fontconfig and mplayer:
    How can I add a custom folder with fonts for fontconfig?
    Since the fonts.conf states:
    DO NOT EDIT THIS FILE.
    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
    LOCAL CHANGES BELONG IN ‘local.conf’.
    I created a local.conf file next to the fonts.conf file:

    ~/HybridFonts

    and assumed fontconfig would scan the HybridFonts folder in my home folder but only the Windows/Fonts folder get scanned.

    If I use an absolute path (c:/Users/selur/HybridFonts), no additional scanning is done, but the fonts inside the HybridFonts folder get used.

    ‘c:/Users/selur/HybridFonts’ works but isn’t relative.
    these don’t work:
    ‘%HOMEPATH%/HybridFonts’
    ‘~/HybridFonts’

    -> Do you know how one can set a relative path to an additional fonts folder for fontconfig in the local.conf?

  43. small correction the additional directory is scanned if an absolute path is used. (but still no clue how to use a relative path)

  44. any chance of a new build or is this project dead for some reason?

  45. @Selur: Not sure sorry

  46. @mazey: I’m keeping up with the changes to MPlayer and as soon as there is a revision I think is useful I’ll publish a new build.

  47. its all good, ive switched to ffmpeg, its so much better.

Leave a Reply

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

© 2024 Spirton

Theme by Anders NorénUp ↑