Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (38)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6348)

  • Deinterlace video frames

    23 janvier 2018, par Gui

    I am using a Accord.net’s VideoFileReader to open an ’.mts’ (AVCHD File) file from a Sony HandyCam.

    var file = new VideoFileReader();
    file.Open(@"pathToFile");

    var frame = file.ReadVideoFrame();

    This appears to open without issue. The resolution properties of the VideFileReader instance are correct, however it identifies the frame rate as being double that of the actual file. Upon inspection it appears to be interlaced via some method.

    enter image description here

    I would like to traverse video files frame by frame for some simple analysis, where speed is relatively unimportant, however the time of each frame is critical. I am happy to deinterlace frames myself if I had a clear understanding of how I needed to manipulate the frame images.

    From my research on interlacing, I was expecting the resolution of each frame to be half that of the final output, where alternating frames need to be spliced -
    one containing even lines, and the other odd ; this appears not to be the case. All Frames are the full resolution of the video, even the very first frame seems to have two unique images present in it.

    How could I go about recovering a valid frame back from my video on a frame by frame basis (accessing adjacent frames if needed is fine) ? Is this something I have missed, not understood, or overlooked in the Documentation ?

    I’m not necessary looking for a code solution (although that would be great), an explanation of what is going on and what actions I could take will sufficiently address my needs.

  • Playing a video with FFMPEG & OpenTK

    22 août 2017, par bwoogie

    My goal is to play a video using FFMPEG (Accord.net), grabbing each frame and drawing it with OpenGL (OpenTK). This is my first time using OpenTK and Accord.net so naturally, I’m not getting the desired results, instead I’m getting a blank screen. What am I missing ?

    sealed class Output : GameWindow {

       VideoFileReader videoreader = new VideoFileReader();
       Bitmap vidbmp;
       long curFrame = 0;
       public Output(int width, int height, DisplayIndex displayIndex) : base(width, height, GraphicsMode.Default, "Output", GameWindowFlags.Fullscreen, DisplayDevice.GetDisplay(displayIndex), 3, 0, GraphicsContextFlags.ForwardCompatible) { }

       protected override void OnLoad(EventArgs e) {
           //load video
           videoreader.Open(@"C:\notelady.mp4");
       }

       protected override void OnResize(EventArgs e) {
           GL.Viewport(0, 0, Width, Height);
       }

       protected override void OnUpdateFrame(FrameEventArgs e) {
           if(curFrame < videoreader.FrameCount) {
               vidbmp = videoreader.ReadVideoFrame();
               curFrame++;
           }
       }

       protected override void OnRenderFrame(FrameEventArgs e) {
           GL.ClearColor(Color4.Purple);
           GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);

           BitmapData data = vidbmp.LockBits(new Rectangle(0, 0, vidbmp.Width, vidbmp.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
           GL.TexImage2D(TextureTarget.Texture2D, 0, PixelInternalFormat.Rgba, data.Width, data.Height, 0, OpenTK.Graphics.OpenGL.PixelFormat.Bgra, PixelType.UnsignedByte, data.Scan0);
           vidbmp.UnlockBits(data);
           vidbmp.Dispose();

           SwapBuffers();

       }
    }
  • ClickOnce include imported .targets when publishing (FFMPEG)

    1er août 2017, par Bonnotbh

    I have a WinForms application which I am publishing via ClickOnce. This applciation includes the Accord FFMPEG libraries, which are included as references.

    The FFMPEG NuGet package folder includes a .targets file, which includes a variety of dlls needed for proper operation of the FFMPEG library (avcodec.dll, avformat.dll, avutil.dll). These are copied to the \bin folder when building the project. This is done by including this line in the .csproj :

    Import Project="..\packages\Accord.Video.FFMPEG.3.3.0\build\Accord.Video.FFMPEG.targets" Condition="Exists('..\packages\Accord.Video.FFMPEG.3.3.0\build\Accord.Video.FFMPEG.targets')"

    However when publishing the application via ClickOnce, these files are not included in the published folder. Is there a way to run the Import Project task and add the files into the published folder ?