Discussion:
cmus 2.4.3 on FreeBSD
Gregory Petrosyan
2011-12-26 11:29:55 UTC
Permalink
Thanks a lot for the report!

I'm forwarding this to cmus-devel mailing list, please use the ML directly in case you'll encounter any cmus-related problems in the future.

ffmpeg version hell makes me even think that we should just default to [n] for it in ./configure! What do you think?
Тема: cmus 2.4.3 on FreeBSD
Дата: 26 декабря 2011 г. 13:31:33 Московское стандартное время
Hi!
/usr/local/include/libavformat/avformat.h:158: warning: 'AVMetadata'
is deprecated
ffmpeg.c:59:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
In file included from /usr/local/include/libavcodec/avcodec.h:33,
/usr/local/include/libavutil/dict.h:29:1: warning: this is the
location of the previous definition
ffmpeg.c:183: warning: 'av_open_input_file' is deprecated (declared at
/usr/local/include/libavformat/avformat.h:1173)
ffmpeg.c:451: warning: 'AVMetadataTag' is deprecated
ffmpeg.c:453: warning: 'av_metadata_get' is deprecated (declared at
/usr/local/include/libavformat/avformat.h:145)
ffmpeg.c:453: error: 'AV_DICT_IGNORE_SUFFIX' undeclared (first use in
this function)
ffmpeg.c:453: error: (Each undeclared identifier is reported only once
ffmpeg.c:453: error: for each function it appears in.)
gmake: *** [ffmpeg.lo] Error 1
--- ffmpeg.c.bak 2011-12-26 10:24:52.000000000 +0100
+++ ffmpeg.c 2011-12-26 10:26:38.000000000 +0100
@@ -56,7 +56,6 @@
#endif
#if (LIBAVUTIL_VERSION_INT < ((51<<16)+(5<<8)+0))
-#define AV_DICT_IGNORE_SUFFIX AV_METADATA_IGNORE_SUFFIX
#define av_dict_get av_metadata_get
#define AVDictionaryEntry AVMetadataTag
#endif
FreeBSD uses ffmpeg-0.7.8
Is there a better fix?
BR
Herbert
Gregory Petrosyan
2011-12-27 13:05:41 UTC
Permalink
Same error here on Gentoo Linux. What file formats is ffmpeg
responsible for in cmus?
None of the major ones, actually — only .wma is not handled by other plugins
(in a much better way).

Gregory
Gregory Petrosyan
2011-12-27 14:14:44 UTC
Permalink
/usr/local/include/libavformat/avformat.h:158: warning: 'AVMetadata'
is deprecated
ffmpeg.c:59:1: warning: "AV_DICT_IGNORE_SUFFIX" redefined
FreeBSD uses ffmpeg-0.7.8
According to the APIchanges document in the ffmpeg source tree, AVMetadata was deprecated (and AVDict* were introduced) in lavu-51.8.0, and 0.7.8 should ship with lavu-50.43.0.

ffmpeg development is completely mad indeed. Since the only major format that is not supported by any other plugin is WMA, I think it is better to disable ffmpeg plugin by default, instead of constantly fighting with their broken incompatible releases.

Gregory

Loading...