Opened 15 years ago

Closed 15 years ago

#24224 closed defect (duplicate)

New x264 port breaks ffmpeg-devel

Reported by: davidfavor (David Favor) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: mf2k (Frank Schima), egbokalaka@…, lang@…, funkypuck@…, othiman@…
Port: ffmpeg-devel

Description

This problem exists since the update of x264 this week.

/usr/bin/gcc-4.2 -DHAVE_AV_CONFIG_H -I. -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg-devel/work/trunk" -I/opt/local/include -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -DHAVE_LRINTF -I/opt/local/include -arch x86_64   -std=c99 -fomit-frame-pointer -fPIC -I/opt/local/include/dirac -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/liboil-0.3 -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -fno-tree-vectorize         -MMD -MF libavcodec/libx264.d -MT libavcodec/libx264.o -c -o libavcodec/libx264.o libavcodec/libx264.c
libavcodec/libx264.c: In function 'encode_nals':
libavcodec/libx264.c:75: warning: implicit declaration of function 'x264_nal_encode'
libavcodec/libx264.c: In function 'X264_init':
libavcodec/libx264.c:190: error: 'x264_param_t' has no member named 'b_bframe_pyramid'
gmake: *** [libavcodec/libx264.o] Error 1

Attachments (2)

x264-20091018.diff (2.7 KB) - added by davidfavor (David Favor) 15 years ago.
x264-2009-10-18.portfile (2.2 KB) - added by davidfavor (David Favor) 15 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 15 years ago by davidfavor (David Favor)

Luckily only ffmpeg-devel is broken, so the temp fix is to install ffmpeg till this is fixed.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to devans@…
Port: ffmpeg-devel added
Priority: HighNormal

comment:3 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:4 Changed 15 years ago by davidfavor (David Favor)

This ticket may be a duplicate of #24225.

comment:5 Changed 15 years ago by egbokalaka@…

Cc: egbokalaka@… added

Cc Me!

comment:6 Changed 15 years ago by lang@…

Cc: lang@… added

Cc Me!

comment:7 Changed 15 years ago by marcpawl@…

It also breaks kdenlive. You cannot have ffmpeg installed as the work around.

$ sudo port install kdenlive
--->  Computing dependencies for kdenliveError: Unable to execute port: Can't install ffmpeg-devel because conflicting ports are installed: ffmpeg
Before reporting a bug, first run the command again with the -d flag to get complete output.
Peiying-Zhus-iMac:bin peiying$ sudo port uninstall ffmpeg
--->  Deactivating ffmpeg @0.5.1_1+darwin_10
--->  Uninstalling ffmpeg @0.5.1_1+darwin_10
$ uname -a
Darwin XXXX.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 23:08:29 PST 2009; root:xnu-1486.2.11~3/RELEASE_I386 i386
$

comment:8 Changed 15 years ago by davidfavor (David Favor)

Looks like this was simply a symbol rename in some of the latest x264 code.

Can the x264 component owner update this ticket to let everyone know an ETA for the fix.

Thanks.

comment:9 Changed 15 years ago by funkypuck@…

Cc: funkypuck@… added

Cc Me!

comment:10 Changed 15 years ago by othiman@…

Cc: othiman@… added

Cc Me!

comment:11 Changed 15 years ago by davidfavor (David Favor)

mplayer-devel also broken.

comment:12 Changed 15 years ago by davidfavor (David Favor)

Attached is a portfile that fixes the ffmpeg-devel & mplayer-devel ports.

This is a simple fix. It uses the last x264 snapshot before symbol names changed.

I recommend there be a single, unified maintainer to organize all future portfile changes between x264, ffmpeg-devel & mplayer-devel. This will ensure all these package maintain functionality together.

If no one steps up to do this, I'll volunteer.

Attached are two files. The diff can be applied against the current x264 portfile to produce a portfile which works with all other 1.8.2 level ports.

The full portfile can be used as follows:

1) port uninstall x264, ffmpeg*, mplayer* and dependencies

2) Replace /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/x264/Portfile with the attached Porfile

3) port install x264 +asm (which uses the new portfile)

4) port install ffmpeg +speex

5) port install mplayer-devel +aa +caca +dirac +dts +dv +faac +fribidi +glx +live +mng +mencoder_extras +osd +sdl +speex +twolame +x264 +xvid +x11

This will give the most recent x264 prior to the symbol name change along with a working ffmpeg & mplayer.

I've just started work fixing portfiles for latest ffmpeg & mplayer against latest x264.

Track this bug for new working version as soon as I figure out the correct incantations.

Changed 15 years ago by davidfavor (David Favor)

Attachment: x264-20091018.diff added

Changed 15 years ago by davidfavor (David Favor)

Attachment: x264-2009-10-18.portfile added

comment:13 Changed 15 years ago by davidfavor (David Favor)

Ticket #24461 superceeds this ticket and this ticket should be closed.

Ticket #24461 submits updated portfile unified diffs for x264, ffmpeg-devel & mplayer-devel to bring them up to latest snapshots, which is required for ffmpeg & mplayer to work with recent x264 changes.

comment:14 Changed 15 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.