Recherche avancée

Médias (91)

Autres articles (13)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (2894)

  • cli : Fix linking with —system-libx264 on x86

    7 août 2018, par Henrik Gramner
    cli : Fix linking with —system-libx264 on x86
    
    • [DH] common/x86/cpu-a.asm
  • How to capture desktop using ffmpeg ? getting error when stop recording : System.InvalidOperationException : 'StandardIn has not been redirected.'

    4 octobre 2023, par SharonHemed

    I want it to record the entire desktop then when stopping to save the file to the hard drive. and to hide without the console window of the ffmpeg.

    


    but getting this exception error. and i'm setting the RedirectStandardInput to true.
so i'm not sure why it's showing this error.

    


    The exception error is on the line

    


    process.StandardInput.BaseStream.Write(qKey, 0, 1);


    


    The full code

    


    using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NAudio.CoreAudioApi;
using NAudio.Wave;

namespace Desktop_Recorder
{
    public partial class Form1 : Form
    {
        Process process;

        public Form1()
        {
            InitializeComponent();

            process = new Process();
            Start(@"d:\test.mp4", 30);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Stop();
        }

        public void Start(string FileName, int Framerate)
        {
            process.StartInfo.FileName = @"d:\ffmpeg\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
            process.EnableRaisingEvents = false;
            process.StartInfo.WorkingDirectory = @"D:\"; // The output directory  
            process.StartInfo.Arguments = @"-y -f gdigrab -framerate " + Framerate +
                " -i desktop -preset ultrafast -pix_fmt yuv420p " + FileName;
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.CreateNoWindow = false;
            process.StartInfo.RedirectStandardInput = true; //Redirect stdin
            process.StartInfo.RedirectStandardError = true;
            process.Start();
            System.Threading.Thread.Sleep(3000);  //Wait 3 seconds (for testing).
            Stop();
        }

        public void Stop()
        {
            byte[] qKey = Encoding.GetEncoding("gbk").GetBytes("q"); //Get encoding of 'q' key
            process.StandardInput.BaseStream.Write(qKey, 0, 1); //Write 'q' key to stdin of FFmpeg sub-processs
            process.StandardInput.BaseStream.Flush(); //Flush stdin (just in case).
            process.Close();
        }


        private void btnStartRecording_Click(object sender, EventArgs e)
        {

        }
    }
}


    


  • avformat/mxfenc : fix warning : unused function 'klv_ber_length' [-Wunused-function]

    29 août 2019, par Limin Wang
    avformat/mxfenc : fix warning : unused function 'klv_ber_length' [-Wunused-function]
    

    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>

    • [DH] libavformat/mxfenc.c