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

Bug #1857407 reported by Stuart Longland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mplayer (Debian)
Fix Released
Unknown
mplayer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

I'm using 'mplayer' alongside 'xscreensaver' to play a few videos as screen savers. To save space, I've dropped the frame size of the videos (and they play without sound).

On some videos, which I have converted from other media (the example I will give here is a truncated version of a public-domain video from archive.org to demonstrate the issue), mplayer on Ubuntu 18.04 crashes:

$ mplayer /tmp/test.ogv
MPlayer 1.3.0 (Debian), built with gcc-7 (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 57.83.100 (external)
libavformat file format detected.
[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)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
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 same videos play just fine with mplayer on Gentoo. (The video was produced using the command: ffmpeg -i ${INPUT} -s 240x180 -ar 32000 -ac 1 -b:a 128000 -b:v 250000 -t 10 ${OUTPUT}). I have tried other CODECs and container formats, it seems to be related to Theora which I chose because it's a good free-software CODEC for video.

stuartl@vk4msl-ws:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
stuartl@vk4msl-ws:~$ uname -a
Linux vk4msl-ws 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
stuartl@vk4msl-ws:~$ dpkg -l mplayer
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================================-=========================-=========================-======================================================================================
ii mplayer 2:1.3.0-7build2 amd64 movie player for Unix-like systems

Revision history for this message
Stuart Longland (redhatter) wrote :
Revision history for this message
Stuart Longland (redhatter) wrote :

Reproduced the same crash on Debian 10.

Revision history for this message
Stuart Longland (redhatter) wrote :

So this issue has been known of in Debian for a while now. I reported the issue today there:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958865

but there was this earlier report from nearly a year ago:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920485

Changed in mplayer (Debian):
importance: Undecided → Unknown
status: New → Unknown
Changed in mplayer (Debian):
status: Unknown → New
Revision history for this message
Stuart Longland (redhatter) wrote :

Right, so the situation is this: bit rot.

mplayer is no longer maintained apparently, the suggested alternative being `mpv`, which *can* be used with `xscreensaver` (see Debian bug#958865 link).

Guess we can close this now, time to migrate over to `mpv`.

Changed in mplayer (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.