Opened 13 months ago

Last modified 4 hours ago

#67303 new defect

aubio @0.4.9 does not build with ffmpeg 5.0: source_avcodec.c: error: ‘AVStream’ has no member named ‘codec’

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: aubio

Description

In file included from /opt/local/include/libavutil/avutil.h:296,
                 from /opt/local/include/libavutil/samplefmt.h:24,
                 from /opt/local/include/libavcodec/avcodec.h:30,
                 from ../src/io/source_avcodec.c:25:
/opt/local/include/libavutil/common.h: In function ‘av_sat_add64_c’:
/opt/local/include/libavutil/common.h:354: warning: suggest parentheses around arithmetic in operand of |
../src/io/source_avcodec.c: In function ‘new_aubio_source_avcodec’:
../src/io/source_avcodec.c:195: error: ‘AVStream’ has no member named ‘codec’
../src/io/source_avcodec.c:229: error: ‘AVStream’ has no member named ‘codec’
../src/io/source_avcodec.c:230: warning: assignment discards qualifiers from pointer target type
../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_readframe’:
../src/io/source_avcodec.c:381: warning: ‘av_init_packet’ is deprecated (declared at /opt/local/include/libavcodec/packet.h:506)
../src/io/source_avcodec.c:425: warning: implicit declaration of function ‘avcodec_decode_audio4’

Waf: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_aubio/aubio/work/aubio-0.4.9/build'
Build failed

Apparently codec has been deprecated: https://github.com/opencv/opencv/issues/20148

Change History (3)

comment:1 Changed 22 hours ago by aeiouaeiouaeiouaeiouaeiouaeiou

Looks like this has already been fixed in the upstream: https://github.com/aubio/aubio/commit/8a05420e5dd8c7b8b2447f82dc919765876511b3

comment:2 Changed 21 hours ago by ryandesign (Ryan Carsten Schmidt)

Summary: aubio does not build with ffmpeg 5.0: source_avcodec.c: error: ‘AVStream’ has no member named ‘codec’aubio @0.4.9 does not build with ffmpeg 5.0: source_avcodec.c: error: ‘AVStream’ has no member named ‘codec’

…over two years ago. They need to release a new version: https://github.com/aubio/aubio/issues/381

Also, the error reported in this ticket should not occur for users because the aubio port uses ffmpeg 4, not 5. There is no ffmpeg 5 in MacPorts.

comment:3 in reply to:  2 Changed 4 hours ago by barracuda156

Replying to ryandesign:

…over two years ago. They need to release a new version: https://github.com/aubio/aubio/issues/381

Also, the error reported in this ticket should not occur for users because the aubio port uses ffmpeg 4, not 5. There is no ffmpeg 5 in MacPorts.

I had it upgraded to 5, but for w/e reason Macports skipped that version. I will check if this builds with ffmpeg 4.

Note: See TracTickets for help on using tickets.