Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (11)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

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

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

  • ffmpeg -vf transpose not working for output as .mp4 file

    5 août 2014, par user3909162

    I want to rotate iPhone/iPad video to 90 degree, i am using following code

    $input = 'video1.mp4';
    $output = 'output.mp4';

    $command = "ffmpeg -i $input -vf transpose=1 $output";
    exec( $command, $ret );

    the above code is not working for

    $output = 'output.mp4'; //(mp4 file)

    but its working fine when i use

    $output = 'output.avi'; //(avi file)

    Please tell me solution for this i want also compress video in mp4 video.

  • using FFMPEG to convert to MP4 with maximum browsers compatibilty

    6 mars 2016, par Karim

    I’m converting from WMV to FLV using FFMPEG, and my problem is that the FLV videos are so big ! the 15 minutes video’s size ranges between 150MB and 1GB !
    I’m using the following FFMPEG command to convert and split WMV videos :

    nohup nice -1 ffmpeg -y -ss 00:00:00 -t 00:15:00 -async 1 -i INPUT.WMV -acodec libmp3lame OUTPUT.FLV

    And I’ve tried converting to MP4 before and the video size was much smaller than the FLV video.

    So my questions are :

    • Would the MP4 videos have any
      compatibility issues browsers ?
    • Would it work on iPhone, iPad ? (I
      know FLV videos doesn’t work on
      iPhones or iPads)
    • What is the best FFMPEG command to
      convert to MP4 without losing the
      quality of the video ?
  • 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;