Recherche avancée

Médias (91)

Autres articles (39)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6379)

  • How do steps for make FFMPEG

    11 août 2017, par mobina varmazyar

    I do step 1 to step 6. I am sure that I take NDK and ffmepeg source in valid address but when I execute

    ./build_android.sh

    in the terminal the following lines will be shown :

    @mv103 telegram

    Can send for me libraries whose can successfully did step 1 to 6 ?

    /build_android.sh: line 8: --prefix=/root/桌面/rajabi/android-ndk-
    r12b/sources/ffmpeg-3.3.3/android/arm: No such file or directory
    ./build_android.sh: line 9: --enable-shared: command not found
  • Audio not working with FFMPEG conversion

    17 juillet 2017, par mikelbring

    I am trying to convert an avi file to flv with an fairly simple ffmpeg command :

    ffmpeg -i dbkai12.avi -ab 96k -b 700k -ar 44100 -s 640x480 -acodec mp3 video.flv

    The video does exactly what I want, just no audio. I didnt come up with these numbers, just pulled them from different sources.

    Also tried :

    ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x240 video.flv

    Same result.

  • Implementing a chained overlay filter with the Libavfilter library in Android NDK

    14 mars 2014, par gookman

    I am trying to use the overlay filter with multiple input sources, for an Android app. Basically, I want to overlay multiple video sources on top of a static image.
    I have looked at the sample that comes with ffmpeg and implemented my code based on that, but things don't seem to be working as expected.

    In the ffmpeg filtering sample there seems to be a single video input. I have to handle multiple video inputs and I am not sure that my solution is the correct one. I have tried to find other examples, but looks like this is the only one.

    Here is my code :

    AVFilterContext **inputContexts;
    AVFilterContext *outputContext;
    AVFilterGraph *graph;

    int initFilters(AVFrame *bgFrame, int inputCount, AVCodecContext **codecContexts, char *filters)
    {
       int i;
       int returnCode;
       char args[512];
       char name[9];
       AVFilterInOut **graphInputs = NULL;
       AVFilterInOut *graphOutput = NULL;

       AVFilter *bufferSrc  = avfilter_get_by_name("buffer");
       AVFilter *bufferSink = avfilter_get_by_name("buffersink");

       graph = avfilter_graph_alloc();
       if(graph == NULL)
           return -1;

       //allocate inputs
       graphInputs = av_calloc(inputCount + 1, sizeof(AVFilterInOut *));
       for(i = 0; i <= inputCount; i++)
       {
           graphInputs[i] = avfilter_inout_alloc();
           if(graphInputs[i] == NULL)
               return -1;
       }

       //allocate input contexts
       inputContexts = av_calloc(inputCount + 1, sizeof(AVFilterContext *));
       //first is the background
       snprintf(args, sizeof(args), "video_size=%dx%d:pix_fmt=%d:time_base=1/1:pixel_aspect=0", bgFrame->width, bgFrame->height, bgFrame->format);
       returnCode = avfilter_graph_create_filter(&inputContexts[0], bufferSrc, "background", args, NULL, graph);
       if(returnCode < 0)
           return returnCode;
       graphInputs[0]->filter_ctx = inputContexts[0];
       graphInputs[0]->name = av_strdup("background");
       graphInputs[0]->next = graphInputs[1];

       //allocate the rest
       for(i = 1; i <= inputCount; i++)
       {
           AVCodecContext *codecCtx = codecContexts[i - 1];
           snprintf(args, sizeof(args), "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
                       codecCtx->width, codecCtx->height, codecCtx->pix_fmt,
                       codecCtx->time_base.num, codecCtx->time_base.den,
                       codecCtx->sample_aspect_ratio.num, codecCtx->sample_aspect_ratio.den);
           snprintf(name, sizeof(name), "video_%d", i);

           returnCode = avfilter_graph_create_filter(&inputContexts[i], bufferSrc, name, args, NULL, graph);
           if(returnCode < 0)
               return returnCode;

           graphInputs[i]->filter_ctx = inputContexts[i];
           graphInputs[i]->name = av_strdup(name);
           graphInputs[i]->pad_idx = 0;
           if(i < inputCount)
           {
               graphInputs[i]->next = graphInputs[i + 1];
           }
           else
           {
               graphInputs[i]->next = NULL;
           }
       }

       //allocate outputs
       graphOutput = avfilter_inout_alloc();  
       returnCode = avfilter_graph_create_filter(&outputContext, bufferSink, "out", NULL, NULL, graph);
       if(returnCode < 0)
           return returnCode;
       graphOutput->filter_ctx = outputContext;
       graphOutput->name = av_strdup("out");
       graphOutput->next = NULL;
       graphOutput->pad_idx = 0;

       returnCode = avfilter_graph_parse_ptr(graph, filters, graphInputs, &graphOutput, NULL);
       if(returnCode < 0)
           return returnCode;

       returnCode = avfilter_graph_config(graph, NULL);
           return returnCode;

       return 0;
    }

    The filters argument of the function is passed on to avfilter_graph_parse_ptr and it can looks like this : [background] scale=512x512 [base]; [video_1] scale=256x256 [tmp_1]; [base][tmp_1] overlay=0:0 [out]

    The call breaks after the call to avfilter_graph_config with the warning :
    Output pad "default" with type video of the filter instance "background" of buffer not connected to any destination and the error Invalid argument.

    What is it that I am not doing correctly ?