Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (49)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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" ;

Sur d’autres sites (4431)

  • Deploy application with accord.video.ffmpeg c#

    8 juillet 2017, par Alex Gimondi

    I’m using accord.video.ffmpeg 3.4.0, downloaded via nuget, to save a video with videorecorder class. If I compile (x86) my solution the application is running smoothly in visual studio, instead if I publish the app (same architecture ) when I try to run the setup.exe it installs the program but suddenly crashes. The problem is in the constructor of a class when I do new videorecorder(). It is like If during the deployment process not all the libraries needed are included.
    Anyonw knows which libraries are missing ?
    Thank,
    Alex

  • How to manage Accord.video.ffmpeg frame setting for real time output

    3 décembre 2019, par M.Farrukh

    I am using accord for recoding desktop but i have an issue in making video.
    when video creates I will become to fast or too slow.

    Here is the code :

    VideoFileWriter writer;
    writer.Open(path + "\\video.mp4", re.Width - 6, re.Height - 6, 9, VideoCodec.H264, 15000);

    I want to make it as real-time like if I made video of 5 minutes then it will show 5 minutes in the player.

  • Record video with Accord.net (AForge)

    17 mai 2017, par ghasem deh

    I used Accord.net (AForge) for connect to the webcam and record video
    But stored videos is slow motion ...
    this my project :

       using AForge.Video;
    using AForge.Video.DirectShow;
    using AForge.Video.FFMPEG;
    using System;
    using System.Drawing;
    using System.IO;
    using System.Threading;
    using System.Windows.Forms;

    namespace CaptureWebcam
    {
       public partial class Form1 : Form
       {
           private VideoCaptureDeviceForm captureDevice;
           private string path = Path.GetDirectoryName(Application.ExecutablePath) + @"\Videos\";
           private FilterInfoCollection videoDevice;
           private VideoCaptureDevice videoSource;
           private VideoFileWriter FileWriter = new VideoFileWriter();
           private Bitmap video;
           bool isRecord = false;

           public Form1()
           {
               InitializeComponent();
           }

           private void videoSource_NewFrame(object sender, NewFrameEventArgs eventArgs)
           {
               video = (Bitmap)eventArgs.Frame.Clone();
               pictureBox1.Image = (Bitmap)eventArgs.Frame.Clone();
           }

           private void btnStartCam_Click(object sender, EventArgs e)
           {
               videoDevice = new FilterInfoCollection(FilterCategory.VideoInputDevice);
               captureDevice = new VideoCaptureDeviceForm();
               if (captureDevice.ShowDialog(this) == DialogResult.OK)
               {
                   videoSource = captureDevice.VideoDevice;
                   videoSource = captureDevice.VideoDevice;
                   videoSource.NewFrame += new NewFrameEventHandler(videoSource_NewFrame);
                   videoSource.Start();
                   timer1.Enabled = true;
               }
               //videoSource.DisplayPropertyPage(IntPtr.Zero);
           }

           private Thread workerThread = null;
           private bool stopProcess = false;

           private void recordLiveCam()
           {
               if (!stopProcess)
               {
                   while (isRecord)
                   {
                       FileWriter.WriteVideoFrame(video);
                   }
                   FileWriter.Close();
               }
               else
               {
                   workerThread.Abort();
               }            
           }

           private void btnRecord_Click(object sender, EventArgs e)
           {
               //try
               //{
               isRecord = true;
               if (!Directory.Exists(path))
               {
                   Directory.CreateDirectory(path);
               }
               int h = captureDevice.VideoDevice.VideoResolution.FrameSize.Height;
               int w = captureDevice.VideoDevice.VideoResolution.FrameSize.Width;
               FileWriter.Open(path + "recorded at " + DateTime.Now.ToString("HH-mm-ss") + ".mp4", w, h, 25, VideoCodec.MPEG4);
               stopProcess = false;
               workerThread = new Thread(new ThreadStart(recordLiveCam));
               workerThread.Start();

               //}
               //catch (Exception ex)
               //{
               //    MessageBox.Show(ex.Message);
               //}
           }

           private void Form1_Load(object sender, EventArgs e)
           {

           }

           private void btnStopRecord_Click(object sender, EventArgs e)
           {
               stopProcess = true;
               isRecord = false;
               FileWriter.Close();
               workerThread.Abort();
               video = null;

           }

           private void btnStopCam_Click(object sender, EventArgs e)
           {
               try
               {
                   if (videoSource.IsRunning)
                   {
                       videoSource.SignalToStop();
                       videoSource.Stop();                  
                       pictureBox1.Image = null;
                       pictureBox1.Invalidate();
                       if (FileWriter.IsOpen)
                       {
                           FileWriter.Close();
                           video = null;
                       }
                   }
                   else
                       return;
               }
               catch
               {
                   videoSource.Stop();
                   FileWriter.Close();
                   video = null;
               }
           }

           float fts = 0.0f;
           private void timer1_Tick(object sender, EventArgs e)
           {
               fts = videoSource.FramesReceived;
               label1.Text = "Frame Rate : " + fts.ToString("F2") + " fps";
           }
       }
    }

    And when click the btnStopRecord following error :

    Additional information : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.