[libmediatomb_a-ffmpeg_handler.o] Error 1

Help
Anonymous
2013-01-26
2013-05-30

  • Anonymous
    2013-01-26

    hi again

    till now I compiled mediatomb without having detected ffmpeg. Nevertheless, it was not a problem since mediatomb binary can use ffmpeg to transcode.
    Now I did rebuild ffmpeg & ffmpegthumbnailer under /usr/lib, and mediatomb do detect it successfuly :

    CONFIGURATION SUMMARY ----
    sqlite3               : yes
    mysql                 : yes
    libjs                 : yes
    libmagic              : yes
    inotify               : yes
    libexif               : yes
    id3lib                : disabled
    taglib                : yes
    libmp4v2              : yes
    ffmpeg                : yes
    ffmpegthumbnailer     : yes
    lastfmlib             : yes
    external transcoding  : yes
    curl                  : yes
    YouTube               : yes
    libextractor          : disabled
    db-autocreate         : yes
    

    However now I'm not able to make it anymore : I now am facing this bug :
    https://bugs.launchpad.net/ubuntu/+source/mediatomb/+bug/784431

    si I applyied the pach from https://launchpadlibrarian.net/71985647/libav_0.7_support.patch

    the make goes further but crash anyway :

    ../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext*)’:
    ../src/metadata/ffmpeg_handler.cc:110: error: ‘AVMetadataTag’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:110: error: ‘tag’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:111: error: ‘av_metadata_get’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc: In member function ‘virtual void FfmpegHandler::fillMetadata(zmm::Ref<CdsItem>)’:
    ../src/metadata/ffmpeg_handler.cc:293: error: ‘av_open_input_file’ was not declared in this scope
    ../src/metadata/ffmpeg_handler.cc:297: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1504)
    ../src/metadata/ffmpeg_handler.cc:297: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1504)
    ../src/metadata/ffmpeg_handler.cc:299: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1680)
    ../src/metadata/ffmpeg_handler.cc:299: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1680)
    ../src/metadata/ffmpeg_handler.cc:308: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1680)
    ../src/metadata/ffmpeg_handler.cc:308: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1680)
    

    I tried the git version too, issue is the same
    BTW, what's the benefit of compiling with ffmpeg detected, since without it mediatomb is able to parse video tags anyway ??

     
  • Jin
    Jin
    2013-01-26

    Now wait, yesterday night I pushed a new version to git that works fine on Fedora 18, that should have a libav version >0.7, when did you checkout the git sources? Today or earlier?

    MediaTomb is able to parse video tags for mp4 files using libmp4v2, but it won't parse tags of AVI or other files when compiled without ffmpeg.

     

  • Anonymous
    2013-01-26

    today, somes hours ago
    i'm on fedora 12
    but, ffmpeg 1.1 is packed with libav, and I didn't found out yet which version of libav it's paccked with.
    should I build libav 0.9.1 appart and recompile ffmpeg before mediatomb ?

     

  • Anonymous
    2013-01-26

    I did it again, I compiled libav 0.9.1 appart too, but error is still the same
    could the Fedora release 12 (Constantine) be the problem ?

     
  • Jin
    Jin
    2013-01-26

    Could very well be, back in the ffmpeg API was changing very often.

    Latest git will work if you install ffmpeg-libs-1.0.1 (which is available in Fedora 18)… I'm dropping support for older versions now, it's just too difficult to maintain.

     

  • Anonymous
    2013-01-26

    i will tell it to Thecus ;)