Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (35)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (4627)

  • Array Getting Lost While Passing From C++ to C Using Callback [duplicate]

    23 décembre 2020, par Abhishek Sharma

    I am trying to write Video Using FFmpeg by generating frame at run time using direct3d and the frames are generated using sharp dx at c# and I use window runtime to callback to c# to generate Frame And return Platform::Array of Byte ;

    


    so for writing video using FFmpeg, I used C code that writes video, and to ask for generating frame I implemented a callback to generate a frame and all that in StaticLib

    


    uint8_t*(*genrate_frame_callback)(int) = NULL;   


    


    now in C-File, I call fill_image to get the frame and write to the video

    


    static void fill_image(int frame_index, int width, int height)
{
    int x, y, i;

    i = frame_index;
    auto result = genrate_frame_callback(frame_index);// after passing this point while using debugger reults single element not even array
    .
    .
    .
    code to write video
    
}


    


    now when I call to Write Video before that pass this function to the callback that is in the c++ file in a Window Runtime Component that reference to static lib

    


    uint8_t* genrate_frame(int args)&#xA;{&#xA;    auto frame = FireGenrateFramet(args); // returns Platform::Array<byte>&#xA;    vector v(frame->begin(), frame->end());&#xA;    return v.data();// data is abilabe to this point &#xA;}&#xA;</byte>

    &#xA;

    now the result variable contains a single element&#xA;I am new to c++ and c and unable to understand why is data not passed to the function using call back

    &#xA;

    Edit :

    &#xA;

    then can you help me with how to pass Data I tried using the global Scope Variable c++ file too but still,&#xA;it gets lost,&#xA;but after introducing another call back to read data stored in global Variable it read the whole data correctly

    &#xA;

    vector frame_v;&#xA;uint8_t* genrate_frame(int args)&#xA;{&#xA;    auto frame = FireGenrateFrame(args);&#xA;     vector v(frame->begin(), frame->end());&#xA;    frame_v = v;&#xA;    return v.data();// this loose the Same &#xA;}&#xA;&#xA;uint8_t read_pixal(int args)&#xA;{&#xA;    return frame_v[args];// where as it read out correctly&#xA;}&#xA;

    &#xA;

    but I don't want to store and add new call back an read from their just pass the array

    &#xA;

  • How can i use ffmpeg to capture the entire desktop but without the console window of the ffmpeg ? [duplicate]

    1er novembre 2017, par Simonicop cooper

    This question already has an answer here :

    This is how i’m doing it in the command prompt :

    ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4

    And in csharp code :

    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Text;  
    using System.Threading.Tasks;  
    using System.IO;  
    using System.Diagnostics;  

    namespace Ffmpeg_App  
    {  
       class Ffmpeg  
       {  
           Process process;  

           public void Start(string FileName, int Framerate)  
           {  
               process = new System.Diagnostics.Process();  
               process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
               process.EnableRaisingEvents = false;  
               process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory  
               process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast -                                                                     pix_fmt yuv420p " + FileName;  
               process.Start();  
               process.StartInfo.UseShellExecute = false;  
               process.StartInfo.CreateNoWindow = false;  
               Close();  
           }  

           public void Close()  
           {  
               process.Close();  
           }  
       }  
    }  

    In form1 top :

    Ffmpeg fpeg = new Ffmpeg();

    Start button :

    private void Start_Click(object sender, EventArgs e)  
           {  
               fpeg.Start("test.mp4", 24);  
           }  

    Stop button :

    private void Stop_Click(object sender, EventArgs e)  
           {  
               fpeg.Close();  
           }

    The problem is when i start recording it also recording first few seconds the console window of the ffmpeg too same when i stop the recording.

    How can i make in both cases using only command prompt or using with csharp that it will not show the console window of the ffmpeg ?

    Ffmpeg console window

  • Anomalie #3686 : formulaire_editer_article_verifier : vérification incomplète

    21 février 2016, par Peet du

    La ligne https://core.spip.net/projects/spip/repository/entry/spip/prive/formulaires/editer_article.php#L157, vient de
    https://core.spip.net/issues/2508.

    L’avantage (?) de https://core.spip.net/projects/spip/repository/revisions/19075, c’est que ça gère aussi bien les cas de création et de modification d’un article dans une rubrique interdite.

    J’ai donc testé mon patch avec le cas d’un admin restreint et il n’y a pas d’effet de bord : ceci grâce à autoriser_article_modifier().

    Il est donc question ici de compléter/corriger cette demande : il doit être possible de voir et de modifier, même si il est interdit de créer.

    Le bug que j’ai trouvé :

    C’est le cas qui se présente avec le plugin LIM

    1- un article ou des articles ont été créés dans une rubrique ;
    2- puis le webmestre décide plus tard d’interdire la création de nouveaux articles dans cette même rubrique, ceci grâce à une fonction du plugin LIM ;
    3- Mais si il n’est plus possible de créer un article dans cette rubrique, LIM gère le cas où l’auteur veut les modifier ses articles présents dans cette rubrique.

    Donc le bug soulevé vient du fait que le plugin LIM surcharge l’autorisation autoriser_rubrique_publierdans(). Plus exactement, il ajoute une condition.
    voir http://zone.spip.org/trac/spip-zone/changeset/95014/_plugins_/lim/trunk/lim_autorisations.php.

    Je précise que cette fonctionnalité du plugin LIM pose un problème seulement avec l’objet Article. Pas avec les autres objets éditoriaux.

    Voilà. J’espère n’avoir rien oublié.