Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#958865: mplayer: theora playback broken: vf_get_image: Assertion `h == -1 || h >= vf->h' failed.

12 views
Skip to first unread message

Stuart Longland

unread,
Apr 25, 2020, 9:50:03 PM4/25/20
to
Package: mplayer
Version: 2:1.3.0-8+b4
Severity: important

Hi,

I struck this issue trying to play a Ogg/Theora video originally on
Ubuntu 18.04 LTS and later reproduced the exact same conditions on
Debian 10.

Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/1857407

What happens on Debian:
stuartl@vk4msl-nb:~$ mplayer /tmp/test.ogv
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /tmp/test.ogv.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
libavformat file format detected.
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[lavf] stream 0: video (theora), -vid 0
[lavf] stream 1: audio (vorbis), -aid 0, -alang eng
VIDEO: [theo] 240x180 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Mismatching header version 58.18.100
Selected video codec: [fftheora] vfm: ffmpeg (FFmpeg Theora)
==========================================================================
Load subtitles in /tmp/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 1 ch, floatle, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [pulse] 32000Hz 1ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 240x180 => 240x180 Planar YV12
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 240x180 => 240x180 Planar YV12
Dropping frame with size not matching configured size (240x180 vs 240x168 vs 240x180)
Dropping frame with size not matching configured size (240x180 vs 240x168 vs 240x180)
[VD_FFMPEG] DRI failure.
mplayer: libmpcodecs/vf.c:287: vf_get_image: Assertion `h == -1 || h >= vf->h' failed.


MPlayer interrupted by signal 6 in module: decode video
[ This binary of MPlayer in Debian is currently compiled with
'--enable-debug'; the debugging symbols are in the package
'mplayer-dbgsym'.]

The package `mplayer-dbgsym` does not exist according to `apt`.

`test.ogv` can be downloaded from
https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/1857407/+attachment/5314961/+files/test.ogv

I tried installing the "unstable" release of `mplayer`, however its
dependencies on `libc6` prevented me from doing so safely. I am not
sure when the Debian 11 release is expected, so I am sticking to version
10 for now.

The above bug is pretty easy to reproduce anyway, and can be reproduced
on both Debian and Ubuntu, which says to me its something common to both.

-- System Information:
Debian Release: 10.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mplayer depends on:
ii liba52-0.7.4 0.7.4-19
ii libaa1 1.4p5-46
ii libasound2 1.1.8-1
ii libass9 1:0.14.0-2
ii libaudio2 1.9.4-6
ii libavcodec-extra58 [libavcodec58] 7:4.1.4-1~deb10u1
ii libavformat58 7:4.1.4-1~deb10u1
ii libavutil56 7:4.1.4-1~deb10u1
ii libbluray2 1:1.1.0-1
ii libbs2b0 3.1.0+dfsg-2.2
ii libc6 2.28-10
ii libcaca0 0.99.beta19-2.1
ii libcdio-cdda2 10.2+2.0.0-1+b1
ii libcdio-paranoia2 10.2+2.0.0-1+b1
ii libcdio18 2.0.0-2
ii libdca0 0.0.6-1
ii libdirectfb-1.7-7 1.7.7-9
ii libdv4 1.0.0-12
ii libdvdnav4 6.0.0-1
ii libdvdread4 6.0.1-1
ii libenca0 1.19-1+b1
ii libfaad2 2.8.8-3
ii libfontconfig1 2.13.1-2
ii libfreetype6 2.9.1-3+deb10u1
ii libfribidi0 1.0.5-3.1+deb10u1
ii libgif7 5.1.4-3
ii libgl1 1.1.0-1
ii libjack-jackd2-0 [libjack-0.125] 1.9.12~dfsg-2
ii libjpeg62-turbo 1:1.5.2-2+b1
ii liblirc-client0 0.10.1-5.2
ii libmad0 0.15.1b-10
ii libmpeg2-4 0.5.1-8
ii libmpg123-0 1.25.10-2
ii libogg0 1.3.2-1+b1
ii libopenal1 1:1.19.1-1
ii libpng16-16 1.6.36-6
ii libpostproc55 7:4.1.4-1~deb10u1
ii libpulse0 12.2-4+deb10u1
ii libsdl1.2debian 1.2.15+dfsg2-4
ii libsmbclient 2:4.9.5+dfsg-5+deb10u1
ii libspeex1 1.2~rc1.2-1+b2
ii libswresample3 7:4.1.4-1~deb10u1
ii libswscale5 7:4.1.4-1~deb10u1
ii libtheora0 1.1.1+dfsg.1-15
ii libtinfo6 6.1+20181013-2+deb10u2
ii libvdpau1 1.1.1-10
ii libvorbisidec1 1.2.1+git20180316-3
ii libx11-6 2:1.6.7-1
ii libx264-155 2:0.155.2917+git0a84d98-2
ii libxext6 2:1.3.3-1+b2
ii libxinerama1 2:1.1.4-2
ii libxss1 1:1.2.3-1
ii libxv1 2:1.0.11-1
ii libxvidcore4 2:1.3.5-1
ii libxvmc1 2:1.0.12-2
ii libxxf86dga1 2:1.1.4-1+b3
ii libxxf86vm1 1:1.1.4-1+b2
ii zlib1g 1:1.2.11.dfsg-1

mplayer recommends no packages.

Versions of packages mplayer suggests:
ii bzip2 1.0.6-9.2~deb10u1
ii fontconfig 2.13.1-2
pn fonts-freefont-ttf <none>
pn mplayer-doc <none>
pn netselect | fping <none>

-- no debconf information

Jonas Smedegaard

unread,
Apr 26, 2020, 2:10:03 AM4/26/20
to
Hi Stuart,

Quoting Stuart Longland (2020-04-26 03:36:14)
> I struck this issue trying to play a Ogg/Theora video originally on
> Ubuntu 18.04 LTS and later reproduced the exact same conditions on
> Debian 10.

> mplayer: libmpcodecs/vf.c:287: vf_get_image: Assertion `h == -1 || h >= vf->h' failed.

