The "mencoder" component of the MPlayer project is a tool which
allows creation of video streams. It supports almost the same set
of input sources as the player component and supports encoding from
these sources through various codecs, including the popular ffmpeg,
XviD and x264 families. "Transcoding" DVDs into avi files is also
possible.
===> The following configuration options are available for mencoder-1.5.0.20260404_2:
AMR_NB=off: AMR Narrow Band audio support (opencore)
AMR_WB=off: AMR Wide Band audio support (opencore)
ASS=on: Subtitles rendering via libass
BLURAY=off: BluRay support
CDIO=off: CDIO support via libcdio
DV=off: Quasar DV video codec support (libdv)
DVDNAV=on: DVD navigation features support
FAAC=off: FAAC AAC encoder support
FONTCONFIG=on: X11 font configuration support
FRIBIDI=off: Bidirectional text support via GNU FriBidi
GIF=on: GIF image format support
GNUTLS=on: SSL/TLS support via GnuTLS
GSM=off: GSM codec support
IPV6=on: IPv6 protocol support
JACK=off: JACK audio server support
JPEG=on: JPEG image format support
LADSPA=off: LADSPA audio plugins support
LIBMNG=off: MNG animated images support via libmng
LZO=off: Enable external liblzo library
MAD=off: MAD MP3 audio decoder support
NAS=off: Network Audio System support
NLS=on: Native Language Support
OPENAL=off: Audio support via OpenAL
OPENJPEG=off: JPEG 2000 support via OpenJPEG
OPUS=off: Opus audio codec support
PULSEAUDIO=off: PulseAudio sound server support
RTCPU=on: Use runtime CPU detection
SMB=off: SMB network protocol support
SPEEX=off: Speex audio format support
THEORA=off: Ogg Theora video codec support
TWOLAME=off: TwoLAME MP2 audio encoder support
V4L=off: Video 4 Linux support
VPX=off: VP8/VP9 video codec support
X264=on: H.264 video codec support via x264
XVID=on: Xvid MPEG-4 video codec support
===> Use 'make config' to modify these settings
multimedia/{mplayer|mencoder} Update to upstream snapshot 2026-04-04
This updates multimedia/mplayer and mencoder to an up-to-date
snapshot as of 2026-04-04.
* Due to upstream development slowing down, distfiles are now
incremental diffs.
* This marks the JACK option broken for now due to ffmpeg API
retirements.
PR: 292157
MFH: 2026Q2
*/*: De-orbit alias.mk
Mk/Uses/alias.mk was an attempt for compat with DPorts, but has rotted.
This feature was never documented in the PHB, so there is no work to
be done by the docs@ team.
Nothing against DragonFly, but if DPorts still needs FreeBSD 9
support, they really should work that out with upstream projects.
Ultimately, we don't need to keep carrying this outdated feature that
doesn't affect us.
multimedia/mplayer: fix build with ffmpeg8
Remove version lib dependency for a more generic one, disable VDPAU
option by default as it is still broken with ffmpeg8
multimedia/[mplayer|mencoder]: Update to snapshot as of 2025-08-16
This is mostly a bugfix release. Some of the local patches have been
adopted upstream as well.
multimedia/{mplayer|mencoder}: Fix WITH_DEBUG build
Newer clang versions are not happy when passing -mcpu=<something> on
i386 and amd64. This fixes the construction of CFLAGS during configure
in the WITH_DEBUG case.
Also, as it turns out, there was a const ptr issue in
libmpcodecs/ad_spdif.c whith also needed to be fixed.
PR: 280818
Reported by: cryptogranny@gmail.com
multimedia/{mplayer|mencoder}: Update to new upstream snapshot
Details:
- Move to upstream snapshot as of 2024-09-28
- Use ffmpeg6+ instead of ffmpeg4
PR: 275846
multimedia/mencoder: Remove support for librtmp
Remove invalid option as support for librtmp was removed in
8d01b5458f4660725fcaf562cdbb073debc9b751
Approved by: portmgr (blanket)
multimedia/{mplayer/mencoder}: Move DEBUG from OPTIONS to WITH_DEBUG
Details:
This is a revert of c1e0f931e3ddecb86d83ffc14cb8b05a38922cdd plus
removing the DEBUG OPTION from mencoder as well, following the trend to
phase out DEBUG as an option.
multimedia/{mplayer|mencoder} Update to newer upstream snapshot
Details:
- Update to upstream snapshot as of 2024-01-06
- No major functional changes, but adds detection for new CPU
instructions
MFH: 2024Q1
multimedia/{mplayer|mencoder} Add missing CFLAGS for ffmpeg4 headers
Details:
This was missed in the previous commit. Ensure the ffmpeg4 headers are
included, not the ffmpeg 6 ones.
PR: 270569
Reported by: diizzy
Tested by: george@m5p.com, riggs
multimedia/{mplayer|mencoder} Use ffmpeg4 instead of ffmpeg6
Details: Hopefully temporary workaround to fix a whole bunch of decoding
problems with various ffmpeg codecs.
PR: 270569
multimedia/{mplayer|mencoder}: Update to newer upstream snapshot
Details:
- Update to upstream snapshot as of 2023-03-21
- Preparation for the ffmpeg 6.0 update
PR: 270294
Reported by: diizzy
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
multimedia/{mplayer|mencoder}: Fix stage-qa warnings
Details:
- Rework dependencies to fix stage-qa warnings, at least for the default
packages and a couple configs tested.
- Add JPEG OPTION to allow to actually disable it (as it is picked up
automatically in most systems via build dependencies, even if the user
does not want to include it).
PR: 256994
Reported by: bsd@philippost.de
MFH: 2022Q3
multimedia: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* Aaron LI <aly@aaronly.me>
* Alexander Botero-Lowry <alexbl@FreeBSD.org>
* Alexander Logvinov <ports@logvinov.com>
* Alexey Dokuchaev <danfe@FreeBSD.org>
* Anders Nordby <anders@FreeBSD.org>
* Andrew Pantyukhin <infofarmer@FreeBSD.org>
* Andrew Thompson <andy@fud.org.nz>
* Andrew Thompson <thompsa@FreeBSD.org>
* Angel Carpintero <ack@telefonica.net>
* Anish Mistry (with help from mean)
* Anonymous <swell.k@gmail.com>
(Only the first 15 lines of the commit message are shown above )
multimedia/{mplayer|mencoder} Update to upstream snapshot 2022-03-10
Details:
- This updates multimedia/mplayer and mencoder to a recent upstream
snapshot (2022-03-10).
- It is functionally identical to the 1.5.0 release, but:
- Uses external ffmpeg instead of the bundled one in the 1.5.0 release.
multimedia/m{player|encoder}: switch to graphics/openjpeg (+)
Mplayer engine indeed require openjpeg >= 2.1.0.
Depend on openjpeg15 is irrelevant, player even connot link with it.
MFH: 2022Q1
Approved by: portmgr (fix build blanket)
Sponsored by: Netzkommune GmbH
audio/jack: Update to Jack2: 0.125.0 -> 1.9.16
Big thank you to Florian Walpen <dev@submerge.ch> and
Goran Mekić <meka@tilda.center> for working on Jack2.
PR: 251125
Submitted by: Florian Walpen <dev@submerge.ch> (original version)
Update to recent snapshot as of 20190706
Details:
- Upstream fix for possible subtitle corruption during play
- Upstream fix to allow SSE2 aligned loads on subtitle data
MFH: 2019Q3 (with hat: ports-secteam)
Fix linking error with lld 7
Details:
- The linker script in mplayer's WRKSRC causes linking problems when
used with lld 7. Remove it during post-patch
PR: 235957, 220103
Reported by: jakub_lach@mailplus.pl, dim
Reviewed by: dim
MFH: 2019Q1
Update to upstream snapshot as of 2018-09-20
Details:
- Update to latest upstream snapshot as of 2018-09-20
- Fix build warnings due to USES for gnome and gl
Update to upstream snapshot as of 20180413
Details:
- Update to recent upstream snapshot (20180413)
- Drop SCHROEDINGER OPTION (removed upstream)
- Remove --disable-libdirac-lavc from
CONFIGURE_ARGS (removed upstream)
Update to upstream snapshot as of 2017-04-15
Details:
- Update to upstream snapshot as of 2017-04-15
- Fix stage-qa in mencoder after recent changes to the
aggressiveness of shebangfix:
- Fix TOOLS/vobshift.py erroneously missing from
SHEBANG_FILES
- Add USES=python and PYTHON_NO_DEPENDS
Unbundle libass from mplayer / mencoder
Log:
- Use libass from ports instead of bundled version (this likely
addresses some vulnerabilities since bundled libass is from 2013)
- New default OPTION ASS
- Bump portrevision
Reported by: jbeich
MFH: 2017Q1
Simplify handling of CFLAGS, retire OCFLAGS OPTION
Log:
- Remove OCFLAGS option. This is no longer a big topic since all
computationally expensive code is handled via external ffmpeg
libraries now
- Remove BUILD_DEPENDS on yasm. No yasm asm files are compiled
during mplayer / mencoder build process anymore
- Bump PORTREVISION
Update to recent upstream snapshot as of 2016-09-12
While on it:
- Add missing USE_XORG=xext for X11 OPTION
- Import patch by bar@ to deal with certain other ports
e.g. x11/slim
When there is a do-install target, do not use a post-install target, do
everything at once. Sometime, rename post-install into a options helper
target.
I did not fix ports that were such a mess that I could not figure out
what they really wanted to do. I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.
With hat: portmgr
Sponsored by: Absolight
- Update security/gnutls to 3.4.10.
- Rename the LIBDANE option DANE because that's the name of the protocol
supported by libgnutls-dane and gnutls-cli. Also clarify the option
description.
- Add an IDN option.
- libgnutls-openssl has been removed in 3.4. Some ports used this library
in their LIB_DEPENDS but no port actually required it.
- Some old API functions have been removed. Ports that used these have been
updated or patched to use the new API.
- Add a patch to print/cups to prevent overlinking of libgnutls.so.
- Bump PORTREVISION on dependent ports.
net-im/jabber: This port used the old API to give users fine grained
control over which crypto algorithms were used via a configuration file.
It's not immediately obvious how to port this to the new API so the port
always uses the defaults now.
www/hydra: Mark BROKEN. This uses more removed calls than the other ports,
is said to be alpha quality and not fully functional and has been abandoned
10 years ago.
PR: 207768
Exp-run by: antoine
Approved by: portmgr (antoine)
Update to upstream version 1.3.0 from 2016-02-16
- Use released version instead of svn snapshot for this distfile
- Update MASTER_SITES to fetch from mplayer.hq instead of LOCAL for
this distfile
- Use bundled ffmpeg-3.0
Build with ffmpeg-2.8.5; fix zero-day remote vulnerability
Both mentioned CVE IDs refer to vulnerabilities where a remote attacker
can read arbitrary files by using the subfile protocol in an HTTP Live
Streaming (HLS) M3U8 file. Building with 2.8.5 fixes those.
MFH: 2016Q1
Security: CVE-2016-1897
CVE-2016-1898