Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5884)

  • Can FFmpeg record audio on Android ?

    9 novembre 2022, par Pavel Poley

    Since MediaRecoreder not supports encoding to mp3 format.
Can ffmpeg to record audio directly from Android audio source (how to specify this) or it only encodes one file to other format ?

    


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

  • Record audio and video simultaneously with ffmpeg in raspberry pi

    28 juin 2022, par mojtaba

    I am saving audio and video in separate files using Raspberry Pi and USB microphone connected to Raspberry Pi.
My project is to record audio and video simultaneously and save in .flv file using ffmpeg.
I can use the following command to record and save audio and video at the same time
But sound and video are not synchronized.

    


    command : raspivid -t 0 -w 960 -h 480 -fps 24 -b 5000000 -o - | ffmpeg -i - -f alsa -ac 2 -i hw:2,0 -map 0:0 -map 1:0 -vcodec copy -acodec aac -strict -2 test.flv

    


    Please guide me to solve the problem and suggest a solution if there is one.