MPlayer is no longer developed and largely replaced by mpv.

I can suggest to try use mpv instead. If you dislike the minimal builtin
user interface, then try one of the frontends gnome-mpv or smplayer.

I can play the above video just fine with mpv, but your problem might be
related to other parts of your system (graphics driver, X11 or Wayland
setup, etc.).



Kind regards,

- Jonas

--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/

[x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc

Stuart Longland

unread,
Apr 26, 2020, 3:40:03 AM4/26/20
to
On 26/4/20 4:03 pm, Jonas Smedegaard wrote:
> MPlayer is no longer developed and largely replaced by mpv.
>
> I can suggest to try use mpv instead. If you dislike the minimal builtin
> user interface, then try one of the frontends gnome-mpv or smplayer.
>
> I can play the above video just fine with mpv, but your problem might be
> related to other parts of your system (graphics driver, X11 or Wayland
> setup, etc.).

Right, wasn't aware of mplayer's demise… my use case was to play a
full-screen video without sound as the screen saver… so I have the
following:

stuartl@vk4msl-nb:~$ cat .screensavers/playrandom.sh
#!/bin/bash

if [ -n "$1" ]; then
XSCREENSAVER_WINDOW=$1
fi

exec /usr/bin/mplayer -nosound -fs -really-quiet \
${XSCREENSAVER_WINDOW+-wid} \
$XSCREENSAVER_WINDOW \
-nolirc -nostop-xscreensaver \
-shuffle \
/home/stuartl/.screensavers/*.{mkv,mpeg,mp4} \
/home/stuartl/.screensavers/*/*.{mkv,mpeg,mp4}
stuartl@vk4msl-nb:~$ grep -C 3 playrandom.sh .xscreensaver
textURL: http://planet.debian.org/rss20.xml

programs:
\
"Random video"
/home/stuartl/.screensavers/playrandom.sh \
$XSCREENSAVER_WINDOW
\n\
- maze -root
\n\
- GL: superquadrics -root
\n\

This works well, with MPEG4 files, it crashes and burns with Ogg/Theora.

I'll have to see if mpv can pull off the same trick as mplayer.

Stuart Longland

unread,
Apr 26, 2020, 3:40:04 AM4/26/20
to
On 26/4/20 5:22 pm, Stuart Longland wrote:
> I'll have to see if mpv can pull off the same trick as mplayer.

Turns out it can:

stuartl@vk4msl-nb:~$ cat .screensavers/playrandom.sh
#!/bin/bash

if [ -n "$1" ]; then
XSCREENSAVER_WINDOW=$1
fi

exec /usr/bin/mpv --no-audio --fs --really-quiet \
${XSCREENSAVER_WINDOW+--wid} \
$XSCREENSAVER_WINDOW \
--no-stop-screensaver \
--shuffle \
/home/stuartl/.screensavers/*.ogv \
/home/stuartl/.screensavers/*/*.ogv

and my Ogg/Theora videos play with it… so okay, time to `apt-get purge
mplayer`.

Reimar Döffinger

unread,
Feb 5, 2023, 6:10:06 AM2/5/23
to

> On 26 Apr 2020, at 08:03, Jonas Smedegaard <jo...@jones.dk> wrote:
>
> Hi Stuart,
>
> Quoting Stuart Longland (2020-04-26 03:36:14)
>> I struck this issue trying to play a Ogg/Theora video originally on
>> Ubuntu 18.04 LTS and later reproduced the exact same conditions on
>> Debian 10.
>
>> mplayer: libmpcodecs/vf.c:287: vf_get_image: Assertion `h == -1 || h >= vf->h' failed.
>
>> `test.ogv` can be downloaded from
>> https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/1857407/+attachment/5314961/+files/test.ogv
>
> MPlayer is no longer developed and largely replaced by mpv.

It's fair enough to point people to alternatives,
but I don't think it's ok or fair to blame upstream
for issues that have been long fixed (this one in
April last year).
r38362 specifically.

Jonas Smedegaard

unread,
Feb 5, 2023, 9:00:04 AM2/5/23
to
Quoting Reimar Döffinger (2023-02-05 12:05:07)
Is your complaint that in 2020 I failed to predict that upstream would
issue a bugfix 2 years later?!?


- Jonas

--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
* Sponsorship: https://ko-fi.com/drjones

Reimar Döffinger

unread,
Feb 5, 2023, 10:40:04 AM2/5/23
to

> On 5 Feb 2023, at 14:51, Jonas Smedegaard <jo...@jones.dk> wrote:
>
> Quoting Reimar Döffinger (2023-02-05 12:05:07)
>>>> `test.ogv` can be downloaded from
>>>> https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/1857407/+attachment/5314961/+files/test.ogv
>>>
>>> MPlayer is no longer developed and largely replaced by mpv.
>>
>> It's fair enough to point people to alternatives,
>> but I don't think it's ok or fair to blame upstream
>> for issues that have been long fixed (this one in
>> April last year).
>> r38362 specifically.
>
> Is your complaint that in 2020 I failed to predict that upstream would
> issue a bugfix 2 years later?!?

This was not meant as a personal attack on anyone,
I do not know all the details of this issue.
But from what I know, while it was reported to Ubuntu
and Debian, this issue was never reported by anyone
to MPlayer.
In addition, it only occurred due to specific compile
options used by these distros (--enable-debug).
To my knowledge the issue was fixed very shortly after someone from MPlayer (me) became aware of it.
Maybe it's of little practical relevance for Debian users, but for upstream developers it's not so much fun for the project to be declared dead because the communication between distro and upstream broke down.
And bug fixes is one of the few things that MPlayer still does get even though you are right that there is very minimal development.

Hope that explains my point and sounds reasonable.

Thanks,
Reimar
0 new messages