Recherche avancée

Médias (1)

Mot : - Tags -/graphisme

Autres articles (42)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7277)

  • FFMpeg gets stuck while using c# but not shell

    18 juin 2024, par Internal

    I'm working on a C# project where I need to run FFmpeg commands to process videos. The FFmpeg command works perfectly fine when executed directly in the shell, but it hangs when run from my C# application. I suspect the issue is related to the output pipes getting full.

    


    Here is the FFmpeg command I'm using :

    


    shell
C:\path\to\ffmpeg.exe -f concat -safe 0 -i "C:\path\to\list.txt" -vf "scale=1080x1920,setsar=1" -c:v libx264 -pix_fmt yuv420p -c:a aac -ar 44100 -ac 2 "C:\path\to\output.mp4"

    


    And here is my C# code :

    


    private static async Task _ExecuteFfmpegCommand(string arguments) {&#xA;    const string EXECUTABLE_NAME = "ffmpeg.exe";&#xA;    var executableFile = FfmpegPath.File(EXECUTABLE_NAME);&#xA;    await DownloadSercvice.EnsureFileExist(executableFile, FfmpegURI);&#xA;    arguments = $"-loglevel quiet {arguments}";&#xA;&#xA;    using var process = new Process {&#xA;        StartInfo = new ProcessStartInfo {&#xA;            FileName = executableFile.FullName,&#xA;            Arguments = arguments,&#xA;            UseShellExecute = false,&#xA;            CreateNoWindow = true,&#xA;            RedirectStandardOutput = true,&#xA;            RedirectStandardError = true&#xA;        }&#xA;    };&#xA;&#xA;    var command = $"{process.StartInfo.FileName} {process.StartInfo.Arguments}";&#xA;    Console.WriteLine($"This is my process command: {command}");&#xA;&#xA;    var outputTask = new TaskCompletionSource<string>();&#xA;    var errorTask = new TaskCompletionSource<string>();&#xA;&#xA;    process.OutputDataReceived &#x2B;= (sender, e) => {&#xA;        if (e.Data == null)            &#xA;            outputTask.SetResult(null);            &#xA;        else            &#xA;            Console.WriteLine(e.Data);            &#xA;    };&#xA;&#xA;    process.ErrorDataReceived &#x2B;= (sender, e) => {&#xA;        if (e.Data == null)            &#xA;            errorTask.SetResult(null);            &#xA;        else            &#xA;            Console.WriteLine(e.Data);            &#xA;    };&#xA;&#xA;    process.Start();&#xA;    process.BeginOutputReadLine();&#xA;    process.BeginErrorReadLine();&#xA;&#xA;    await process.WaitForExitAsync();&#xA;&#xA;    var output = await outputTask.Task;&#xA;    var error = await errorTask.Task;&#xA;&#xA;    if (process.ExitCode != 0 || !string.IsNullOrWhiteSpace(error)) {&#xA;        throw new InvalidOperationException($"FFMPEG Error(0x{process.ExitCode:X8}): {error}") {&#xA;            Data = {&#xA;            { "Output", output },&#xA;            { "Error", error },&#xA;            { "ExitCode", process.ExitCode }&#xA;        }&#xA;        };&#xA;    }&#xA;}&#xA;</string></string>

    &#xA;

    Issue :&#xA;The process hangs and does not complete execution. I suspect the FFmpeg process's output pipes (stdout and stderr) are getting full, causing the hang. I've tried setting the log level to error, but it didn't resolve the issue.&#xA;I got that info from here : ffmpeg hangs when run in background&#xA;Solutions Tried :

    &#xA;

    Set -loglevel error in the FFmpeg command to reduce verbosity.&#xA;Set -loglever quiet in the FFmpeg command (to test if that may work)

    &#xA;

    Handled OutputDataReceived and ErrorDataReceived events to read the output asynchronously.&#xA;Questions :

    &#xA;

    How can I prevent the FFmpeg process from hanging due to full output pipes ?&#xA;Are there better ways to handle the stdout and stderr of the FFmpeg process in C# ?&#xA;Any help or suggestions on how to resolve this issue would be greatly appreciated !

    &#xA;

  • Struggling to add frame number to each frame of a video

    29 juin 2020, par Alex Willcox

    I'm trying to add frame number to each frame of a video using the code below. It's working, as in it's labelling the frames but it's dropping frames when doing so. For some reason, it's coding at 30fps, rather than the 200fps that I would like. Does anyone know how to solve this ? Thanks !

    &#xA;

    ffmpeg -i YR7-020320-B1-2.avi -vf "drawtext=fontfile=/usr/share/fonts/truetype/DroidSans.ttf: timecode=&#x27;00\:00\:00\:00&#x27;: r=200: \ x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1" -an -y out.mp4&#xA;

    &#xA;

  • How to write data captured from Debug Console to a textBox in WinForms ? [closed]

    2 avril 2020, par Serhat Çelik

    I run a basic FFmpeg command and tried to capture live output like below :

    &#xA;&#xA;

    private void button1_Click(object sender, EventArgs e)&#xA;{&#xA;            using (Process ffmpeg = new Process())&#xA;            {&#xA;&#xA;                ffmpeg.StartInfo.UseShellExecute = false;&#xA;                ffmpeg.StartInfo.CreateNoWindow = true;&#xA;                ffmpeg.StartInfo.RedirectStandardOutput = true;&#xA;                ffmpeg.StartInfo.RedirectStandardError = true;&#xA;                ffmpeg.StartInfo.RedirectStandardInput = true;&#xA;&#xA;                ffmpeg.StartInfo.FileName = "ffmpeg.exe";&#xA;                ffmpeg.StartInfo.Arguments = $"-v quiet -stats -y -i C:\\Users\\user\\in.mp4 C:\\Users\\user\\out.mkv";&#xA;&#xA;                ffmpeg.EnableRaisingEvents = true;&#xA;                ffmpeg.OutputDataReceived &#x2B;= (s, ea) => { Debug.WriteLine($"STD: {ea.Data}"); };&#xA;                ffmpeg.ErrorDataReceived &#x2B;= (s, ea) => { Debug.WriteLine($"ERR: {ea.Data}"); };&#xA;                ffmpeg.Start();&#xA;                ffmpeg.BeginOutputReadLine();&#xA;                ffmpeg.BeginErrorReadLine();&#xA;                ffpeg.WaitForExit();&#xA;&#xA;                 // What to do after that? Like:&#xA;                   // string str; textBox1.Text = str&#xA;           }&#xA;}&#xA;

    &#xA;&#xA;

    I am so confused that I cannot figured it out. Please help, thanks.

    &#xA;