1

Topic: MPlayer cannot open video

I updated my system and can no longer view videos in MPlayer. When opening a video using the -noconfig all setting I see this error:

MPlayer interrupted by signal 4 in module: filter video
- MPlayer crashed by an 'Illegal Instruction'.
  It usually happens when you run it on a CPU different than the one it was
  compiled/optimized for.
  Verify this!
- 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.

2

Re: MPlayer cannot open video

I managed to get it working again by compiling it on my computer using hyperbola's PKGBUILD.

3

Re: MPlayer cannot open video

You would need to provide more information about your system so it is possible to reconstruct the error.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

4

Re: MPlayer cannot open video

Is this enough or should I run some other command?

$ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
    Subsystem: Lenovo ThinkPad T60 [17aa:2015]
    Kernel modules: intel_agp
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:201a]
    Kernel driver in use: i915
    Kernel modules: i915
00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:201a]
00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:2010]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 1 [8086:27d0] (rev 02)
    Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 2 [8086:27d2] (rev 02)
    Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 3 [8086:27d4] (rev 02)
    Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 4 [8086:27d6] (rev 02)
    Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200a]
    Kernel driver in use: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200a]
    Kernel driver in use: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200a]
    Kernel driver in use: uhci_hcd
00:1d.3 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200a]
    Kernel driver in use: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200b]
    Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:2009]
    Kernel driver in use: lpc_ich
    Kernel modules: intel_rng, lpc_ich, leds_ss4200
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200c]
    Kernel driver in use: ata_piix
    Kernel modules: ata_piix, pata_acpi, ata_generic
00:1f.2 SATA controller [0106]: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [AHCI mode] [8086:27c5] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200d]
    Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation NM10/ICH7 Family SMBus Controller [8086:27da] (rev 02)
    Subsystem: Lenovo ThinkPad R60/T60/X60 series [17aa:200f]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801
01:00.0 Ethernet controller [0200]: Intel Corporation 82573L Gigabit Ethernet Controller [8086:109a]
    Subsystem: Lenovo ThinkPad T60 [17aa:2001]
    Kernel driver in use: e1000e
    Kernel modules: e1000e
02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
    Subsystem: Foxconn International, Inc. T77H126.00 802.11bgn Wireless Half-size Mini PCIe Card [105b:e017]
    Kernel driver in use: ath9k
    Kernel modules: ath9k
05:00.0 CardBus bridge [0607]: Texas Instruments PCI1510 PC card Cardbus Controller [104c:ac56]
    Kernel driver in use: yenta_cardbus
    Kernel modules: yenta_socket

5

Re: MPlayer cannot open video

Thanks, should be sufficient. So we need to rebuild the mplayer-version for 32bit. I will try it also on the X60 here from repositories next.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

6

Re: MPlayer cannot open video

The T60 runs the 64 bit version of hyperbola.

$ uname -a
Linux localhost 5.10.127-gnu1-1-lts #1 SMP Sat Aug 27 23:12:29 UTC 2022 x86_64 GNU/Linux

7

Re: MPlayer cannot open video

I have tested mplayer current version from testing and stable, 32bit and 64bit: No issue discovered.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

8

Re: MPlayer cannot open video

$  cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 15
model name    : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping    : 2
microcode    : 0x5c
cpu MHz        : 1314.599
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 10
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti tpr_shadow dtherm
vmx flags    : tsc_offset vtpr
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 3657.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 15
model name    : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping    : 2
microcode    : 0x5c
cpu MHz        : 1328.186
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 1
cpu cores    : 2
apicid        : 1
initial apicid    : 1
fpu        : yes
fpu_exception    : yes
cpuid level    : 10
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti tpr_shadow dtherm
vmx flags    : tsc_offset vtpr
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips    : 3657.57
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

9

Re: MPlayer cannot open video

Yes, but the T60 has only support for up to 3 GB RAM, so running a 64bit-installation is a bit over the top regarding the memory-addressing. This combination is in some way possible to test, but not now and not today for fixing. Perhaps somewhere in the future when there is a timeslot.

