Opened 2 years ago

Closed 2 years ago

#16734 closed enhancement (fixed)

MPlayer-1.5

Reported by: pierre Owned by: Bruce Dubbs
Priority: normal Milestone: 11.2
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

Available at http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.5.tar.xz since February 27th, 2022. Reported by Joe Locash in ticket #15975.

Change History (8)

comment:1 by Bruce Dubbs, 2 years ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

This was marked in the currency scripts as 'manual'. It appears that upstream has fixed their website. I'll update both this package and the currency script.

comment:2 by Bruce Dubbs, 2 years ago

MPlayer - 1.5: "Hope" February 27, 2022

Decoders, demuxers, streams:

  • ffmpeg12vpdau is no longer supported by FFmpeg, provide separate ffmpeg1vpdau and ffmpeg2vdpau instead
  • live555 deprecated and disabled by default, will be removed in future

GUI:

  • Fix wrongly sized video window after leaving fullscreen mode
  • Clear screen when switching to fullscreen mode using the x11 video output driver
  • Command line option -fs is now recognized in addition to the GUI option load_fullscreen
  • Use correct visual in OpenGL video output driver for X11
  • Provide a built-in skin so that the GUI can be used even without an installed skin
  • Native Language Support, i.e. the GUI language can be changed as specified in LC_MESSAGES or LANG
  • Minor bug fixes

Other:

  • Building on Arm now compiles for the ISA and extensions of the host CPU by default. This should avoid issues like builds on e.g. Raspbian not using NEON by default. Can use --enable-runtime-cpudetection to restore the previous behaviour, though full runtime CPU detection is not supported.
  • New configure option --enable-nls for Native Language Support at runtime (for the moment only for the GUI and enabled by default for it)
  • macOS: Fixes for retina display, sluggish input processing

comment:3 by Bruce Dubbs, 2 years ago

Milestone: 11.299-Waiting
Summary: mplayer-1.5mplayer-1.5 (wait for book update to ffmpeg-5)

I am having a problem with this package. It builds fine with the current instructions, and plays an audio .mp3 file fine, but it does not want to play an mp4 file. I get:

$ mplayer ~/big_buck_bunny.mp4 
MPlayer 1.5-12.1.0 (C) 2000-2022 MPlayer Team
226 audio & 469 video codecs

Playing /home/bdubbs/big_buck_bunny.mp4.
libavformat version 58.76.100 (external)
Mismatching header version 59.17.102
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f1754e99e80]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol

If I revert to what we have in the book now, mplayer-export-2021-07-29 that we have on anduin, then the file plays fine. The libavformat library is:

-rwxr-xr-x 1 root root 2510680 Jul 4 12:12 libavformat.so.58.76.100

from ffmpeg-4.4.1. I really don't know where the 59.17.102 comes from. I checked ffmpeg-5.0.1 and it creates libavformat.so.59.16.100 (ffmpeg-5.0 gives the same.) I cannot find any reference to 59.17.102 in the mplayer source either.

I also checked the latest ffmpeg snapshot and it produces libavformat.so.59.26.100.

Found it! In mplayer there is ffmpeg/libavformat/version.h that has:

#define LIBAVFORMAT_VERSION_MAJOR  59
#define LIBAVFORMAT_VERSION_MINOR  17
#define LIBAVFORMAT_VERSION_MICRO 102

OK, I got it to work. I installed ffmpeg-5.0.1 and still got the messages above, but the mp4 file played:

Playing big_buck_bunny.mp4.
libavformat version 59.16.100 (external)
Mismatching header version 59.17.102
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f76cec5f540]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: audio (aac), -aid 0, -alang eng
[lavf] stream 1: video (h264), -vid 0
VIDEO:  [H264]  640x360  24bpp  24.000 fps  612.2 kbps (74.7 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.18.100 (external)
Mismatching header version 59.21.100
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 1
 compatible_brands: mp42avc1
 creation_time: 2010-02-09T01:55:39.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 65.1 kbit/4.61% (ratio: 8134->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))

Will wait for this package until after ffmpeg-5 is installed.

comment:4 by Joe Locash, 2 years ago

Bruce, is there a link to the big_buck_bunny.mp4 video you test with?

The "Protocol name not provided..." message is from ffmpeg and I see it a lot.

The 2 "Mismatching header version" messages are not, and I've not been able to reproduce them in any video I've thrown at mplayer.

It looks like you might have a mix of mplayer and ffmpeg libs in various states installed. The mplayer download from their site includes a copy of the ffmpeg that it was built against.

I do have a big buck bunny vid I use for testing but it's not the same:

Playing big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4.
libavformat version 59.16.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8dbf093560]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps  7254.9 kbps (885.6 kbyte/s)
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.18.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 1
 compatible_brands: isommp423gp5
 creation_time: 2011-08-04T01:51:12.000000Z
 title: big_buck_bunny_1080p_surround.avi_006.AVI.MP4
 artist: created with SUPER(C).v2011.bld.49
 encoder: eRightSoft
 comment: 09:51:32
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 96.1 kbit/3.40% (ratio: 12009->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))

I'm testing with ffmpeg-5.0.1 and mplayer svn revision 38369.

comment:5 by Bruce Dubbs, 2 years ago

My copy of big_buck_bunny.mp4 is at:

https://anduin.linuxfromscratch.org/~bdubbs/files/

in reply to:  5 comment:6 by Joe Locash, 2 years ago

Replying to Bruce Dubbs:

My copy of big_buck_bunny.mp4 is at:

https://anduin.linuxfromscratch.org/~bdubbs/files/

Played fine and without the mismatching header versions:

Playing big_buck_bunny.mp4.
libavformat version 59.16.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fecfa862560]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: audio (aac), -aid 0, -alang eng
[lavf] stream 1: video (h264), -vid 0
VIDEO:  [H264]  640x360  24bpp  24.000 fps  612.2 kbps (74.7 kbyte/s)
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.18.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 1
 compatible_brands: mp42avc1
 creation_time: 2010-02-09T01:55:39.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 65.1 kbit/4.61% (ratio: 8134->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 22050Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x360 => 640x360 Planar YV12

comment:7 by Bruce Dubbs, 2 years ago

Milestone: 99-Waiting11.2
Summary: mplayer-1.5 (wait for book update to ffmpeg-5)MPlayer-1.5

comment:8 by Bruce Dubbs, 2 years ago

Resolution: fixed
Status: assignedclosed

Fixed at commits

13cfc2cf6a Update to MPlayer-1.5.
0ff2be9969 Update to inih-r56.
64f69a20f8 Update to libuv-v1.44.2.
002959b300 Update to mpg123-1.30.1.
4aa5f4547e Update to libgsf-1.14.50.
Note: See TracTickets for help on using tickets.