#90 Unable to build with new FFMPEG API

open
nobody
8
2011-04-30
2011-04-21
Kyle
No

The latest FFMPEG has removed the depreciated api that src/metadata/ffmpeg_handler.cc was using to get metadata:

CODEC_TYPE_VIDEO is now AVMEDIA_TYPE_VIDEO
CODEC_TYPE_AUDIO is now AVMEDIA_TYPE_AUDIO

And the metadata handlers have changed but I don't really know where to begin to fix that.

Here is the log for where it errors out:
make all-recursive
make[1]: Entering directory `/usr/src/mediatomb'
Making all in tombupnp
make[2]: Entering directory `/usr/src/mediatomb/tombupnp'
Making all in build
make[3]: Entering directory `/usr/src/mediatomb/tombupnp/build'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/mediatomb/tombupnp/build'
make[3]: Entering directory `/usr/src/mediatomb/tombupnp'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/mediatomb/tombupnp'
make[2]: Leaving directory `/usr/src/mediatomb/tombupnp'
Making all in build
make[2]: Entering directory `/usr/src/mediatomb/build'
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -I/usr/include/mozjs -I/usr/include/taglib -pthread -g -O2 -MT libmediatomb_a-ffmpeg_handler.o -MD -MP -MF .deps/libmediatomb_a-ffmpeg_handler.Tpo -c -o libmediatomb_a-ffmpeg_handler.o `test -f '../src/metadata/ffmpeg_handler.cc' || echo './'`../src/metadata/ffmpeg_handler.cc
../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext*)’:
../src/metadata/ffmpeg_handler.cc:92:25: error: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:94:6: error: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:96:51: error: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:98:25: error: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:100:6: error: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:102:51: error: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:104:25: error: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:106:6: error: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:108:51: error: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:110:18: error: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:112:6: error: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:114:64: error: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:116:25: error: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:118:6: error: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:120:51: error: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:122:25: error: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:124:6: error: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:126:51: error: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:128:18: error: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc:130:6: error: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc:132:64: error: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegResourceFields(zmm::Ref<CdsItem>, AVFormatContext*, int*, int*)’:
../src/metadata/ffmpeg_handler.cc:181:71: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
../src/metadata/ffmpeg_handler.cc:212:31: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
make[2]: *** [libmediatomb_a-ffmpeg_handler.o] Error 1
make[2]: Leaving directory `/usr/src/mediatomb/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mediatomb'
make: *** [all] Error 2

Discussion

  • Kyle
    Kyle
    2011-04-30

    • priority: 5 --> 8