Tests on ThinkPad X60 (32bit), X60s (32bit), X200 (32bit and 64bit), X220 (32bit and 64bit) and T440p (32bit and 64bit) were all so far positive and working. I would like to remember that we have exactly out of this reasoning the testing-branch: So it would help to discover possible problems. Otherwise when something is not running or is not working we would need to review the build-parameters especially for the CPU-instructions used.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

10

Re: MPlayer cannot open video

If you'd like me to debug further perhaps you can offer a version of mplayer compiled with  --enable-debug and I can post the gdb output. I can also post the binary created on my machine from hyperbola's PKGBUILD in case someone else might need it.

11

Re: MPlayer cannot open video

We cannot offer a version for mplayer compiled with this. But you can do it with this PKGBUILD:

# Maintainer (Arch): Levente Polyak <anthraxx@archlinux.org>
# Contributor (Arch): Ionut Biru <ibiru@archlinux.org>
# Contributor (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch): Hugo Doria <hugo@archlinux.org>
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: Tobias Dausend <throgh@hyperbola.info>

pkgbase=mplayer
pkgname=('mplayer' 'mencoder')
pkgver=1.4
_debver=$pkgver
_debrel=1
pkgrel=3
pkgdesc="Free and libre media player"
url='http://www.mplayerhq.hu/'
arch=('i686' 'x86_64')
license=('GPL-2')
makedepends=('libxxf86dga' 'libmad' 'libxinerama' 'libmng' 'libxss' 'aalib' 'jack'
             'libcaca' 'faad2' 'lirc'  'libxvmc' 'enca' 'libdca' 'a52dec' 'libvpx' 'unzip'
             'mesa' 'live-media' 'yasm' 'mpg123' 'ladspa' 'libcdio-paranoia'
             'x264' 'libx264' 'rtmpdump' 'libdvdcss' 'libdvdread' 'libdvdnav' 'ffmpeg' 'quilt')
options=('!emptydirs' 'debug')
source=("${pkgname}-${pkgver}.tar.xz::https://deb.debian.org/debian/pool/main/m/mplayer/mplayer_${pkgver}+ds1.orig.tar.xz"
        "https://deb.debian.org/debian/pool/main/m/mplayer/mplayer_${_debver}+ds1-${_debrel}+deb11u1.debian.tar.xz"
        "mplayer.desktop"
        "revert-icl-fixes.patch"
        "fix-libmpcodecs-ad_spdif_ffmpeg44.patch")
sha512sums=('23f7ed12fb40bd126524c523ee1c655fb1ebbda3f3a8506da67a0c39bf8c34a04b6f2183ae680ae6237a74934f28fbc725625af8301da09fd369fe52f7e0b077'
            '9ca1906bbe619cc3a2ff9f10b687d829255ca911f3d273cee34e53d8772ecdd2316d24b48a1a09c9ba4cad34c15b384577070aea833bd7402c86505115b6387d'
            'd3c5cbf0035279c6f307e4e225473d7b77f9b56566537a26aa694e68446b9e3240333296da627ad5af83b04cc8f476d1a3f8c05e4cf81cd6e77153feb4ed74bc'
            '0cae0b26d3d97fd4c962962c43a481de20335369cbca406cadfc9bda1a0608b32f5374e76c477cb9a85bda83a568a1ed17126df224ae61579d0a402c1824aea8'
            'b866f0cf9ef3009e3d16ccbe64600a485968e288e6b0965dcb443f6867e353e01f4f5de86eea637e0a3b98d8177c6c50d0f8e74ca21a99649a5b3716ca402c2b')

prepare() {
  cd MPlayer-${pkgver}

  if [[ $pkgver = $_debver ]]; then
    # Debian patches
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
    export QUILT_DIFF_ARGS='--no-timestamps'

    rm -rf ./debian
    mv "$srcdir"/debian .

    # Doesn't apply
    rm -v debian/patches/0001_version.patch || true
    rm -v debian/patches/0002_mplayer_debug_printf.patch || true
    rm -v debian/patches/0201_PATH_MAX_HURD.patch || true
    rm -v debian/patches/0203_generic arch fallback.patch || true

    quilt push -av
  fi

  patch -p0 < "$srcdir/revert-icl-fixes.patch"
  patch -Np1 -i "$srcdir/fix-libmpcodecs-ad_spdif_ffmpeg44.patch"
  ./version.sh
}

