Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (27)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • 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 (3883)

  • Compiling c++ program for ffmpeg, error give undefined reference to [duplicate]

    6 août 2020, par leonardltk1

    I have a code read_mp3.cpp, which uses ffmpeg to decode an mp3 file into an array.

    


    Code for read_mp3.cpp is as follows :

    


        #include &#xA;    #include &#xA;&#xA;    // I use extern "C" as recommended here: https://blog.csdn.net/qq_18144521/article/details/79608355&#xA;    extern "C"&#xA;    {&#xA;    #include <libavutil></libavutil>opt.h>&#xA;    #include <libavcodec></libavcodec>avcodec.h>&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;    #include <libswresample></libswresample>swresample.h>&#xA;    }&#xA;    using namespace std;&#xA;&#xA;&#xA;    int decode_audio_file(const char* path, const int sample_rate, double** data, int* size) {&#xA;        // initialize all muxers, demuxers and protocols for libavformat&#xA;        // (does nothing if called twice during the course of one program execution)&#xA;        av_register_all();&#xA;&#xA;        /*&#xA;        Code for the rest of this function is found here :&#xA;        https://rodic.fr/blog/libavcodec-tutorial-decode-audio-file/&#xA;        */&#xA;&#xA;        return 0;&#xA;    }&#xA;&#xA;    int main (int argc, char ** argv) {&#xA;        // decode data&#xA;        int sample_rate = 44100;&#xA;        double* data;&#xA;        int size;&#xA;        if (decode_audio_file(argv[1], sample_rate, &amp;data, &amp;size) != 0) {&#xA;            return -1;&#xA;        }&#xA;&#xA;        /*&#xA;        Do something with data ...&#xA;        */&#xA;&#xA;        return 0;&#xA;    }&#xA;

    &#xA;

    I tried different ways to compilations, but to no avail :

    &#xA;

        g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat-ffmpeg -lavdevice-ffmpeg -lavcodec-ffmpeg -lavutil -lswresample \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;    &#xA;    g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat -lavdevice -lavcodec -lavutil -lswresample \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;    &#xA;    g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat  -lavdevice -lavcodec  -lavutil -pthread  -ldl -lswscale -lbz2  -lz -lm \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;

    &#xA;

    but i get the following error :

    &#xA;

        /tmp/ccnZzoIh.o: In function `decode_audio_file(char const*, int, double**, int*)&#x27;:&#xA;    read_mp3.cpp:(.text&#x2B;0x2781): undefined reference to `av_register_all&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2786): undefined reference to `avformat_alloc_context&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x279c): undefined reference to `avformat_open_input&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x27b7): undefined reference to `avformat_find_stream_info&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x284b): undefined reference to `avcodec_find_decoder&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2858): undefined reference to `avcodec_open2&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2865): undefined reference to `swr_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2880): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2896): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28ae): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28c4): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28dc): undefined reference to `av_opt_set_int&#x27;&#xA;    &#xA;    /tmp/ccnZzoIh.o:read_mp3.cpp:(.text&#x2B;0x28f0): more undefined references to `av_opt_set_int&#x27; follow&#xA;    /tmp/ccnZzoIh.o: In function `decode_audio_file(char const*, int, double**, int*)&#x27;:&#xA;    read_mp3.cpp:(.text&#x2B;0x2907): undefined reference to `av_opt_set_sample_fmt&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x291d): undefined reference to `av_opt_set_sample_fmt&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2927): undefined reference to `swr_init&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2931): undefined reference to `swr_is_initialized&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2943): undefined reference to `av_init_packet&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2948): undefined reference to `av_frame_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x297b): undefined reference to `av_read_frame&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x299a): undefined reference to `avcodec_decode_audio4&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x29cc): undefined reference to `av_samples_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x29e6): undefined reference to `swr_convert&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a36): undefined reference to `av_frame_free&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a40): undefined reference to `swr_free&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a48): undefined reference to `avcodec_close&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a52): undefined reference to `avformat_free_context&#x27;&#xA;&#xA;    collect2: error: ld returned 1 exit status&#xA;

    &#xA;

  • Revert "lavfi/avfiltergraph : add check before free the format"

    7 août 2020, par Andreas Rheinhardt
    Revert "lavfi/avfiltergraph : add check before free the format"
    

    This reverts commit f156f4ab2317f22bfef33c7eaead0d5d5f162903.

    The checks added by said commit are nonsense because they did not help
    in case ff_merge_samplerates() or ff_merge_formats() returned NULL
    while freeing one of its arguments : Said freeing does not change
    the local variables of can_merge_formats().

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/avfiltergraph.c
  • fftools/ffmpeg : Fix leak of AVFilterInOut in case of error

    23 août 2020, par Andreas Rheinhardt
    fftools/ffmpeg : Fix leak of AVFilterInOut in case of error
    

    The AVFilterInOuts normally get freed in init_output_filter() when
    the corresponding streams get created ; yet if an error happens before
    one reaches said point, they leak. Therefore this commit makes
    ffmpeg_cleanup free them, too.

    Fixes ticket #8267.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] fftools/ffmpeg.c