Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (67)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8235)

  • Render Multiple Gifs with ffplay/ffmpeg in Winform

    17 juin 2019, par Purqs

    I’m trying to get x number of animated gifs to render on like a Panel or PictureBox and using transparency that is in each gif. I’ve tried a couple approaches but am not super famiular with ffmpeg and such. Below is some code that I use to get it to render inside a panel, but I can’t figure out how to get like 5 gifs to stack/layer on one another and still render as you would expect.

    I need/want this to render in the form and not outputted. I am a little confused to why the ffplay.exe doesn’t use the -i command and that might be why i can’t get it to render. any ideas ?

    Working example below.

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Diagnostics;
    using System.Threading;
    using System.IO;
    using System.Reflection;
    using System.Runtime.InteropServices;
    using System.Drawing.Text;
    using System.Text.RegularExpressions;
    using System.Configuration;
    using Microsoft.Win32;
    using System.Windows.Forms.VisualStyles;

    //FOR THIS EXAMPLE CREATE FORM HAVE BUTTON ON IT AND PANEL.
    //button: button's click is "button1_Click"
    //panel: Needed to output the render on it.
    //FILES:
    //Test.Gif
    //These ff files came from the ffmpeg offical site.
    //ffplay.exe //currently using
    //ffmpeg.exe //thinking i need to use to get it how I want.
    //I most of the code below from https://stackoverflow.com/questions/31465630/ffplay-successfully-moved-inside-my-winform-how-to-set-it-borderless which was a good starting point.

    namespace Test_Form
    {
       public partial class Form1 : Form
       {
           [DllImport("user32.dll", SetLastError = true)]
           private static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);

           [DllImport("user32.dll")]
           private static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);


           //Process ffplay = null;

           public Form1()
           {
               InitializeComponent();
               Application.EnableVisualStyles();
               this.DoubleBuffered = true;
           }



           public Process ffplay = new Process();
           private void FFplay()
           {
               ffplay.StartInfo.FileName = "ffplay.exe";
               ffplay.StartInfo.Arguments = "-noborder Test.gif"; //THIS IS WHERE I INPUT THE GIF FILE
               ffplay.StartInfo.CreateNoWindow = true;
               ffplay.StartInfo.RedirectStandardOutput = true;
               ffplay.StartInfo.UseShellExecute = false;

               ffplay.EnableRaisingEvents = true;
               ffplay.OutputDataReceived += (o, e) => Debug.WriteLine(e.Data ?? "NULL", "ffplay");
               ffplay.ErrorDataReceived += (o, e) => Debug.WriteLine(e.Data ?? "NULL", "ffplay");
               ffplay.Exited += (o, e) => Debug.WriteLine("Exited", "ffplay");
               ffplay.Start();

               Thread.Sleep(1000); // you need to wait/check the process started, then...

               // child, new parent
               // make 'this' the parent of ffmpeg (presuming you are in scope of a Form or Control)
               SetParent(ffplay.MainWindowHandle, this.Handle);

               // window, x, y, width, height, repaint
               // move the ffplayer window to the top-left corner and set the size to 320x280
               MoveWindow(ffplay.MainWindowHandle, 800, 600, 320, 280, true);

               SetParent(ffplay.MainWindowHandle, this.panel1.Handle);
               MoveWindow(ffplay.MainWindowHandle, -5, -30, 320, 280, true);
           }

    //runs the FFplay Command
    private void button1_Click(object sender, EventArgs e)
           {
               FFplay();

           }

           private void Form1_FormClosed(object sender, FormClosedEventArgs e)
           {
               try { ffplay.Kill(); }
               catch { }
           }
       }

    I would like the button to allow me to add any number of gifs (like 5 or 10) all to the same area and have them being animated with their transparent showing what is under that gif.

    So for example I could have a circle image, then a spinning/loading transparent gif on top, and then a gif that counts up/down on top of that one to give me the effect of a count-down.

    Thanks for all the help !

  • Python threading module on windows after session logout

    1er décembre 2013, par e271p314

    I wrote a code which starts to record screen capture from the second it identifies mouse movement until it identifies the mouse didn't move for a predefined time (10 seconds).
    In python, on windows, how to wait until mouse moves ?
    If, I'm logged in to the session the code works fine, i.e. it starts and stops on time and records the screen capture. But, if I logout, I expect the script to identify that the mouse doesn't move and stop recording. Instead, the code doesn't stop and when I login again (long after the 10 seconds passed), the screen capture (from the previous session) keeps running, yelling the rt buffer is full and it keeps running until I close the cmd console even I expect it to work for 10 seconds (at least when I'm logged in). Any idea what is the issue ? I feel like it is something between the threading module and the session logout but I could be completely wrong about this.

  • How to change metadata company_name using ffmpeg

    16 juillet 2020, par Pushp Vashisht

    According to the documentation, to change the metadata,we have to use -metadata option and provide key/value pair of the metadata that we want to add/change :

    &#xA;

    ffmpeg -i in.avi -metadata title="my title" out.flv&#xA;

    &#xA;

    So, I tried doing :

    &#xA;

    ffmpeg -i in.avi -metadata company_name="My Company" out.flv&#xA;

    &#xA;

    Now, when I print out the metadata using ffprobe :

    &#xA;

    Metadata:&#xA;    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000&#xA;    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001&#xA;    company_name    : FFmpeg&#xA;

    &#xA;

    How do I change the metadata company_name ?

    &#xA;

    EDIT :

    &#xA;

    log after running the ffmpeg command

    &#xA;

    ffmpeg -i in.avi -metadata company_name="My Company" out.flv&#xA;ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Guessed Channel Layout for Input Stream #0.1 : stereo&#xA;Input #0, mxf, from &#x27;rep12.mxf&#x27;:&#xA;  Metadata:&#xA;    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000&#xA;    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001&#xA;    company_name    : FFmpeg&#xA;    product_name    : OP1a Muxer&#xA;    product_version : 57.83.100&#xA;    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002&#xA;    modification_date: 0-01-02T00:00:00.000000Z&#xA;    material_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34300&#xA;    timecode        : 00:00:00:00&#xA;  Duration: 00:00:30.03, start: 0.000000, bitrate: 3027 kb/s&#xA;    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34301&#xA;    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34301&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))&#xA;  Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, mxf, to &#x27;out.mxf&#x27;:&#xA;  Metadata:&#xA;    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000&#xA;    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001&#xA;    timecode        : 00:00:00:00&#xA;    product_name    : OP1a Muxer&#xA;    product_version : 57.83.100&#xA;    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002&#xA;    modification_date: 0-01-02T00:00:00.000000Z&#xA;    material_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34300&#xA;    company_name    : Pushp&#xA;    encoder         : Lavf57.83.100&#xA;    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34301&#xA;      encoder         : Lavc57.107.100 mpeg2video&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D001343BF7652947134C343BF760052947134C34301&#xA;      encoder         : Lavc57.107.100 pcm_s16le&#xA;frame=  900 fps=407 q=24.8 Lsize=   11047kB time=00:00:30.03 bitrate=3013.6kbits/s speed=13.6x    &#xA;video:4456kB audio:5631kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.519076%&#xA;

    &#xA;