Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (16)

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

  • Writing script to automate my work with video and srt files [closed]

    8 octobre 2020, par Shubham Thakur

    I am trying to write a python script to automate my work. The script will be doing following functions with the drone footage.

    


      

    1. Get video in mp4 and mov format and extract srt subtitle from it.
    2. 


    


    The SRT file of video has information about telemetry of drone like speed, location, altitude, shutter, ISO, etc. The next functin of the script will be to.

    


      

    1. Edit srt file to delete all information except of its location and save the file to update the srt file.
    2. 


    


    I am new to python and have very less experience in working with files in python. After looking up I found that ffmpeg can be used to do 1st function of my script. But I dont know how to approach writing my script.
Any suggestion will be helpful.
Thank You

    


  • FFmpeg API example (encode_video.c) does not work correctly

    30 janvier 2023, par NewbieCoder

    I am using the official encode_video.c example to test if FFmpeg works correctly for me. 
I got the pre-built windows edition from ffmpeg.zeranoe.com/builds. It is built already with libx264 and other external libraries. I got both dev and shared editions and added the DLLs, header files and libs accordingly in Visual Studio.

    



    Now the encode_video.c example does not work correctly.

    



    



    What I tried :

    



    I compiled the example and run it on many different file formats and codecs such as the following.

    



    First I tried all of these file formats (.mp4, .m4v, .h264, .x264, .avi, .flv) with codec name as libx264. The code executed without errors but the output video file did not play in VLC or Windows 10 default player.

    



    Next, I tried all of those above file formats but with codec name as mpeg4. The code executed without errors but the output video file played only for .m4v in VLC.

    



    



    What is expected :

    



    All of those combinations should have produced a video file which could be played in VLC. None of them worked except for .m4v as file format and mpeg4 as codec name.

    



    



    Please tell me how to make this work for h264. I mainly want it to work for h264 as that is only important for now.

    



    I am running the code like ./encode_video.exe test.mp4 libx264 where first argument is output filename and second argument is codec name.

    



    This is the output for test.mp4 and libx264 as command line arguments https://imgur.com/a/AHLQwuK

    



    It seems that in the encode function, it goes over the below code and returns because of AVERROR(EAGAIN) or AVERROR_EOF. Please tell me what is happening.

    



    while (ret >= 0) {
        ret = avcodec_receive_packet(enc_ctx, pkt);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
            return;
        else if (ret < 0) {
            fprintf(stderr, "Error during encoding\n");
            exit(1);
        }

        printf("Write packet %3"PRId64" (size=%5d)\n", pkt->pts, pkt->size);
        fwrite(pkt->data, 1, pkt->size, outfile);
        av_packet_unref(pkt);
    }


    



    I used DepenciesGUI to find out the DLLs linked and it shows that the DLLs are correctly linked. Please help me figure out what the problem is now !!

    


  • Case-insensitive URL match for canPlayURL(), etc. (eg. so foobar.MP3 will work)

    10 juin 2010, par Scott Schiller

    m script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2.js Case-insensitive URL match for canPlayURL(), etc. (eg. so foobar.MP3 will work)