Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (35)

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

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

  • 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

Sur d’autres sites (5695)

  • Process not completing ?

    6 mai 2014, par Abe Miessler

    I am using FFMPEG to convert some audio files. To do this I am using the code below :

    using (Process process = new Process())
    {
       process.StartInfo.RedirectStandardOutput = true;
       process.StartInfo.RedirectStandardError = true;
       process.StartInfo.FileName = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) +
                               @"\bin\ffmpeg.exe";

       process.StartInfo.Arguments = String.Format(@"-i {0} -f mp3 {1}", OrigFilePath, OrigFileFolder + "\\" + NewFileName);


       process.StartInfo.UseShellExecute = false;
       process.StartInfo.CreateNoWindow = true;
       process.Start();
       System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "test... ");
       string output = process.StandardOutput.ReadToEnd() + System.Environment.NewLine + process.StandardError.ReadToEnd();
       System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "Output from process: " + output);
       process.WaitForExit();
       System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "After end... ");

       return true;
    }

    In my event log I see the test... log, but I never get to the Output from process: in the logs. It appears that the process is not completing. Has anyone else run into this problem ? Any idea of what is going on and how I can fix it ?

  • Error using pipe ffmpeg

    10 décembre 2016, par user3381786

    i am using ffmpeg to record video, but it doesn’t work..

       byte[] texBytes = tex.EncodeToPNG();//get byte[]
       proc = new System.Diagnostics.Process();
       proc.StartInfo.FileName = "ffmpeg.exe";
       proc.StartInfo.Arguments = " -y -r 30 -f rawvideo -codec rawvideo -s 512x512 -pixel_format rgba -i pipe:0 -vf \"transpose = 1\" -r 30 -threads 8 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p test2.mp4";
       proc.StartInfo.CreateNoWindow = true;
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.RedirectStandardError = true;
       proc.StartInfo.RedirectStandardInput = true;
       proc.Start();

       MemoryStream ms = new MemoryStream(texBytes);
       ms.WriteTo(proc.StandardInput.BaseStream);
       ms.Flush();
       ms.Close();

    the output file "test2.mp4" is only 1KB. Any problems in my codes ?
    thank you in advance.

  • The System Audio not included when recording screen using tab capture api

    21 septembre 2024, par alpecca

    I am working on a chrome extension that let user record their current tab video + the current system audio for example playing a music on the tab. I read the docs on the web about preserve audio on tab capture api and the audio constraint to set to be true

    


    chrome.tabCapture.capture({
        video: true,
        audio: true,


    


    const stream = await new Promise<mediastream null="null">((resolve, reject) => {&#xA;    chrome.tabCapture.capture({&#xA;        video: true,&#xA;        audio: true,&#xA;        videoConstraints: {&#xA;            &#xA;            mandatory: {&#xA;                minFrameRate: 60,&#xA;                maxFrameRate: 60,&#xA;                minWidth: 1920, &#xA;                minHeight: 1080, &#xA;                maxWidth: 1920,&#xA;                maxHeight: 1080,&#xA;            }&#xA;        }&#xA;    }, (stream: MediaStream | null) => {&#xA;        if (chrome.runtime.lastError) {&#xA;            return reject(new Error(chrome.runtime.lastError.message));&#xA;        }&#xA;        resolve(stream);&#xA;    });&#xA;});&#xA;</mediastream>

    &#xA;

    In the above code, when I set the audio to be true and try to record the screen, the final output doesn't contain any audio.

    &#xA;

    Here is the Media Recorder values :-

    &#xA;

    const recorder = new MediaRecorder(stream, {&#xA;            mimeType: &#x27;video/webm;codecs=H264&#x27;,&#xA;            videoBitsPerSecond: 8000000&#xA;        });&#xA;&#xA;        recorder.ondataavailable = (e: BlobEvent) => {&#xA;            socketRef.send(e.data)&#xA;           &#xA;        }&#xA;  &#xA;        recorder.start(2000);&#xA;

    &#xA;

    And also my ffmpeg in the backend to handle the incoming stream :-

    &#xA;

    command = [&#xA;        &#x27;ffmpeg&#x27;, &#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-i&#x27;, &#xA;        &#x27;-&#x27;, &#xA;        &#x27;-codec:v&#x27;, &#xA;        &#x27;copy&#x27;, &#xA;        &#x27;-codec:a&#x27;, &#xA;        &#x27;copy&#x27;, &#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-f&#x27;, &#x27;mp4&#x27;,&#xA;        recordingFile,&#xA;        # "-"&#xA;        # f&#x27;output{queueNumber}.mp4&#x27;,&#xA;    ]&#xA;

    &#xA;

    Any help would be greatly appreciated :)

    &#xA;