#18381 closed enhancement (fixed)
mplayer-1.5 FTBFS with binutils-2.41
| Reported by: | Joe Locash | Owned by: | Bruce Dubbs |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0 |
| Component: | BOOK | Version: | git |
| Severity: | medium | Keywords: | |
| Cc: |
Description
The patch for ffmpeg-6.0 can also be used here:
patch -Np1 -d ffmpeg/ -i <path to>/ffmpeg-6.0_binutils-2.41.patch
I've switched to using mpv which is based on mplayer but uses the system ffmpeg.
Change History (12)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
mplayer is an "end" package. That is, nothing depends on it. I'm hoping upstream will make a new release soon. We can delay fixing this until just before we release blfs-12.0.
comment:3 by , 3 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
I took a closer look at this. Indeed the patch works. Unfortunately I did not see anything on the mplayer mailing lists about this. I checked to see if we could use system ffmpeg, but nothing about that was obvious in configure --help.
The current release was from February 2022 so I'm not hopeful for a release any time soon. I'll add the patch to the book.
comment:4 by , 3 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
There was also a missing upstream_ffmpg6_fixes patch. Both patches were added.
Fixed at commit 2415b9446dfd02c1435e66c821d2904954991a22
comment:5 by , 3 years ago
The option to build mplayer against the system installed ffmpeg is in the book but doesn't have a good description. It's --disable-ffmpeg_a
configure --help gives:
--disable-ffmpeg_a disable static FFmpeg [autodetect] --disable-ffmpeg_so disable shared FFmpeg [autodetect]
The book says:
--disable-ffmpeg_a: You can use this option if you have installed a version of ffmpeg prior to ffmpeg-6.0. This version of MPlayer is incompatible with the latest version of ffmpeg. MPlayer does include a copy of the FFmpeg source and without this option it will statically compile the included version of FFmpeg into itself.
Since the book does use ffmpeg-6, that option is not appropriate for us.
follow-up: 7 comment:6 by , 3 years ago
Why was my previous comment edited?
But to address: "Since the book does use ffmpeg-6, that option is not appropriate for us."
That is incorrect. If you do not pass --disable-ffmeg_a it will build and use the bundled ffmpeg version. Like I said, the description of --disable-ffmpeg_a in the book isn't that good.
follow-up: 8 comment:7 by , 3 years ago
Replying to Joe Locash:
Why was my previous comment edited?
Because I inadvertently selected edit instead of reply. Sorry.
But to address: "Since the book does use ffmpeg-6, that option is not appropriate for us."
That is incorrect. If you do not pass --disable-ffmeg_a it will build and use the bundled ffmpeg version. Like I said, the description of --disable-ffmpeg_a in the book isn't that good.
That's right. We are applying the valid ffmpeg6 fixes to the version in the book. AFAIK the full ffmpeg-6 still does not work with mplayer, but the instructions in the book now do. How would you change the description in the book?
comment:8 by , 3 years ago
Replying to Bruce Dubbs:
Replying to Joe Locash:
Why was my previous comment edited?
Because I inadvertently selected edit instead of reply. Sorry.
That's what i figured.
But to address: "Since the book does use ffmpeg-6, that option is not appropriate for us."
That is incorrect. If you do not pass --disable-ffmeg_a it will build and use the bundled ffmpeg version. Like I said, the description of --disable-ffmpeg_a in the book isn't that good.
That's right. We are applying the valid ffmpeg6 fixes to the version in the book. AFAIK the full ffmpeg-6 still does not work with mplayer, but the instructions in the book now do. How would you change the description in the book?
mplayer works fine with upstream ffmpeg6. The latest ffmpeg changes for mplayer are always in svn.
The instructions in the book work because you don't pass --disable_ffmpeg_a to configure in the book. By not passing it, you're building against the bundled ffmpeg which is v5.1.
comment:9 by , 3 years ago
I'll try with system ffmpeg6. Does it just need the ffmpeg-6.0-binutils_2.41-1.patch?
comment:11 by , 3 years ago
The package builds but
$ mplayer big_buck_bunny.mp4
Playing big_buck_bunny.mp4. libavformat version 60.3.100 (external) Mismatching header version 59.17.102 libavformat file format detected. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe6388f2e40]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
but with the instructions in the book it plays fine.
comment:12 by , 3 years ago
Build using the latest mplayer source snapshot: http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2

Confirmed, the command works (in terms of applying as well as successful compilation of mplayer)