Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (33)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

Sur d’autres sites (5955)

  • Unknown issue with Discord.js and ytdl, completely skips playing audio

    21 novembre 2017, par Gman0064

    One of the commands I have for my Discord bot is to play a predefined music clip in the current user’s voice channel. The bot can connect, but rather than playing the song, it instantaneously leaves. I’ve tried using both connection.playStream as well as connection.playFile, and both seem to return the same (lack of) output. Am I missing some sort of dependency or is my code just written incorrectly ? Any help would be greatly appreciated !

    const Discord = require('discord.js');
    const ytdl = require('ytdl-core');
    const client = new Discord.Client();
    const streamOptions = { seek: 0, volume: 1};

    client.on('ready', () => {
     console.log('Login Success');
    });

    client.on('message', message => {
     if (message.content === '$vaporwave') {
       if (!message.guild) return;
       if(message.member.voiceChannel) {
         message.member.voiceChannel.join().then(connection => {
           console.log("joined channel");
           //const stream = ytdl('https://www.youtube.com/watch?v=cU8HrO7XuiE', { filter : 'audioonly' });
           const dispatcher = connection.playFile('./mcp420.mp3');
           //const dispatcher = connection.playStream(stream, streamOptions);
           dispatcher.on("end", end => {
             console.log("left channel");
             message.member.voiceChannel.leave();
           });
         }).catch(err => console.log(err));
       }
     }
    });
    • NPM v4.6.1
    • Node.js v8.9.1
    • FFMPEG v3.2.8-1
  • 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 ?

    


  • Seeking Guidance on Audio Development Libraries for Playing Various Music Formats on iOS [closed]

    3 décembre 2023, par FaiChou

    I am exploring audio development and am overwhelmed by the numerous libraries available :

    


      

    • AVFoundation
    • 


    • MediaPlayer
    • 


    • AVFAudio
    • 


    • Audio Engine
    • 


    • CoreAudio
    • 


    • AudioToolbox
    • 


    • Audio Unit
    • 


    


    Which of these should I use to play both network or local music files (flac/wav/mp3/aac/wma/ogg) ? What are their specific roles ?

    


    My understanding is that I should use ffmpeg for demuxing to unpackage, then decode the stream to get PCM samples, possibly using Audio Engine for playback. Is this a software decoding method ? For Apple-supported formats like mp3, can I bypass ffmpeg for decoding ? Which library would be most suitable in this case ?

    


    Additionally, how do I extract metadata (song name, artist, cover, lyrics, etc.) from music files ? Apple's own solutions seem to support only ID3 or iTunes tags. How should I handle other formats like wav/flac ?

    


    The two links below are the resources I've referenced, but they seem outdated. My search for newer, reliable explanations has been fruitless.