Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (77)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • 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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9557)

  • using ffmpeg in Azure function to cut files using c#

    24 mars 2017, par abhishekmoondra1989

    I have written an Azure function in C# which will cut a big mp4 files into some small duration. I have copied everything that is required (ffmpeg executeable, video file) in home directory via KUDU console. But when I run the the function it runs for more than 5 minutes and it doesn’t give any files in the home directory.

    Function :

    using System;
    using System.Diagnostics;

    public static void Run(string input, TraceWriter log)
    {
       log.Info("Executing");
       using (var process = new Process())
       {
           process.StartInfo.FileName = @"D:\home\ffmpeg.exe";
           process.StartInfo.Arguments = @"-i D:\home\AmnestyInternational.mp4 -ss 00:00:03 -t 00:00:08 -async 1 D:\home\cut.mp4";
           process.StartInfo.UseShellExecute = false;
           process.StartInfo.RedirectStandardOutput = true;
           process.StartInfo.RedirectStandardError = true;
           log.Info(Directory.GetCurrentDirectory());
           log.Info("Cutting starts:"+DateTime.Now.ToString("h:mm:ss tt"));
           process.Start();
           string output = process.StandardOutput.ReadToEnd();
           process.WaitForExit();
           log.Info("Cutting ends :"+DateTime.Now.ToString("h:mm:ss tt"));
           log.Info(output);
       }
    }

    Output seen on Azure function Console :

    2017-03-24T11:06:00.705 Function started (Id=df082f54-719a-415f-b7f1-b10548a213be)
    2017-03-24T11:06:00.721 Executing
    2017-03-24T11:06:00.721 D:\Windows\system32
    2017-03-24T11:06:00.721 Cutting start :11:06:00 AM
    2017-03-24T11:07:14  No new trace in the past 1 min(s).
    2017-03-24T11:08:14  No new trace in the past 2 min(s).
    2017-03-24T11:09:14  No new trace in the past 3 min(s).
    2017-03-24T11:10:14  No new trace in the past 4 min(s).
    2017-03-24T11:11:00.758 Microsoft.Azure.WebJobs.Host: Timeout value of 00:05:00 was exceeded by function: Functions.ManualTriggerCSharp1.

    When I try to execute this same command on KUDU console or my own PC it only take 1.5 mins and I get a file of the desired duration

    Could anyone please help me with this ? What I might be missing ?

  • Why is the external executable I bundled with my azure function not being found at runtime, despite it being present in the expected location ?

    6 septembre 2023, par Cristian Camilo Garcia Barrera

    I have a group of Azure functions that I publish to a functions app. One of these is a blob triggered function, meant to extract thumbnails from videos uploaded to Azure storage, and to do so, uses ffmpeg.exe.

    


    I have published the project via Visual Studio, adding the executable in a directory in the root of the project. The relative path is exe/ffmpeg.exe. To include the executable in the published bundle I followed the instructions in this Microsoft Developer instructional video.

    


    After publication, If I enter the Kudu debug console for this function app, I can find the file under C:\home\site\wwwroot\exe\ffmpeg.exe, as expected. I can even use that absolute path to execute ffmpeg inside the Kudu console.

    


    This is the code I use to call the ffmpeg executable in the blob function :

    


    using (var process = new Process())
{
    process.StartInfo = new ProcessStartInfo
    {
        FileName = @"C:\home\site\wwwroot\exe\ffmpeg.exe",
        Arguments = $"-hide_banner -loglevel error -i {videoTempPath} -frames:v 1 {thumbTempPath}",
        UseShellExecute = false,
        RedirectStandardOutput = true,
        RedirectStandardError = true,
        CreateNoWindow = true
    };

    process.Start();
    await process.WaitForExitAsync();
}


    


    However, this does not work. I get the following error in the logs :

    


    


    An error occurred trying to start process 'C :\home\site\wwwroot\exe\ffmpeg.exe' with working directory 'C :\Program Files (x86)\SiteExtensions\Functions 4.25.2132bit. The system cannot find the file specified.

    


    


    And indeed my thumbnails are never created. How can I solve this, or why does it happen ?

    


  • avcodec/wmadec : fix WMA gapless playback

    5 octobre 2018, par bnnm
    avcodec/wmadec : fix WMA gapless playback
    

    Fixes trac issue #7473.

    Removes encoder delay (skip samples) and writes remaining frame samples after EOF to get correct sample count.

    Output is now accurate vs players that use Microsoft's codecs (Windows Media Format Runtime).

    Tested vs encode>decode WMAv2 with MS's codecs and most sample rate/bit rate/channel/mode combinations in ASF/XWMA.
    WMAv1 appears to use the same delay, from FFmpeg samples.

    Signed-off-by : bnnm <bananaman255@gmail.com>

    • [DH] libavcodec/wma.h
    • [DH] libavcodec/wmadec.c
    • [DH] tests/fate/wma.mak
    • [DH] tests/ref/fate/flcl1905