Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (76)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (5183)

  • 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 !

  • avcodec : add D3D12VA hardware accelerated H264 decoding

    5 décembre 2023, par Wu Jianhua
    avcodec : add D3D12VA hardware accelerated H264 decoding
    

    The implementation is based on :
    https://learn.microsoft.com/en-us/windows/win32/medfound/direct3d-12-video-overview

    With the Direct3D 12 video decoding support, we can render or process
    the decoded images by the pixel shaders or compute shaders directly
    without the extra copy overhead, which is beneficial especially if you
    are trying to render or post-process a 4K or 8K video.

    The command below is how to enable d3d12va :
    ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4

    Signed-off-by : Wu Jianhua <toqsxw@outlook.com>
    Signed-off-by : Tong Wu <tong1.wu@intel.com>

    • [DH] configure
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/d3d11va.h
    • [DH] libavcodec/d3d12va_decode.c
    • [DH] libavcodec/d3d12va_decode.h
    • [DH] libavcodec/d3d12va_h264.c
    • [DH] libavcodec/dxva2.c
    • [DH] libavcodec/dxva2.h
    • [DH] libavcodec/dxva2_av1.c
    • [DH] libavcodec/dxva2_h264.c
    • [DH] libavcodec/dxva2_hevc.c
    • [DH] libavcodec/dxva2_internal.h
    • [DH] libavcodec/dxva2_mpeg2.c
    • [DH] libavcodec/dxva2_vc1.c
    • [DH] libavcodec/dxva2_vp9.c
    • [DH] libavcodec/h264_slice.c
    • [DH] libavcodec/h264dec.c
    • [DH] libavcodec/hwaccels.h
    • [DH] libavcodec/hwconfig.h
  • Connect ffmpeg to Visual Studio 2008

    29 avril 2014, par user2274492

    I try to connect ffmpeg to visual c++ like this, but when I type "./configure —toolchain=msvc" I have this error :

    c99wrap cl is unable to create an executable file.

    If c99wrap cl is a cross-compiler, use the —enable-cross-compile
    option. Only do this if you know what cross compiling means.

    C compiler test failed

    config.log :

    WARNING : pkg-config not found, library detection may fail. mktemp -u
    XXXXXX ./configure : line 728 : mktemp : command not found WARNING :
    Unknown C compiler C :\c99\c99wrap cl, unable to select optimal CFLAGS
    check_ld cc check_cc BEGIN /tmp/ffconf..ZHENYA.500.5884.c
    1 int main(void) return 0 ; END /tmp/ffconf..ZHENYA.500.5884.c C :\c99\c99wrap cl -c -o /tmp/ffconf..ZHENYA.500.5884.o
    /tmp/ffconf..ZHENYA.500.5884.c fatal error C1510 : Cannot load language
    resource clui.dll. C compiler test failed.

    What’s the problem ? Or just send me files that you got after compilation with this (I would not have asked, but I fix this two months) :

    ./configure —toolchain=msvc

    make

    make install


    log after changes :

      WARNING: pkg-config not found, library detection may fail.
    mktemp -u XXXXXX
    Uxplas
    check_ld cc
    check_cc
    BEGIN /tmp/ffconf.WcAVdgRZ.c
       1   int main(void){ return 0; }
    END /tmp/ffconf.WcAVdgRZ.c
    c99wrap cl -nologo -D_USE_MATH_DEFINES -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -c -Fo /tmp/ffconf.jQtxnkfv.o /tmp/ffconf.WcAVdgRZ.c
    ffconf.WcAVdgRZ.c
    ffconf.jQtxnkfv.o_converted.c
    c99wrap link -o /tmp/ffconf.sPZUPuMJ.exe /tmp/ffconf.jQtxnkfv.o
    link: invalid option -- o
    Try `link --help' for more information.
    C compiler test failed.

    log from second computer :

    WARNING: pkg-config not found, library detection may fail.
    mktemp -u XXXXXX
    ./configure: line 749: mktemp: command not found
    WARNING: Unknown C compiler c99wrap cl, unable to select optimal CFLAGS
    check_ld cc
    check_cc
    BEGIN /tmp/ffconf..zhenya.500.4036.c
    END /tmp/ffconf..zhenya.500.4036.c
    c99wrap cl -I/local/include -c -o /tmp/ffconf..zhenya.500.4036.o /tmp/ffconf..zhenya.500.4036.c
    ./configure: line 749: c99wrap: command not found
    C compiler test failed.

    Errors :

    1>ConsoleApplication1.obj : error LNK2028: ёё√ыър эр эхЁрчЁх°хээє■ ыхъёхьє (0A000039) "void __cdecl av_register_all(void)" (?av_register_all@@$$FYAXXZ) т ЇєэъЎшш "int __clrcall main(cli::array<class>^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)
    1>ConsoleApplication1.obj : error LNK2019: ёё√ыър эр эхЁрчЁх°хээ√щ тэх°эшщ ёшьтюы "void __cdecl av_register_all(void)" (?av_register_all@@$$FYAXXZ) т ЇєэъЎшш "int __clrcall main(cli::array<class>^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)
    1>c:\users\Zhenya\documents\visual studio 2012\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe : fatal error LNK1120: эхЁрчЁх°хээ√ї тэх°эшї ¤ыхьхэЄют: 2
    </class></class>