
Recherche avancée
Autres articles (49)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa 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 2013Puis-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, parCe 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)
-
Record video with Accord.net (AForge)
26 novembre 2020, par ghasem dehI 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.




-
How to save H.264 stream to mp4 container using Accord.FFMPEG.Video
4 décembre 2017, par rgeorgI am receiving raw H.264 frames in a callback in C#. I can save the stream to a *.264 file where I can see the video using Elecard StreamEye.
Is it possible to save the video to an mp4 container using Accord.FFMPEG.Video VideoFileWriter or VideoFileSource without re-encoding it ?
I would rather not have to implement it using p/Invokes to libav unless there is no alternative.
-
Create a Video file with Accord.video.ffmpeg and vb.net [on hold]
11 août 2017, par ATsiriI am new in VB.NET Programming. I am trying to make an application that grabs my USB camera and then I can make a video file from it.
I have searched a lot and found out that Accord.video.ffmpeg can do this job.
I have managed to capture my USB camera but I am having a problem to make a video file and save it to my debug folder.
Any ideas ? How can I do it ?