Recherche avancée

Médias (91)

Autres articles (108)

  • 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 ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11203)

  • Unable to link against FFmpeg libaries

    28 octobre 2015, par Cody

    I tried to build this, but always got link-time error.

    #include <libavutil></libavutil>log.h>    
    int main(int argc, char *argv[])
    {
       ::av_log_set_flags(AV_LOG_SKIP_REPEATED);
       return 0;
    }

    My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...

    $ ./configure --prefix=/usr/local --disable-static --enable-shared \
    > --extra-ldflags='-Wl,-rpath=/usr/local/lib'

    The link-error is as follows.

    $ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \
    > -Wl,-rpath=/usr/local/lib \
    > $(pkg-config --cflags --libs libavutil)
    /tmp/ccKzgEFb.o: In function `main':
    foo.cpp:(.text+0x17): undefined reference to `av_log_set_flags(int)'
    collect2: error: ld returned 1 exit status

    where the output of pkg-config is...

    $ pkg-config --cflags --libs libavutil
    -I/usr/local/include -L/usr/local/lib -lavutil

    The objdump shows that the shared object libavutil.so does have av_log_set_flogs inside.

    $ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep 'av_log_set_flags'
    000260f0 g    DF .text  0000000a  LIBAVUTIL_54 av_log_set_flags

    Please note that the g++ command used to build the above application had a linker option -Wl,-rpath=/usr/local/lib, though it still doesn’t work. Also, I’ve tried to monitor with inotifywait if the other version provided by the distro were called. They were not, and the one being opened during execution of g++ was /usr/local/lib/libavutil.so.

    Summary :

    1. /usr/local/lib/libavutil.so does have the symbol.

    2. -rpath was used to force to link against the shared library.

    3. Why link-time error ? T_T

    Any suggestion or information would be highly appreciated ! Thanks !

    REEDIT : ffplay works fine and ldd shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries.

  • Unable to link against FFmpeg libaries

    2 mars 2023, par Cody

    I tried to build this, but always got link-time error.

    &#xA;&#xA;

    #include <libavutil></libavutil>log.h>    &#xA;int main(int argc, char *argv[])&#xA;{&#xA;    ::av_log_set_flags(AV_LOG_SKIP_REPEATED);&#xA;    return 0;&#xA;}&#xA;

    &#xA;&#xA;

    My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...

    &#xA;&#xA;

    $ ./configure --prefix=/usr/local --disable-static --enable-shared \&#xA;> --extra-ldflags=&#x27;-Wl,-rpath=/usr/local/lib&#x27;&#xA;

    &#xA;&#xA;

    The link-error is as follows.

    &#xA;&#xA;

    $ g&#x2B;&#x2B; foo.cpp -D__STDC_CONSTANT_MACROS -Wall \&#xA;> -Wl,-rpath=/usr/local/lib \&#xA;> $(pkg-config --cflags --libs libavutil)&#xA;/tmp/ccKzgEFb.o: In function `main&#x27;:&#xA;foo.cpp:(.text&#x2B;0x17): undefined reference to `av_log_set_flags(int)&#x27;&#xA;collect2: error: ld returned 1 exit status&#xA;

    &#xA;&#xA;

    where the output of pkg-config is...

    &#xA;&#xA;

    $ pkg-config --cflags --libs libavutil&#xA;-I/usr/local/include -L/usr/local/lib -lavutil&#xA;

    &#xA;&#xA;

    The objdump shows that the shared object libavutil.so does have av_log_set_flogs inside.

    &#xA;&#xA;

    $ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep &#x27;av_log_set_flags&#x27;&#xA;000260f0 g    DF .text  0000000a  LIBAVUTIL_54 av_log_set_flags&#xA;

    &#xA;&#xA;

    Please note that the g&#x2B;&#x2B; command used to build the above application had a linker option -Wl,-rpath=/usr/local/lib, though it still doesn't work. Also, I've tried to monitor with inotifywait if the other version provided by the distro were called. They were not, and the one being opened during execution of g&#x2B;&#x2B; was /usr/local/lib/libavutil.so.

    &#xA;&#xA;

    Summary :

    &#xA;&#xA;

      &#xA;
    1. /usr/local/lib/libavutil.so does have the symbol.

    2. &#xA;

    3. -rpath was used to force to link against the shared library.

    4. &#xA;

    5. Why link-time error ? T_T

    6. &#xA;

    &#xA;&#xA;

    Any suggestion or information would be highly appreciated ! Thanks !

    &#xA;&#xA;

    REEDIT : ffplay works fine and ldd shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries.

    &#xA;

  • lavc : add trailing_padding to AVCodecContext to match AVCodecParameters.

    15 août 2016, par Jon Toohill
    lavc : add trailing_padding to AVCodecContext to match AVCodecParameters.
    

    Shows encoder delay/padding in the stream summary if they are set.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/APIchanges
    • [DH] libavcodec/avcodec.h
    • [DH] libavcodec/utils.c
    • [DH] libavcodec/version.h