Recherche avancée

Médias (0)

Mot : - Tags -/images

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

Autres articles (111)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (10799)

  • How to Remove a Specific Segment from an Audio File Using Timestamps in C# ? [closed]

    8 février, par Hilal Khan

    I am working on a C# project where I need to remove a specific segment from an audio file (e.g., WAV, MP3) based on start and end timestamps, while keeping the rest of the audio intact.

    


    For example, given a 20-minute audio file, I want to remove the section from 17:00 to 19:00 and be left with a new audio file containing only 0:00-17:00 and 19:00-20:00 (i.e., keeping the parts before and after the cut).

    


    I have used NAudio and FFmpeg to trim a file by cutting from the start or end, but I only get my desired snippet as a separate file which is not what I am looking for as I want it to be removed from the audio itself

    


    Heres what I have so far :

    


    static void RemoveSegment(string inputPath, string outputPath, double startTime, double endTime)
{
    using (var reader = new Mp3FileReader(inputPath))
    {
        var writer = new FileStream(outputPath, FileMode.Create, FileAccess.Write);

        int bytesPerMillisecond = reader.WaveFormat.AverageBytesPerSecond / 1000;
        long startPosition = (long)(startTime * 1000) * bytesPerMillisecond;
        long endPosition = (long)(endTime * 1000) * bytesPerMillisecond;

        byte[] buffer = new byte[4096];
        int bytesRead;

        while ((bytesRead = reader.Read(buffer, 0, buffer.Length)) > 0)
        {
            if (reader.Position < startPosition || reader.Position > endPosition)
            {
                writer.Write(buffer, 0, bytesRead);
            }
        }

        writer.Close();
    }

    Console.WriteLine("Segment removed successfully!");
}


    


  • How to remove a specific segment from an audio file using timestamps ? [closed]

    9 février, par Hilal Khan

    I am working on a C# project where I need to remove a specific segment from an audio file (e.g., WAV, MP3) based on start and end timestamps, while keeping the rest of the audio intact.

    


    For example, given a 20-minute audio file, I want to remove the section from 17:00 to 19:00 and be left with a new audio file containing only 0:00-17:00 and 19:00-20:00 (i.e., keeping the parts before and after the cut).

    


    I have used NAudio and FFmpeg to trim a file by cutting from the start or end, but I only get my desired snippet as a separate file which is not what I am looking for as I want it to be removed from the audio itself

    


    Heres what I have so far :

    


    static void RemoveSegment(string inputPath, string outputPath, double startTime, double endTime)
{
    using (var reader = new Mp3FileReader(inputPath))
    {
        var writer = new FileStream(outputPath, FileMode.Create, FileAccess.Write);

        int bytesPerMillisecond = reader.WaveFormat.AverageBytesPerSecond / 1000;
        long startPosition = (long)(startTime * 1000) * bytesPerMillisecond;
        long endPosition = (long)(endTime * 1000) * bytesPerMillisecond;

        byte[] buffer = new byte[4096];
        int bytesRead;

        while ((bytesRead = reader.Read(buffer, 0, buffer.Length)) > 0)
        {
            if (reader.Position < startPosition || reader.Position > endPosition)
            {
                writer.Write(buffer, 0, bytesRead);
            }
        }

        writer.Close();
    }

    Console.WriteLine("Segment removed successfully!");
}


    


  • I am able to write certain metadata information to a .m4v file but not all using ffmpeg

    14 janvier 2014, par user3193123

    For example use this code

    ffmpeg -i avatar.m4v -metadata title="Avatar" -metadata artist="James Cameron" -metadata     description="Long Long Ago…" acodec copy -vcodec copy -y /Users/Anand/Desktop/anand.m4v

    Works perfectly fine !!!

    But i am not able to write metadata information such as Rating, Actors(Cast), Producers etc.. because i dont know the keywords or the keywords don't exist ?

    Any body know the keyword for them or can't i write them ?