Recherche avancée

Médias (91)

Autres articles (76)

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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6055)

  • Could you please guide me on how to play a single sample of an audio file in C# using FFmpeg ?

    11 juillet 2023, par hello world

    What is the recommended approach for playing a single sample of an audio file in C# using FFmpeg ? I would like to incorporate FFmpeg into my C# application to play a specific sample from an audio file. Could someone provide an example or guide me on how to achieve this ? Any help would be appreciated.

    


    using System;
using System.Diagnostics;

public class AudioPlayer
{
    private string ffmpegPath;

    public AudioPlayer(string ffmpegPath)
    {
        this.ffmpegPath = ffmpegPath;
    }

    public void PlayAudioSample(string audioFilePath, TimeSpan samplePosition)
    {
        // Prepare FFmpeg process
        Process ffmpegProcess = new Process();
        ffmpegProcess.StartInfo.FileName = ffmpegPath;
        ffmpegProcess.StartInfo.Arguments = $"-ss {samplePosition} -i \"{audioFilePath}\" -t 1 -acodec pcm_s16le -f wav -";
        ffmpegProcess.StartInfo.RedirectStandardOutput = true;
        ffmpegProcess.StartInfo.RedirectStandardError = true;
        ffmpegProcess.StartInfo.UseShellExecute = false;
        ffmpegProcess.StartInfo.CreateNoWindow = true;

        // Start FFmpeg process
        ffmpegProcess.Start();

        // Play audio sample
        using (var audioOutput = new NAudio.Wave.WaveOutEvent())
        {
            using (var audioStream = new NAudio.Wave.RawSourceWaveStream(ffmpegProcess.StandardOutput.BaseStream, new NAudio.Wave.WaveFormat(44100, 16, 2)))
            {
                audioOutput.Init(audioStream);
                audioOutput.Play();
                while (audioOutput.PlaybackState == NAudio.Wave.PlaybackState.Playing)
                {
                    System.Threading.Thread.Sleep(100);
                }
            }
        }

        // Wait for FFmpeg process to exit
        ffmpegProcess.WaitForExit();
    }
}


    


  • How can I apply complex filters more than once with different parameters while avoiding "too many inputs" errors

    15 mai 2019, par Hugh Walxet

    I’m trying to apply the displace complex filter more than once in a video, at specific intervals with no proportional relationship. In each instance, I want to apply the displace filter with slightly different parameters. If I list it twice in the commands for the complex_filter, I get an error saying I have too many inputs.

    I might as well ask, separately, how I could apply the same filter with the same parameters more than once in a video, without re-iterating the same filter more than once in the command line. Put differently, how do I run a filter as specific times without writing the command several times sequentially, each with a different trigger time ?

    C:\Users\Me>ffmpeg -i c:\users\Me\desktop\house2.mp4 -i c:\users\Me\desktop\house3.mp4 -i c:users\Me\desktop\house4.mp4 -filter_complex "shuffleframes=enable='between(t,21,27)':mapping=0 9 2 1 10 5 8 6 7 4 3, shuffleframes=enable='between(t,3,7)':mapping=0 4 9 1 10 5 8 6 2 7 4 3, shuffleframes=enable='between(t,15,19)':mapping=0 6 2 1 10 5 8 3 7 4 9, [0][1][2] displace=enable='between(t,9,10)':edge=wrap, [0][1][2] displace=enable='between(t,20,21)':edge=smear" c:\users\Me\desktop\houseglitch.mp4
  • How to apply complex filters more than once with different parameters while avoiding "too many inputs" errors in ffmpeg ?

    15 mai 2019, par Hugh Walxet

    I’m trying to apply the displace complex filter more than once in a video, at specific intervals with no proportional relationship. In each instance, I want to apply the displace filter with slightly different parameters. If I list it twice in the commands for the complex_filter, I get an error saying I have too many inputs.

    I might as well ask, separately, how I could apply the same filter with the same parameters more than once in a video, without re-iterating the same filter more than once in the command line. Put differently, how do I run a filter as specific times without writing the command several times sequentially, each with a different trigger time ?

    C :\Users\Me>ffmpeg -i c :\users\Me\desktop\house2.mp4 -i c :\users\Me\desktop\house3.mp4 -i c:users\Me\desktop\house4.mp4 -filter_complex "shuffleframes=enable=’between(t,21,27)’:mapping=0 9 2 1 10 5 8 6 7 4 3, shuffleframes=enable=’between(t,3,7)’:mapping=0 4 9 1 10 5 8 6 2 7 4 3, shuffleframes=enable=’between(t,15,19)’:mapping=0 6 2 1 10 5 8 3 7 4 9, [0][1][2] displace=enable=’between(t,9,10)’:edge=wrap, [0][1][2] displace=enable=’between(t,20,21)’:edge=smear" c :\users\Me\desktop\houseglitch.mp4