Recherche avancée

Médias (91)

Autres articles (103)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (12771)

  • Running FFmpeg in isolated Azure Function not working in Azure

    6 septembre 2023, par Isak Engström

    I'm unable to run ffmpeg in a .Net 7 isolated process Azure Function in Azure. I can run it locally, and I've had success running it in a .Net 6 in-process Azure Function in Azure as well.

    


    Here's an example of how I run the ffmpeg process, without any luck. The process.ExitCode on exit is always '-1073741515'.

    


    internal bool IsFfmpegExecutable(string ffmpegPath)
{
    try
    {
        using var process = new Process();
        var startInfo = new ProcessStartInfo
        {
            FileName = ffmpegPath,
            RedirectStandardOutput = true,
            RedirectStandardError = true,
            UseShellExecute = false,
            CreateNoWindow = true,
            Arguments = "-version"
        };

        process.StartInfo = startInfo;

        process.OutputDataReceived += (_, _) => { };
        process.ErrorDataReceived += (_, _) => { };

        process.Start();
        process.WaitForExit();

        return process.ExitCode == 0;
    }
    catch (Exception)
    {
        return false;
    }
}


    


    The path to the ffmpeg.exe (along with the other ffmpeg dll and exe files) are correct, as I've checked it with File.Exists(). All those files are located in the C :\home\site\wwwroot\ffmpeg\ folder in Azure, as can be seen in Kudu : enter image description here

    


    Any idea of how I can get it working ?

    


  • Calling FFMPEG Commands via Windows Service

    2 février 2017, par Kubi

    I have a windows service and I checked the "Allow service to interact with desktop" checkbox in LogOn tab. However, I still can not call my batch file which is a basic command app to run the ffmpeg commands to transcode some videos in my application. (I’m sending arguments as well)

    I checked the logs in Process Monitor but everything seems fine when I filter it with MyServiceName.exe. All threads are looking fine but the service can not even start the command file.

    If I can not find a solution for this, I’m going to create another service and communicate with each other about the transcoding process, But I’m looking for a way to find the exact problem here.

           BinaryPath = @"c:\Transcoder\ServiceConsole.exe";
           //create a process info
           ProcessStartInfo oInfo = new ProcessStartInfo(BinaryPath, " /readfromfile command.txt");
           oInfo.UseShellExecute = false;
           oInfo.CreateNoWindow = true;
           oInfo.RedirectStandardOutput = true;
           oInfo.RedirectStandardError = true;
           string output = null; StreamReader srOutput = null;

           try
           {
               Process proc = System.Diagnostics.Process.Start(oInfo);

               proc.WaitForExit();

               //get the output
               srOutput = proc.StandardError;

               //now put it in a string
               output = srOutput.ReadToEnd();

               proc.Close();
           }
  • How to pipe in and pipe out of ffmpeg in python ? [closed]

    22 mai 2024, par sa_penguin

    I want to use ffmpeg as a middleman to perform a functionality. The camera frames will be read through opencv and passed to ffmpeg for processing. FFMPEG need to pass the processed frames to opencv for displaying. Below is what I tried. The code hangs and is not displaying anything. Any help will be appreciated.

    


    import cv2
import math
import subprocess as sp

import ffmpeg
import numpy as np


def main():
    cap = cv2.VideoCapture(0)
    if not cap.isOpened():
        print("Camera can't open\nexit")
        return -1
    width = 640
    height = 480
    fps = 30

out = process = (
        ffmpeg
        .input('pipe:', vsync=0, hwaccel='cuda', hwaccel_output_format='cuda', format='rawvideo', pix_fmt='bgr24', s=f'{width}x{height}', r=f'{fps}')
        .filter('setsar', sar=1)  # Keep the aspect ratio
        .output('pipe:', format='rawvideo', pix_fmt='bgr24')
        .run_async(pipe_stdin=True, pipe_stdout=True)
)

while True:
    success, frame = cap.read()
    img = cv2.cvtColor(frame, cv2.COLOR_BayerBG2BGR)
    process.stdin.write(img.tobytes())

    arr = np.frombuffer(process.stdout.read(width*height*3), dtype=np.uint8)
    cv2.imshow("webcam",arr))
    cv2.waitKey(0)


if __name__ == "__main__":
    main()