Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (39)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (2211)

  • C# - Discord.Net - Trying to read audio from soundcloud and transmit it to discord

    28 mars 2022, par Bruno Braga

    I am currently working on a discord bot that is able to play a song using soundcloud.
Unfortunately, I can't seem to figure out how to get it to read from the url and stream it !
The bot it made in C#, and uses Discord.net library and ffmpeg for the audio.
Would love to hear some suggestions !

    


    These are the three functions involved :

    


    [Command("teste", RunMode = RunMode.Async)]
public async Task Play(IVoiceChannel channel = null)
{
    var audioClient = await JoinChannel(channel);
    var url = "https://soundcloud.com/campatechlive/campatech-live-feat- 
        matheus-moussa-arabian-system-vol-2-psy-trance-150-original-mix";

    var ffmpeg = new Ffmpeg(audioClient);
    await ffmpeg.SendAsync(url);
}

public async Task SendAsync(string path)
{
    using (var ffmpeg = CreateStream(path))
    using (var output = ffmpeg.StandardOutput.BaseStream)
    using (var discord = _client.CreatePCMStream(AudioApplication.Mixed))
    {
        try { await output.CopyToAsync(discord); }
        finally { await discord.FlushAsync(); }
    }
}

private Process? CreateStream(string path)
{
    return Process.Start(new ProcessStartInfo
    {
        FileName = "ffmpeg",
        Arguments = $"-hide_banner -loglevel panic -i \"{path}\" -ac 2 -f 
        s16le -ar 48000 pipe:1",
        UseShellExecute = false,
        RedirectStandardOutput = true,
    });
}


    


    I'm guessing it's something on the ffmpeg arguments, but can't kind of figure out what.

    


    I've tried a bunch of different arguments on ffmpeg, but none of them worked.
Anyone can lend me a hand ?

    


  • Stream Audio to Discord (FFMPEG and Discord.Net 1.0.1)

    16 août 2017, par ComedicChimera

    I have a music bot for Discord and I want to be able to stream audio from a site directly into Discord. Currently I have to download the file and then play it which works, but also takes a lot of time. Here is part of the code for the play command (The part the plays the audio.) :

    IVoiceChannel channel = (Context.User as IVoiceState).VoiceChannel;
                   Music.client = await channel.ConnectAsync();

                   var output = CreateStream("tmpvid.mp3").StandardOutput.BaseStream;
                   var stream = Music.client.CreatePCMStream(AudioApplication.Music);
                   await output.CopyToAsync(stream);
                   await stream.FlushAsync().ConfigureAwait(false);

    Here is the code for the FFMPEG.

    private Process CreateStream(string path)
       {
           return Process.Start(new ProcessStartInfo
           {
               FileName = "ffmpeg.exe",
               Arguments = $"-hide_banner -loglevel panic -i \"{path}\" -ac 2 -f s16le -ar 48000 pipe:1",
               UseShellExecute = false,
               RedirectStandardOutput = true
           });
       }

    My code also is able to get the url and a network stream so would it be possible for me to simply pipe that stream through FFMPEG to discord or pass the url in as a parameter ? Thanks so much !

  • Anomalie #3190 (Nouveau) : Critère {fusion}

    19 mars 2014, par Sylvain Lesage

    Dans le cas suivant, un peu tordu, le critère fusion n’est pas pris en compte

    #ID_MOT

    pareil avec

    #ID_MOT

    Est-ce que c’est normal ?