build() {
  cd MPlayer-${pkgver}

  ./configure --prefix=/usr \
    --disable-gui \
    --disable-arts \
    --disable-liblzo \
    --disable-speex \
    --disable-openal \
    --disable-libdv \
    --disable-musepack \
    --disable-esd \
    --disable-mga \
    --disable-ass-internal \
    --disable-faac \
    --disable-unrarexec \
    --disable-cdparanoia \
    --disable-ffmpeg_a \
    --disable-smb \
    --enable-xvmc \
    --enable-radio \
    --enable-radio-capture \
    --language=all \
    --confdir=/etc/mplayer \
    $extra
  [[ "${CARCH}" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak
  make
}

package_mplayer() {
  pkgdesc="Free and libre media player"
  backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
  depends=('desktop-file-utils' 'ttf-font' 'enca' 'libxss' 'a52dec' 'libvpx'
           'lirc' 'libx264' 'libmng' 'libdca' 'aalib' 'libxinerama'
           'jack' 'libmad' 'libcaca' 'libxxf86dga' 'faad2' 'libxvmc' 'mpg123'
           'libcdio-paranoia' 'rtmpdump' 'libdvdnav' 'ffmpeg')

  cd MPlayer-${pkgver}
  make DESTDIR="${pkgdir}" install-mplayer install-mplayer-man

  install -Dm 644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
  install -Dm 644 "${srcdir}/mplayer.desktop" -t "${pkgdir}/usr/share/applications"
  install -Dm 644 etc/mplayer256x256.png "${pkgdir}/usr/share/pixmaps/mplayer.png"

  install -Dm644 "${srcdir}/MPlayer-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
}

package_mencoder() {
  pkgdesc="Free and libre command line video decoding, encoding and filtering tool"
  depends=('enca' 'a52dec' 'libvpx' 'libx264' 'libmng' 'libdca' 'libmad'
           'faad2' 'mpg123' 'libcdio-paranoia' 'rtmpdump' 'libdvdnav' 'ffmpeg')

  make -C MPlayer-${pkgver} DESTDIR="${pkgdir}" install-mencoder install-mencoder-man
  find "${pkgdir}/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +

  install -Dm644 "${srcdir}/MPlayer-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
}

Alternative you would need to add this to your local PKGBUILD as compilation-flag.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

12 (edited by aloniv 2023-09-20 17:16:07)

Re: MPlayer cannot open video

Should I also add --enable-debug to the PKGBUILD? How does it differ from the regular PKGBUILD?

13

Re: MPlayer cannot open video

Well, for the moment it would only offer the debug-option. So when you like to support for finding a solution?
Alternative you can also tryout using gdb in combination with the package from the repositories and look about the outcome - no further stacktrace in detail there.

But you mentioned the "-noconfig"-parameter? Can you post your command in detail being used?

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

14

Re: MPlayer cannot open video

The problem is that if I compile hyperbola's mplayer on my machine it works fine so adding the --enable-debug option to the compilation on my machine won't explain why hyperbola's build isn't working so I assume you could compile mplayer with that parameter on hyperbola's servers and that build should also fail on my machine like the regular build so debugging it on my machine could provide insight.

The -noconfig parameter in mplayer simply tells mplayer to disregard my own mplayer configuration file in case that was the cause for mplayer failing to run.
I just ran "mplayer -noconfig somefile.mp4" and saw the output which I posted in the first post. When I tried an audio file it worked fine.

15

Re: MPlayer cannot open video

That seems more like an upstream-issue: There are several different reports regarding "module: filter video" also with different solutions, including the local rebuild of the package itself. So I personal tend to follow that you have done the most possible in this moment and solved that issue.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

16

Re: MPlayer cannot open video

A rework within the compilation-parameters should solve this issue: https://git.hyperbola.info:50100/~team/ … 8b965499cc

Will be on the build-server in the next days. smile

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

17

Re: MPlayer cannot open video

Should be solved now: New version in testing-repositories for 0.4.3.1.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!