Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (40)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6515)

  • Make Qt Player codec independent

    16 mars 2016, par Tejas Virpariya

    I develop Qt application which can play more then one video file using bellow code.

    QMediaPlayer *player;
    QString fileName = "C:/username/test.h264";
    player->setmedia(QUrl::fromLocalFile(fileName));

    In starting I cannot play all types of video file, so I install codec on my system, now when my player start codec decoder start, and my CPU usage reach at high.(Show the bellow Image)

    enter image description here

    You can see in above image right side bottom corner LAW(Red label) which saw external decoder started.

    Now, I want to make my Qt Player codec independent, means I know my player have to play only .h264 file, so I will use only h264 decoder and no need of audio so I will not use audio decoder.

    As per my knowledge, QMediaPlayer start decoder when it come in picture, correct me if i am wrong. So What can I do to stop external decoder and decode frame internally and play successfully ?

    EDIT : code for audio decode using FFmpeg

    FFmpegAudio.pro

    TARGET = fooAudioFFMPEG
    QT       += core gui qml quick widgets
    TEMPLATE = app
    SOURCES += main.cpp \
       mainwindow.cpp
    HEADERS += mainwindow.h \
       wrapper.h
    FORMS += mainwindow.ui
    QMAKE_CXXFLAGS += -D__STDC_CONSTANT_MACROS

    LIBS += -pthread
    LIBS += -L/usr/local/lib
    LIBS += -lavdevice
    LIBS += -lavfilter
    LIBS += -lpostproc
    LIBS += -lavformat
    LIBS += -lavcodec
    LIBS += -ldl
    LIBS += -lXfixes
    LIBS += -lXext
    LIBS += -lX11
    LIBS += -lasound
    LIBS += -lSDL
    LIBS += -lx264
    LIBS += -lvpx
    LIBS += -lvorbisenc
    LIBS += -lvorbis
    LIBS += -logg
    LIBS += -lopencore-amrwb
    LIBS += -lopencore-amrnb
    LIBS += -lmp3lame
    LIBS += -lfaac
    LIBS += -lz
    LIBS += -lrt
    LIBS += -lswscale
    LIBS += -lavutil
    LIBS += -lm

    mainwindow.h

    #ifndef MAINWINDOW_H
    #define MAINWINDOW_H

    #include <qmainwindow>

    namespace Ui {
       class MainWindow;
    }

    class MainWindow : public QMainWindow {
       Q_OBJECT
    public:
       MainWindow(QWidget *parent = 0);
       ~MainWindow();

    protected:
       void changeEvent(QEvent *e);

    private:
       Ui::MainWindow *ui;

    private slots:
       void on_pushButton_clicked();
    };

    #endif // MAINWINDOW_H
    </qmainwindow>

    wrapper.h

    #ifndef WRAPPER_H_
    #define WRAPPER_H_

    #include

    #include <libavutil></libavutil>opt.h>
    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavutil></libavutil>channel_layout.h>
    #include <libavutil></libavutil>common.h>
    #include <libavutil></libavutil>imgutils.h>
    #include <libavutil></libavutil>mathematics.h>
    #include <libavutil></libavutil>samplefmt.h>

    #define INBUF_SIZE 4096
    #define AUDIO_INBUF_SIZE 20480
    #define AUDIO_REFILL_THRESH 4096



    /* check that a given sample format is supported by the encoder */
    static int check_sample_fmt(AVCodec *codec, enum AVSampleFormat sample_fmt)
    {
       const enum AVSampleFormat *p = codec->sample_fmts;

       while (*p != AV_SAMPLE_FMT_NONE) {
           if (*p == sample_fmt)
               return 1;
           p++;
       }
       return 0;
    }

    /* just pick the highest supported samplerate */
    static int select_sample_rate(AVCodec *codec)
    {
       const int *p;
       int best_samplerate = 0;

       if (!codec->supported_samplerates)
           return 44100;

       p = codec->supported_samplerates;
       while (*p) {
           best_samplerate = FFMAX(*p, best_samplerate);
           p++;
       }
       return best_samplerate;
    }

    /* select layout with the highest channel count */
    static int select_channel_layout(AVCodec *codec)
    {
       const uint64_t *p;
       uint64_t best_ch_layout = 0;
       int best_nb_channells   = 0;

       if (!codec->channel_layouts)
           return AV_CH_LAYOUT_STEREO;

       p = codec->channel_layouts;
       while (*p) {
           int nb_channels = av_get_channel_layout_nb_channels(*p);

           if (nb_channels > best_nb_channells) {
               best_ch_layout    = *p;
               best_nb_channells = nb_channels;
           }
           p++;
       }
       return best_ch_layout;
    }

    /*
    * Audio encoding example
    */
    static void audio_encode_example(const char *filename)
    {
       AVCodec *codec;
       AVCodecContext *c= NULL;
       AVFrame *frame;
       AVPacket pkt;
       int i, j, k, ret, got_output;
       int buffer_size;
       FILE *f;
       uint16_t *samples;
       float t, tincr;

       printf("Encode audio file %s\n", filename);

       /* find the MP2 encoder */
       codec = avcodec_find_encoder(AV_CODEC_ID_MP2);
       if (!codec) {
           fprintf(stderr, "Codec not found\n");
           exit(1);
       }

       c = avcodec_alloc_context3(codec);
       if (!c) {
           fprintf(stderr, "Could not allocate audio codec context\n");
           exit(1);
       }

       /* put sample parameters */
       c->bit_rate = 64000;

       /* check that the encoder supports s16 pcm input */
       c->sample_fmt = AV_SAMPLE_FMT_S16;
       if (!check_sample_fmt(codec, c->sample_fmt)) {
           fprintf(stderr, "Encoder does not support sample format %s",
                   av_get_sample_fmt_name(c->sample_fmt));
           exit(1);
       }

       /* select other audio parameters supported by the encoder */
       c->sample_rate    = select_sample_rate(codec);
       c->channel_layout = select_channel_layout(codec);
       c->channels       = av_get_channel_layout_nb_channels(c->channel_layout);

       /* open it */
       if (avcodec_open2(c, codec, NULL) &lt; 0) {
           fprintf(stderr, "Could not open codec\n");
           exit(1);
       }

       f = fopen(filename, "wb");
       if (!f) {
           fprintf(stderr, "Could not open %s\n", filename);
           exit(1);
       }

       /* frame containing input raw audio */
       frame = avcodec_alloc_frame();
       if (!frame) {
           fprintf(stderr, "Could not allocate audio frame\n");
           exit(1);
       }

       frame->nb_samples     = c->frame_size;
       frame->format         = c->sample_fmt;
       frame->channel_layout = c->channel_layout;

       /* the codec gives us the frame size, in samples,
        * we calculate the size of the samples buffer in bytes */
       buffer_size = av_samples_get_buffer_size(NULL, c->channels, c->frame_size,
                                                c->sample_fmt, 0);
       samples = (uint16_t *)av_malloc(buffer_size);
       if (!samples) {
           fprintf(stderr, "Could not allocate %d bytes for samples buffer\n",
                   buffer_size);
           exit(1);
       }
       /* setup the data pointers in the AVFrame */
       ret = avcodec_fill_audio_frame(frame, c->channels, c->sample_fmt,
                                      (const uint8_t*)samples, buffer_size, 0);
       if (ret &lt; 0) {
           fprintf(stderr, "Could not setup audio frame\n");
           exit(1);
       }

       /* encode a single tone sound */
       t = 0;
       tincr = 2 * M_PI * 440.0 / c->sample_rate;
       for(i=0;i&lt;200;i++) {
           av_init_packet(&amp;pkt);
           pkt.data = NULL; // packet data will be allocated by the encoder
           pkt.size = 0;

           for (j = 0; j &lt; c->frame_size; j++) {
               samples[2*j] = (int)(sin(t) * 10000);

               for (k = 1; k &lt; c->channels; k++)
                   samples[2*j + k] = samples[2*j];
               t += tincr;
           }
           /* encode the samples */
           ret = avcodec_encode_audio2(c, &amp;pkt, frame, &amp;got_output);
           if (ret &lt; 0) {
               fprintf(stderr, "Error encoding audio frame\n");
               exit(1);
           }
           if (got_output) {
               fwrite(pkt.data, 1, pkt.size, f);
               av_free_packet(&amp;pkt);
           }
       }

       /* get the delayed frames */
       for (got_output = 1; got_output; i++) {
           ret = avcodec_encode_audio2(c, &amp;pkt, NULL, &amp;got_output);
           if (ret &lt; 0) {
               fprintf(stderr, "Error encoding frame\n");
               exit(1);
           }

           if (got_output) {
               fwrite(pkt.data, 1, pkt.size, f);
               av_free_packet(&amp;pkt);
           }
       }
       fclose(f);

       av_freep(&amp;samples);
       avcodec_free_frame(&amp;frame);
       avcodec_close(c);
       av_free(c);
    }

    /*
    * Audio decoding.
    */
    static void audio_decode_example(const char *outfilename, const char *filename)
    {
       AVCodec *codec;
       AVCodecContext *c= NULL;
       int len;
       FILE *f, *outfile;
       uint8_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
       AVPacket avpkt;
       AVFrame *decoded_frame = NULL;

       av_init_packet(&amp;avpkt);

       printf("Decode audio file %s to %s\n", filename, outfilename);

       /* find the mpeg audio decoder */
       codec = avcodec_find_decoder(AV_CODEC_ID_MP2);
       if (!codec) {
           fprintf(stderr, "Codec not found\n");
           exit(1);
       }

       c = avcodec_alloc_context3(codec);
       if (!c) {
           fprintf(stderr, "Could not allocate audio codec context\n");
           exit(1);
       }

       /* open it */
       if (avcodec_open2(c, codec, NULL) &lt; 0) {
           fprintf(stderr, "Could not open codec\n");
           exit(1);
       }

       f = fopen(filename, "rb");
       if (!f) {
           fprintf(stderr, "Could not open %s\n", filename);
           exit(1);
       }
       outfile = fopen(outfilename, "wb");
       if (!outfile) {
           av_free(c);
           exit(1);
       }

       /* decode until eof */
       avpkt.data = inbuf;
       avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f);

       while (avpkt.size > 0) {
           int got_frame = 0;

           if (!decoded_frame) {
               if (!(decoded_frame = avcodec_alloc_frame())) {
                   fprintf(stderr, "Could not allocate audio frame\n");
                   exit(1);
               }
           } else
               avcodec_get_frame_defaults(decoded_frame);

           len = avcodec_decode_audio4(c, decoded_frame, &amp;got_frame, &amp;avpkt);
           if (len &lt; 0) {
               fprintf(stderr, "Error while decoding\n");
               exit(1);
           }
           if (got_frame) {
               /* if a frame has been decoded, output it */
               int data_size = av_samples_get_buffer_size(NULL, c->channels,
                                                          decoded_frame->nb_samples,
                                                          c->sample_fmt, 1);
               fwrite(decoded_frame->data[0], 1, data_size, outfile);
           }
           avpkt.size -= len;
           avpkt.data += len;
           avpkt.dts =
           avpkt.pts = AV_NOPTS_VALUE;
           if (avpkt.size &lt; AUDIO_REFILL_THRESH) {
               /* Refill the input buffer, to avoid trying to decode
                * incomplete frames. Instead of this, one could also use
                * a parser, or use a proper container format through
                * libavformat. */
               memmove(inbuf, avpkt.data, avpkt.size);
               avpkt.data = inbuf;
               len = fread(avpkt.data + avpkt.size, 1,
                           AUDIO_INBUF_SIZE - avpkt.size, f);
               if (len > 0)
                   avpkt.size += len;
           }
       }

       fclose(outfile);
       fclose(f);

       avcodec_close(c);
       av_free(c);
       avcodec_free_frame(&amp;decoded_frame);
    }

    /*
    * Main WRAPPER function
    */
    void service(){


       /* register all the codecs */
       avcodec_register_all();


       audio_encode_example("test.mp2");
       audio_decode_example("test.sw", "test.mp2");

    }

    #endif

    main.cpp

    #include <qapplication>
    #include "mainwindow.h"

    extern "C"{
       #include "wrapper.h"
    }

    int main(int argc, char *argv[])
    {
       service(); //calling the function service inside the wrapper

       QApplication a(argc, argv);
       MainWindow w;
       w.show();
       return a.exec();
    }
    </qapplication>

    mainwindow.cpp

    #include "mainwindow.h"
    #include "ui_mainwindow.h"

    MainWindow::MainWindow(QWidget *parent) :
       QMainWindow(parent),
       ui(new Ui::MainWindow)
    {
       ui->setupUi(this);
    }

    MainWindow::~MainWindow()
    {
       delete ui;
    }

    void MainWindow::changeEvent(QEvent *e)
    {
       QMainWindow::changeEvent(e);
       switch (e->type()) {
       case QEvent::LanguageChange:
           ui->retranslateUi(this);
           break;
       default:
           break;
       }
    }

    void MainWindow::on_pushButton_clicked()
    {
           this->close();
    }

    mainwindow.ui
    //Nothing important

    Thanks.

  • Error in compiling FFmpeg with lame

    20 mars 2016, par user5761723

    I am trying to compile ffmpeg with lame for mp3 conversion. i am using Xcode 7.2 and ffmpeg-3.0, lame-3.99.5.

    I compiled lame library using following script...

    Build_lame.sh Script file :-

    #!/bin/sh

    CONFIGURE_FLAGS="--disable-shared --disable-frontend"

    ARCHS="arm64 armv7s x86_64 i386 armv7"

    # directories
    SOURCE="lame"
    FAT="fat-lame"

    SCRATCH="scratch-lame"
    # must be an absolute path
    THIN=`pwd`/"thin-lame"

    COMPILE="y"
    LIPO="y"

    if [ "$*" ]
    then
       if [ "$*" = "lipo" ]
       then
           # skip compile
           COMPILE=
       else
           ARCHS="$*"
           if [ $# -eq 1 ]
           then
               # skip lipo
               LIPO=
           fi
       fi
    fi

    if [ "$COMPILE" ]
    then
       CWD=`pwd`
       for ARCH in $ARCHS
       do
           echo "building $ARCH..."
           mkdir -p "$SCRATCH/$ARCH"
           cd "$SCRATCH/$ARCH"

           if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]
           then
               PLATFORM="iPhoneSimulator"
               if [ "$ARCH" = "x86_64" ]
               then
                   SIMULATOR="-mios-simulator-version-min=7.0"
                           HOST=x86_64-apple-darwin
               else
                   SIMULATOR="-mios-simulator-version-min=5.0"
                           HOST=i386-apple-darwin
               fi
           else
               PLATFORM="iPhoneOS"
               SIMULATOR=
                       HOST=arm-apple-darwin
           fi

           XCRUN_SDK=`echo $PLATFORM | tr '[:upper:]' '[:lower:]'`
           CC="xcrun -sdk $XCRUN_SDK clang -arch $ARCH"
           #AS="$CWD/$SOURCE/extras/gas-preprocessor.pl $CC"
           CFLAGS="-arch $ARCH $SIMULATOR"
           if ! xcodebuild -version | grep "Xcode [1-6]\."
           then
               CFLAGS="$CFLAGS -fembed-bitcode"
           fi
           CXXFLAGS="$CFLAGS"
           LDFLAGS="$CFLAGS"

           CC=$CC $CWD/$SOURCE/configure \
               $CONFIGURE_FLAGS \
                       --host=$HOST \
               --prefix="$THIN/$ARCH" \
                       CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"

           make -j3 install
           cd $CWD
       done
    fi

    if [ "$LIPO" ]
    then
       echo "building fat binaries..."
       mkdir -p $FAT/lib
       set - $ARCHS
       CWD=`pwd`
       cd $THIN/$1/lib
       for LIB in *.a
       do
           cd $CWD
           lipo -create `find $THIN -name $LIB` -output $FAT/lib/$LIB
       done

       cd $CWD
       cp -rf $THIN/$1/include $FAT
    fi

    and i'm compiling FFmpeg libraries with lame by using the following script..



    build_ffmpeg.sh

    #!/bin/bash

    ###########################################################################
    #  Choose your ffmpeg version and your currently-installed iOS SDK version:
    #
    VERSION="3.0"
    SDKVERSION="9.2"




    #
    #
    ###########################################################################
    #
    # Don't change anything under this line!
    #
    ###########################################################################

    # No need to change this since xcode build will only compile in the
    # necessary bits from the libraries we create
    ARCHS="arm64 armv7 armv7s i386"

    DEVELOPER=`xcode-select -print-path`

    cd "`dirname \"$0\"`"
    REPOROOT=$(pwd)

    # Where we'll end up storing things in the end
    OUTPUTDIR="${REPOROOT}/dependencies"
    mkdir -p ${OUTPUTDIR}/include
    mkdir -p ${OUTPUTDIR}/lib
    mkdir -p ${OUTPUTDIR}/bin


    BUILDDIR="${REPOROOT}/build"
    mkdir -p $BUILDDIR

    # where we will keep our sources and build from.
    SRCDIR="${BUILDDIR}/src"
    mkdir -p $SRCDIR
    # where we will store intermediary builds
    INTERDIR="${BUILDDIR}/built"
    mkdir -p $INTERDIR

    ########################################

    cd $SRCDIR

    # Exit the script if an error happens
    set -e

    if [ ! -e "${SRCDIR}/ffmpeg-${VERSION}.tar.bz2" ]; then
       echo "Downloading ffmpeg-${VERSION}.tar.bz2"
       curl -LO http://ffmpeg.org/releases/ffmpeg-${VERSION}.tar.bz2
    else
       echo "Using ffmpeg-${VERSION}.tar.bz2"
    fi

    tar zxf ffmpeg-${VERSION}.tar.bz2 -C $SRCDIR
    cd "${SRCDIR}/ffmpeg-${VERSION}"

    set +e # don't bail out of bash script if ccache doesn't exist
    CCACHE=`which ccache`
    if [ $? == "0" ]; then
       echo "Building with ccache: $CCACHE"
       CCACHE="${CCACHE} "
    else
       echo "Building without ccache"
       CCACHE=""
    fi
    set -e # back to regular "bail out on error" mode

    for ARCH in ${ARCHS}
    do
       if [ "${ARCH}" == "i386" ];
       then
           PLATFORM="iPhoneSimulator"
           EXTRA_CONFIG="--arch=i386 --disable-asm --enable-cross-compile --target-os=darwin --cpu=i386"
           EXTRA_CFLAGS="-arch i386 -I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include"
           EXTRA_LDFLAGS="-I${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk/usr/lib -L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"
        elif [ "${ARCH}" == "arm64" ];
        then

            PLATFORM="iPhoneOS"

            EXTRA_CONFIG="--arch=arm64 --target-os=darwin --enable-cross-compile --disable-armv5te"

           EXTRA_CFLAGS="-w -arch ${ARCH} -I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include -mfpu=neon"

           EXTRA_LDFLAGS="-L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"

       else
           PLATFORM="iPhoneOS"
           EXTRA_CONFIG="--arch=arm --target-os=darwin --enable-cross-compile --cpu=cortex-a9 --disable-armv5te"
           EXTRA_CFLAGS="-w -arch ${ARCH} --I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include -mfpu=neon"

           EXTRA_LDFLAGS="-L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"
    fi

       mkdir -p "${INTERDIR}/${ARCH}"

       ./configure --prefix="${INTERDIR}/${ARCH}" --disable-armv6 --disable-armv6t2 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-iconv --disable-bzlib --enable-avresample        --enable-gpl  --enable-libmp3lame --enable-nonfree --disable-pthreads --sysroot="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk" --cc="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc"  --extra-cflags="${EXTRA_CFLAGS} -miphoneos-version-min=7.0 -I${OUTPUTDIR}/include " --extra-ldflags="-arch ${ARCH} ${EXTRA_LDFLAGS} -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk -miphoneos-version-min=7.0 -L${OUTPUTDIR}/lib" ${EXTRA_CONFIG} --enable-pic --extra-cxxflags="$CPPFLAGS -I${OUTPUTDIR}/include -isysroot ${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk"

       make &amp;&amp; make install &amp;&amp; make clean

    done

    mkdir -p "${INTERDIR}/universal/lib"

    cd "${INTERDIR}/armv7/lib"
    for file in *.a
    do

    cd ${INTERDIR}
    xcrun -sdk iphoneos lipo -output universal/lib/$file  -create -arch arm64 arm64/lib/$file -arch armv7 armv7/lib/$file -arch armv7s armv7s/lib/$file -arch i386 i386/lib/$file
    echo "Universal $file created."

    done
    cp -r ${INTERDIR}/armv7/include ${INTERDIR}/universal/

    echo "Done."



    =======================

    During compilation i'm getting following Errors :-

    CC  libavcodec/lclenc.o
    CC  libavcodec/libmp3lame.o
    In file included from libavcodec/libmp3lame.c:27:
    In file included from /Users/akash/Desktop/lame-ios-build-master/fat-lame/include/lame/lame.h:23:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h:1:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CAInterAppAudioSwitcherView.h:13:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:436:1: error:
         expected identifier or '('
    @class NSString, Protocol;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:438:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:439:44: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
                                              ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:441:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:442:54: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT Class __nullable NSClassFromString(NSString *aClassName);
                                                        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:444:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVA...
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:444:50: error:
         unknown type name 'Protocol'
    FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVA...
                                                    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:445:19: error:
         unknown type name 'Protocol'
    FOUNDATION_EXPORT Protocol * __nullable NSProtocolFromString(NSString *n...
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:445:62: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT Protocol * __nullable NSProtocolFromString(NSString *n...
                                                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:449:30: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:449:53: error:
         format argument not an NSString
    FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
                                ~~~~~~~~~~~~~~~~       ^                  ~
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:98:49: note:
         expanded from macro 'NS_FORMAT_FUNCTION'
           #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString...
                                                          ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:450:31: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args) NS_FORMAT_...
                                 ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:450:63: error:
         format argument not an NSString
     ...void NSLogv(NSString *format, va_list args) NS_FORMAT_FUNCTION(1,0);
                    ~~~~~~~~~~~~~~~~                ^                  ~
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:98:49: note:
         expanded from macro 'NS_FORMAT_FUNCTION'
           #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString...
                                                          ^
    In file included from libavcodec/libmp3lame.c:27:
    In file included from /Users/akash/Desktop/lame-ios-build-master/fat-lame/include/lame/lame.h:23:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h:1:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CAInterAppAudioSwitcherView.h:13:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8:1: error:

    Can someone tell me what wrong with my approach ?
    can someone help me to solve this problem ?

  • FFmpeg Ubuntu linker error

    29 mars 2016, par CodeDezk

    I am trying to decode audio using ffmpeg lib and c++ from Ubuntu 12.04. I am following the code here https://0xdeafc0de.wordpress.com/2013/12/19/ffmpeg-audio-playback-sample/

    Below is the command used to compile the code

    g++ -std=c++11 decode_play_audio.cpp -I/home/codeDev/ffmpeg_sources/build_Mar-10-2016/include -L/home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib  -lavcodec -lavformat -lavutil

    But getting the compile error as below,

    I have build latest ffmpeg 3.0 and located at /home/codeDev/ffmpeg_sources/build_Mar-10-2016/

    And I can see all the libs located at /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib

     libavcodec.a
     libavfilter.a
     libavutil.a
     libswresample.a
     pkgconfig
     libavdevice.a
     libavformat.a
     libpostproc.a
     libswscale.a

    Error :

    decode_play_audio.cpp: In function ‘int main(int, char**)’:
    decode_play_audio.cpp:169:9: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /home/codeDev/ffmpeg_sources/build_Mar-10-2016/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]
            av_free_packet(&amp;packet);
            ^
    decode_play_audio.cpp:169:31: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /home/codeDev/ffmpeg_sources/build_Mar-10-2016/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]
            av_free_packet(&amp;packet);
                                  ^
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dvenc.o): In function `dv_init_mux':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dvenc.c:344: undefined reference to `av_dv_codec_profile2'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(matroskaenc.o): In function `get_aac_sample_rates':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskaenc.c:612: undefined reference to `avpriv_mpeg4audio_get_config'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(matroskaenc.o): In function `put_xiph_codecpriv':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskaenc.c:535: undefined reference to `avpriv_split_xiph_headers'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(movenc.o): In function `handle_eac3':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:347: undefined reference to `avpriv_ac3_parse_header'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:397: undefined reference to `avpriv_ac3_parse_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(movenc.o): In function `mov_get_rawvideo_codec_tag':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: undefined reference to `avpriv_pix_fmt_bps_mov'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(movenc.o): In function `mov_find_codec_tag':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: undefined reference to `avpriv_pix_fmt_bps_mov'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(movenc.o): In function `mov_get_rawvideo_codec_tag':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: undefined reference to `avpriv_pix_fmt_bps_mov'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: undefined reference to `avpriv_pix_fmt_bps_mov'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: undefined reference to `avpriv_pix_fmt_bps_mov'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(movenc.o):/home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/movenc.c:1383: more undefined references to `avpriv_pix_fmt_bps_mov' follow
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(swfdec.o): In function `swf_read_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/swfdec.c:364: undefined reference to `uncompress'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(swfdec.o): In function `swf_read_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/swfdec.c:153: undefined reference to `inflateInit_'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(swfdec.o): In function `zlib_refill':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/swfdec.c:121: undefined reference to `inflate'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(swfdec.o): In function `swf_read_close':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/swfdec.c:529: undefined reference to `inflateEnd'
    /tmp/cc18cojo.o: In function `main':
    decode_play_audio.cpp:(.text+0x1ec): undefined reference to `ao_initialize'
    decode_play_audio.cpp:(.text+0x1f1): undefined reference to `ao_default_driver_id'
    decode_play_audio.cpp:(.text+0x313): undefined reference to `ao_open_live'
    decode_play_audio.cpp:(.text+0x51e): undefined reference to `ao_play'
    decode_play_audio.cpp:(.text+0x639): undefined reference to `ao_play'
    decode_play_audio.cpp:(.text+0x66a): undefined reference to `ao_play'
    decode_play_audio.cpp:(.text+0x729): undefined reference to `ao_play'
    decode_play_audio.cpp:(.text+0x831): undefined reference to `ao_play'
    /tmp/cc18cojo.o:decode_play_audio.cpp:(.text+0x8ed): more undefined references to `ao_play' follow
    /tmp/cc18cojo.o: In function `main':
    decode_play_audio.cpp:(.text+0x961): undefined reference to `ao_shutdown'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_free':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/frame_thread_encoder.c:236: undefined reference to `pthread_join'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(frame_thread_encoder.o): In function `ff_frame_thread_encoder_init':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/frame_thread_encoder.c:211: undefined reference to `pthread_create'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(pthread_frame.o): In function `ff_frame_thread_free':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/pthread_frame.c:566: undefined reference to `pthread_join'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(pthread_frame.o): In function `ff_frame_thread_init':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/pthread_frame.c:706: undefined reference to `pthread_create'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(pthread_slice.o): In function `ff_slice_thread_free':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/pthread_slice.c:116: undefined reference to `pthread_join'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavcodec.a(pthread_slice.o): In function `ff_slice_thread_init':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavcodec/pthread_slice.c:231: undefined reference to `pthread_create'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(allformats.o): In function `av_register_all':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/allformats.c:59: undefined reference to `avcodec_register_all'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(async.o): In function `async_close':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/async.c:313: undefined reference to `pthread_join'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(async.o): In function `async_open':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/async.c:281: undefined reference to `pthread_create'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(avidec.o): In function `avi_extract_stream_metadata':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/avidec.c:411: undefined reference to `avpriv_exif_decode_ifd'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(avienc.o): In function `avi_write_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/avienc.c:363: undefined reference to `avpriv_pix_fmt_bps_avi'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(concatdec.o): In function `detect_stream_specific':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/concatdec.c:200: undefined reference to `av_bitstream_filter_init'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(concatdec.o): In function `filter_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/concatdec.c:502: undefined reference to `av_bitstream_filter_filter'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dnxhddec.o): In function `dnxhd_probe':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dnxhddec.c:33: undefined reference to `avpriv_dnxhd_parse_header_prefix'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dtsdec.o): In function `dts_probe':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dtsdec.c:72: undefined reference to `avpriv_dca_convert_bitstream'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dtsdec.c:89: undefined reference to `avpriv_dca_sample_rates'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dv.o): In function `dv_frame_offset':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dv.c:425: undefined reference to `av_dv_codec_profile2'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dv.o): In function `dv_read_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dv.c:529: undefined reference to `av_dv_frame_profile'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(dv.o): In function `avpriv_dv_produce_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/dv.c:375: undefined reference to `av_dv_frame_profile'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(flacdec.o): In function `flac_read_timestamp':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/flacdec.c:251: undefined reference to `av_parser_init'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/flacdec.c:266: undefined reference to `av_parser_parse2'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/flacdec.c:282: undefined reference to `av_parser_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(http.o): In function `http_close':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/http.c:1424: undefined reference to `inflateEnd'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(http.o): In function `parse_content_encoding':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/http.c:626: undefined reference to `inflateEnd'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/http.c:627: undefined reference to `inflateInit2_'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/http.c:632: undefined reference to `zlibCompileFlags'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(http.o): In function `http_buf_read_compressed':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/http.c:1209: undefined reference to `inflate'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(id3v2.o): In function `id3v2_parse':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/id3v2.c:963: undefined reference to `uncompress'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(isom.o): In function `ff_mp4_read_dec_config_descr':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/isom.c:493: undefined reference to `avpriv_mpeg4audio_get_config'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/isom.c:497: undefined reference to `avpriv_mpa_freq_tab'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(latmenc.o): In function `latm_decode_extradata':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:63: undefined reference to `avpriv_mpeg4audio_get_config'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(latmenc.o): In function `latm_write_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:197: undefined reference to `avpriv_copy_bits'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:199: undefined reference to `avpriv_align_put_bits'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(latmenc.o): In function `latm_write_frame_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:123: undefined reference to `avpriv_copy_bits'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:130: undefined reference to `avpriv_copy_pce_data'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:119: undefined reference to `avpriv_copy_bits'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(latmenc.o): In function `latm_write_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/latmenc.c:195: undefined reference to `avpriv_copy_bits'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1294: undefined reference to `inflateInit_'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1309: undefined reference to `inflate'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1312: undefined reference to `inflateEnd'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1327: undefined reference to `BZ2_bzDecompressInit'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1342: undefined reference to `BZ2_bzDecompress'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1345: undefined reference to `BZ2_bzDecompressEnd'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1302: undefined reference to `inflateEnd'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1335: undefined reference to `BZ2_bzDecompressEnd'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(matroskadec.o): In function `matroska_aac_sri':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(matroskadec.o):/home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/matroskadec.c:1616: more undefined references to `avpriv_mpeg4audio_sample_rates' follow
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mov.o): In function `mov_read_cmov':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mov.c:3807: undefined reference to `uncompress'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mov.o): In function `mov_read_dac3':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mov.c:744: undefined reference to `avpriv_ac3_channel_layout_tab'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mov.o): In function `mov_read_dec3':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mov.c:779: undefined reference to `avpriv_ac3_channel_layout_tab'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3dec.o): In function `mp3_read_probe':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:85: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3dec.o): In function `check':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:438: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:438: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:438: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3dec.o): In function `mp3_parse_vbr_tags':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:303: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3dec.o):/home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3dec.c:438: more undefined references to `avpriv_mpegaudio_decode_header' follow
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3enc.o): In function `mp3_write_xing':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:149: undefined reference to `avpriv_mpa_freq_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:149: undefined reference to `avpriv_mpa_freq_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:149: undefined reference to `avpriv_mpa_freq_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3enc.o):/home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:179: more undefined references to `avpriv_mpa_bitrate_tab' follow
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mp3enc.o): In function `mp3_write_xing':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mp3enc.c:195: undefined reference to `avpriv_mpegaudio_decode_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(mxfenc.o): In function `mxf_parse_dnxhd_frame':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mxfenc.c:1677: undefined reference to `avpriv_dnxhd_get_frame_size'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/mxfenc.c:1679: undefined reference to `avpriv_dnxhd_get_interlaced'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(nutenc.o): In function `find_expected_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/nutenc.c:73: undefined reference to `avpriv_mpa_freq_tab'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/nutenc.c:76: undefined reference to `avpriv_mpa_bitrate_tab'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggenc.o): In function `ogg_write_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggenc.c:517: undefined reference to `avpriv_split_xiph_headers'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggparsedirac.o): In function `dirac_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsedirac.c:40: undefined reference to `av_dirac_parse_sequence_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggparseflac.o): In function `old_flac_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparseflac.c:86: undefined reference to `av_parser_init'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparseflac.c:97: undefined reference to `av_parser_parse2'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparseflac.c:101: undefined reference to `av_parser_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggparsevorbis.o): In function `vorbis_cleanup':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:257: undefined reference to `av_vorbis_parse_free'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggparsevorbis.o): In function `vorbis_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:421: undefined reference to `av_vorbis_parse_reset'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:424: undefined reference to `av_vorbis_parse_frame_flags'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:436: undefined reference to `av_vorbis_parse_frame_flags'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:461: undefined reference to `av_vorbis_parse_reset'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:466: undefined reference to `av_vorbis_parse_frame_flags'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(oggparsevorbis.o): In function `vorbis_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/oggparsevorbis.c:391: undefined reference to `av_vorbis_parse_init'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(rtmpproto.o): In function `rtmp_uncompress_swfplayer':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtmpproto.c:1077: undefined reference to `inflateInit_'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtmpproto.c:1087: undefined reference to `inflate'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtmpproto.c:1105: undefined reference to `inflateEnd'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(rtpdec_jpeg.o): In function `jpeg_create_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:147: undefined reference to `avpriv_mjpeg_val_dc'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:147: undefined reference to `avpriv_mjpeg_bits_dc_luminance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:149: undefined reference to `avpriv_mjpeg_val_dc'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:149: undefined reference to `avpriv_mjpeg_bits_dc_chrominance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:151: undefined reference to `avpriv_mjpeg_val_ac_luminance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:151: undefined reference to `avpriv_mjpeg_bits_ac_luminance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:153: undefined reference to `avpriv_mjpeg_val_ac_chrominance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpdec_jpeg.c:153: undefined reference to `avpriv_mjpeg_bits_ac_chrominance'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(rtpenc_jpeg.o): In function `ff_rtp_send_jpeg':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:104: undefined reference to `avpriv_mjpeg_bits_dc_luminance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:105: undefined reference to `avpriv_mjpeg_val_dc'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:140: undefined reference to `avpriv_mjpeg_bits_ac_chrominance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:141: undefined reference to `avpriv_mjpeg_val_ac_chrominance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:116: undefined reference to `avpriv_mjpeg_bits_dc_chrominance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:117: undefined reference to `avpriv_mjpeg_val_dc'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:128: undefined reference to `avpriv_mjpeg_bits_ac_luminance'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/rtpenc_jpeg.c:129: undefined reference to `avpriv_mjpeg_val_ac_luminance'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(sdp.o): In function `xiph_extradata2config':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:367: undefined reference to `avpriv_split_xiph_headers'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(sdp.o): In function `latm_context2config':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: undefined reference to `avpriv_mpeg4audio_sample_rates'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(sdp.o):/home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/sdp.c:457: more undefined references to `avpriv_mpeg4audio_sample_rates' follow
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(spdifdec.o): In function `spdif_get_offset_and_codec':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/spdifdec.c:60: undefined reference to `avpriv_aac_parse_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(spdifenc.o): In function `spdif_header_aac':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/spdifenc.c:357: undefined reference to `avpriv_aac_parse_header'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(spdifenc.o): In function `spdif_header_dts':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/spdifenc.c:258: undefined reference to `avpriv_dca_sample_rates'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(takdec.o): In function `tak_read_header':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/takdec.c:145: undefined reference to `avpriv_tak_parse_streaminfo'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(tee.o): In function `close_slaves':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/tee.c:327: undefined reference to `av_bitstream_filter_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(tee.o): In function `parse_bsfs':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/tee.c:115: undefined reference to `av_bitstream_filter_init'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(tee.o): In function `close_slaves':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/tee.c:327: undefined reference to `av_bitstream_filter_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(udp.o): In function `udp_close':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/udp.c:974: undefined reference to `pthread_cancel'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/udp.c:975: undefined reference to `pthread_join'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(udp.o): In function `udp_open':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/udp.c:847: undefined reference to `pthread_create'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(utils.o): In function `free_stream':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:3710: undefined reference to `av_parser_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(utils.o): In function `has_decode_delay_been_guessed':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:863: undefined reference to `avpriv_h264_has_num_reorder_frames'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:863: undefined reference to `avpriv_h264_has_num_reorder_frames'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:863: undefined reference to `avpriv_h264_has_num_reorder_frames'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(utils.o): In function `parse_packet':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:1257: undefined reference to `av_parser_parse2'
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:1318: undefined reference to `av_parser_close'
    /home/codeDev/ffmpeg_sources/build_Mar-10-2016/lib/libavformat.a(utils.o): In function `ff_read_frame_flush':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavformat/utils.c:1669: /lib/libavutil.a(time.o): In function `av_gettime_relative':
    /home/codeDev/ffmpeg_sources/ffmpeg-3.0/libavutil/time.c:60: undefined reference to `clock_gettime'
    collect2: error: ld returned 1 exit status