Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (35)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5487)

  • How to play multiple video on top of each other with ffmpeg c programming

    13 septembre 2016, par Tom Goldberg

    I’m trying to develop a code which can plays multiple videos simultaneously with ffmpeg.
    I need to play a video on a 2x2 matrix background and another video in the top left corner of it.
    Problem : The top left corner video is flicking and not stable enough.
    top-left video is flicking while playing
    code :

    SDL_Surface *screen = SDL_SetVideoMode(640, 480, 24, 0);
    void video_display(VideoState *is) {
     SDL_Rect rect;
     VideoPicture *vp;
     int w, h, x, y;
     h = screen->h;
     w = ((int)rint(h * aspect_ratio)) ;
     if(w > screen->w) {
       w = screen->w;
       h = ((int)rint(w / aspect_ratio)) ;
     }

     rect.x = (screen->w - w) / 2;
     rect.y = (screen->h - h) / 2;

     if(  is->video_id == 0 ){
        rect.w = w;
        rect.h = h;
        SDL_DisplayYUVOverlay(vp->bmp, &rect); // i think the problem is over here
     }
     else if( is->video_id == 1 ){
        rect.w = w/2;
        rect.h = h/2;
        SDL_DisplayYUVOverlay(vp->bmp, &rect);
     }  

    When i choose 0/1, i move between audio only.
    My question is : What should i code in order to make the top-left video stable to view ?

  • How to Play Video using FFMpeg with Qt5 ?

    24 mai 2013, par user2311434

    I have downloaded the ffmpeg libraries, include and dll from ffmpeg website for windows 32 bit system.

    Until now i have gathered information that the below two headers are useful for playing videos, but actually I dont know.

    libavcodec/avcodec.h
    libavformat/avformat.h
  • Discord Bot Audio wont play

    13 décembre 2016, par Dom

    Im trying to get a dicord bot to play a simple mp3 saved locally.
    Ive followed
    https://github.com/Chikachi/DiscordIntegration/wiki/How-to-get-a-token-and-channel-ID-for-Discord
    On how to authenticate my bot and used
    https://izy521.gitbooks.io/discord-io/content/Methods/Handling_audio.html
    for the code to follow. My bot joins the voice channel but will not play the mp3 file. I know it finds the file and have downloaded and pathed ffmpeg, but have no idea what else may be causing the issue. Any help with be appreciated

    var Discord = require('discord.io');
    var Lame = require('lame');
    var fs = require('fs');
    var spawn = require('child_process').spawn;
    var bot = new Discord.Client({
       autorun: true,
       token: "#"
    });

    var voiceChannelID = "#",
       file = "Nonsense.mp3";

    bot.on('ready', function() {
       console.log(bot.username + " - (" + bot.id + ")");
       bot.joinVoiceChannel(voiceChannelID, function(error, events) {
         //Check to see if any errors happen while joining.
         if (error) return console.error(error);

         //Then get the audio context
         bot.getAudioContext(voiceChannelID, function(error, stream) {
           //Once again, check to see if any errors exist
           if (error) return console.error(error);

           //Create a stream to your file and pipe it to the stream
           //Without {end: false}, it would close up the stream, so make sure to include that.
           fs.createReadStream(file).pipe(stream, {end: false});
               console.log(stream);
           //The stream fires `done` when it's got nothing else to send to Discord.
           stream.on('done', function() {
              //Handle
           });
         });
       });
    });