Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (21)

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

  • Writing a series of images into a video file using libavcodec (ffmpeg)

    19 novembre 2013, par user2978372

    Requirements :

    I have a bunch of images (to be more specific they are 1024x768, 24bpp RGB PNG files) that I want to encode into a video files.

    And I need to use 'libavcodec' library, not 'ffmpeg' tool. (well I know they are basically same in the origin, I am emphasizing because someone may answer to use 'ffmpeg' tool, but that's not a solution what I am looking for)

    I am using h264 encoder.

    Target :
    A high quality video with equal resolution (1024 x 768), YUV420P
    each image has a duration of 1 second.
    24 fps

    Problems :
    i've tried with many different (but same resolution and bits) png images, and all have failed to output a good video.

    For some series of images, only the frames of first second was shown in a good shape, but the remaining frames was distorted and color changed (lighter).

    For some series of images, it seemed the images were zoomed-in and distorted again.

    and etc.

    Question :
    I am a total AV newbie and I need someone to verify my steps for encoding. I am total AV newbie.

    1) av_register_all()

    2) avcodec_register_all()

    3) avcodec_find_encoder()

    4) avcodec_alloc_context3()

    5) sets codec configuraton to context.

    6) avcodec_open2()

    7) opens a output file using fopen_s()

    8)

    for(int second=1; second<=10; ++seconds)
    {

     Read a image from local using Gdiplus

     Create a gdiplus bitmap and draw the image onto this bitmap

     Get the raw byte data using LockBits

     Transfer this RGB raw byte into YUV420 frame using 'swscontext', 'sws_scale'

     for(int f=0; f<24; ++f)
     {
       av_init_packet(&pkt);
       pkt.data = NULL;
       pkt.size = 0;

       pFrame->pts = f;
       ret = avcodec_encode_video2(pContext, &pkt, pFrame, &got_output);

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

    /* get the delayed frames */
    for (got_output = 1; got_output; i++) {
       fflush(stdout);

       ret = avcodec_encode_video2(c, &pkt, NULL, &got_output);
       if (ret < 0) {
           fprintf(stderr, "Error encoding frame\n");
           exit(1);
       }

       if (got_output) {
           printf("Write frame %3d (size=%5d)\n", i, pkt.size);
           fwrite(pkt.data, 1, pkt.size, f);
           av_free_packet(&pkt);
       }
    }

    close everything required

    I am sure that I misunderstood some steps using ffmpeg api. The above pseudo codes are based on the 'encoding' example of ffmpeg. which part am I doing wrong ? please can someone help me ?

    p.s sorry about broken english. english is not my natvie language. I tried my best =P

  • FFmpeg avutil.lib unresolved external symbol

    2 août 2022, par Sere

    i'm trying to use FFmpeg with visual sudio 2022 .NET 6 through an MSVC project.
I followed this tutorial : https://www.youtube.com/watch?v=qMNr1Su-nR8&ab_channel=HakanSoyalp.
I mean I have configureg Include (.h) file, library (.lib) files and dynamic (.dll) file copied into bin folder.
If I call for example the avformat_alloc_context() method inside the avformat.lib all work rightly, if I call for example av_file_map(...) inside the avutil.lib the compiler give me an error :
LNK2019 unresolved external symbol "int __cdecl av_file_map ...
But the avutil.lib is linked !!!
The same happen if I call other methods inside avutil.lib module.

    


    Thanks for help...

    


    Code :

    


    extern "C"&#xA;{&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;    #include <libavutil></libavutil>file.h> // av_file_map&#xA;}&#xA;&#xA;int ConvertJPEGtoNALs(int argc, char* argv[])&#xA;{&#xA;    AVFormatContext* fmt_ctx = NULL;&#xA;    AVIOContext* avio_ctx = NULL;&#xA;    uint8_t* buffer = NULL, * avio_ctx_buffer = NULL;&#xA;    size_t buffer_size, avio_ctx_buffer_size = 4096;&#xA;    char* input_filename = NULL;&#xA;    int ret = 0;&#xA;    struct buffer_data bd = { 0 };&#xA;    if (argc != 2) {&#xA;        fprintf(stderr, "usage: %s input_file\n"&#xA;            "API example program to show how to read from a custom buffer "&#xA;            "accessed through AVIOContext.\n", argv[0]);&#xA;        return 1;&#xA;    }&#xA;    input_filename = argv[1];&#xA;    /* register codecs and formats and other lavf/lavc components*/&#xA;    //av_register_all();    //!deprecated&#xA;    /* slurp file content into buffer */&#xA;    ret = av_file_map(input_filename, &amp;buffer, &amp;buffer_size, 0, NULL);&#xA;    /* fill opaque structure used by the AVIOContext read callback */&#xA;    bd.ptr = buffer;&#xA;    bd.size = buffer_size; ???&#xA;    if (!(fmt_ctx = avformat_alloc_context())) {&#xA;        ret = AVERROR(ENOMEM);&#xA;        goto end;&#xA;    }&#xA;    //... to be continue ...&#xA;}&#xA;

    &#xA;

  • Piwik PRO is hiring a Project Coordinator (Job description)

    18 février 2015, par Matthieu Aubry — Jobs

    At Piwik and Piwik PRO we develop the leading open source web analytics platform, used by more than one million websites worldwide. Our vision is to build the best open alternative to Google Universal Analytics. We are growing and now looking for a Project Coordinator !

    What will you be doing ?

    • Participating in calls with Piwik PRO clients and analyzing requirements for enterprise customers
    • Planning and coordinating the implementation of projects
    • Helping customers to improve and adjust data reporting methods to suit their needs
    • Functioning as the voice of the customer and provide internal feedback on how Piwik PRO can better serve our customers

    What do we expect from you ?

    • Fluent command of English (both in writing and speaking), confidence to communicate in formal conversations and a good knowledge of business English
    • Previous experience in working with corporate clients
    • Great communication skills
    • A proactive attitude and the ability to use your initiative
    • Ability to achieve goals without detailed instructions

    Possessing these assets would be an advantage :

    • Technical knowledge associated with using data analytics platforms
    • Data analysis and interpretation skills
    • Knowledge of German or French
    • Knowledge of Piwik Analytics

    What can you expect from us ?

    • Flexible cooperation
    • An attractive salary
    • The opportunity to develop your skills and gain more experience by working on exceptional projects
    • Multisport Card
    • Access to a regularly updated resource library and the opportunity to contribute to it
    • Flexible working hours
    • Unforgettable parties and integration trips
    • A completely unique work atmosphere – we really like to keep things informal

    Location

    We have offices in Poland and New Zealand, and Remote work is possible.

    Ideally you will be located in the USA or in Europe where most of our clients are based.

    Apply online

    To apply for this position, please Apply online here. We look forward to receiving your applications !