Recherche avancée

Médias (91)

Autres articles (68)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (8704)

  • Evolution #4060 (Nouveau) : Nettoyage du code PHP 5.4

    11 décembre 2017

    Quelques tests sont présents dans le code pour tester des vieilles versions de SPIP.
    => Les trouver, et les enlever.

  • undefined reference in ffmpeg (use code blocks)

    6 février 2015, par Yonghao Zhao

    I am currently testing a video encoding program using ffmepg codeblocks.I encountered several undefined reference warning. I have checked on internet and add extern "c" to the headers but it still doesnt work. Please help me check.

    Here is part of the code :

    extern "C" {

    #include "libavcodec/avcodec.h"
    #include "libavutil/channel_layout.h"
    #include "libavutil/common.h"
    #include "libavutil/imgutils.h"
    #include "libavutil/mathematics.h"
    #include "libavutil/samplefmt.h"


    }

    #include
    #include "libavutil/opt.h"

    static void video_encode_example(const char *filename, int codec_id)
    {

    AVCodec *codec;
    AVCodecContext *c= NULL;
    int i, ret, x, y, got_output;
    FILE *f;
    AVFrame *frame;
    AVPacket pkt;
    uint8_t endcode[] = { 0, 0, 1, 0xb7 };
    printf("Encode video file %s\n", filename);
    /* find the mpeg1 video encoder */
    codec = avcodec_find_encoder(AV_CODEC_ID_H264);
    if (!codec) {
    fprintf(stderr, "Codec not found\n");
    exit(1);
    }
    c = avcodec_alloc_context3(codec);
    if (!c) {
    fprintf(stderr, "Could not allocate video codec context\n");
    exit(1);
    }

    int main(int argc, char **argv)
    {
    avcodec_register_all();
    video_encode_example("test.mpg", AV_CODEC_ID_MPEG1VIDEO);

    return 0;
    }

    The error given :

    ||=== Build : Debug in ffmepg_video_en (compiler : GNU GCC Compiler) ===|
    obj/Debug/main.o||In function

    video_encode_example':|
    codeblocksfile/ffmepg_video_en/main.cpp|36|undefined reference to

    avcodec_find_encoder’|
    codeblocksfile/ffmepg_video_en/main.cpp|41|undefined reference to

    avcodec_alloc_context3'|
    codeblocksfile/ffmepg_video_en/main.cpp|63|undefined reference to

    av_opt_set(void*, char const*, char const*, int)’|
    codeblocksfile/ffmepg_video_en/main.cpp|65|undefined reference to

    avcodec_open2'|
    codeblocksfile/ffmepg_video_en/main.cpp|74|undefined reference to

    av_frame_alloc’|
    codeblocksfile/ffmepg_video_en/main.cpp|85|undefined reference to

    av_image_alloc(unsigned char**, int*, int, int, AVPixelFormat, int)'|
    codeblocksfile/ffmepg_video_en/main.cpp|92|undefined reference to

    av_init_packet’|
    codeblocksfile/ffmepg_video_en/main.cpp|112|undefined reference to

    avcodec_encode_video2'|
    codeblocksfile/ffmepg_video_en/main.cpp|120|undefined reference to

    av_free_packet’|
    codeblocksfile/ffmepg_video_en/main.cpp|126|undefined reference to

    avcodec_encode_video2'|
    /home/yonghao/codeblocksfile/ffmepg_video_en/main.cpp|134|undefined reference to

    av_free_packet’|
    codeblocksfile/ffmepg_video_en/main.cpp|140|undefined reference to

    avcodec_close'|
    codeblocksfile/ffmepg_video_en/main.cpp|141|undefined reference to

    av_free’|
    codeblocksfile/ffmepg_video_en/main.cpp|142|undefined reference to

    av_freep'|
    codeblocksfile/ffmepg_video_en/main.cpp|143|undefined reference to

    av_frame_free’|
    obj/Debug/main.o||In function

    main':|
    codeblocksfile/ffmepg_video_en/main.cpp|151|undefined reference to

    avcodec_register_all’|
    ||=== Build failed : 16 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

  • How can I found FFmpeg Error code's meaning ?

    5 mai 2024, par Birds

    I have an issue using FFMPEG.

    



    avcodec_send_packet() is returning error code -12.

    



    I am trying to find what the meaning of -12 is.

    



    I found this page but I can't understand the calculation for -12 :

    



    How can I find out what this ffmpeg error code means ?

    



    Can anyone help me ?

    



    I'm using DXVA2 for decoding. and avcodec_send_packet() function is return -12 after the 20th frame.

    



    20th frame return

    



    image

    



    21st frame return

    



    image