Recherche avancée

Médias (91)

Autres articles (66)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (5701)

  • How to play entire youtube playlist on discord.py bot with youtube-dl

    25 novembre 2020, par bork

    I'm trying to make a discord music bot. I'm using youtube-dl to retrieve the info and ffmpeg to play the audio out. My bot can successfully queue and play regular videos but when it comes to playing the entire playlist, it doesn't work.

    


    This is my code for playing playlists :

    


                if 'entries' in info:
                for i in info['entries']:
                    URL = i['formats'][0]['url']     
                    player = FFmpegPCMAudio(URL, **FFMPEG_OPTIONS)
                    queue.append(player)
                    source = queue.pop(0)
                    voice.play(player, after = lambda e: play_next(ctx, source))            
                    await ctx.send('playing song')


    


    This downloads all the videos in the playlist but only plays the first one then shows this error :
discord.errors.ClientException: Already playing audio.

    


  • Get AudioInputStream from FFMPEG output

    1er juin 2016, par grandmind1

    I’m trying to pipe output from FFMPEG to an AudioInputStream in Java. This is what I have so far :

    Process process = new ProcessBuilder("ffmpeg", "-hide_banner", "no-stats", "-y", "-i", "song.wav", "-vn", "-q:a", "5", "-f", "mp3", "pipe:1").start();
    AudioInputStream stream = AudioSystem.getAudioInputStream(process.getInputStream());

    I thought I could just get the InputStream from the process and create and AudioInputStream from that, but this results in the following exception :

    Caused by: java.io.EOFException: null
       at java.io.DataInputStream.readInt(DataInputStream.java:392)
       at com.sun.media.sound.WaveFileReader.getFMT(WaveFileReader.java:234)
       at com.sun.media.sound.WaveFileReader.getAudioInputStream(WaveFileReader.java:150)
       at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1113)
       at com.darichey.argentumbot.ArgentumBot.onReady(ArgentumBot.java:68)

    I’m not sure how I can do this properly.

  • ffmpeg stream : only video, no audio (twitch livestream)

    24 mai 2023, par Sam Leurs

    I have the following ffmpeg command in node.js to stream to a twitch livestream.

    


    Please note that the code is simplified.

    


    const ffmpeg = require('ffmpeg-static');

const cmd = `${ffmpeg} \
-stream_loop -1 \
-re \
-f mp4 \
-i ${argv.v} \
-stream_loop -1 \
-re \
-f mp3 \
-i ${argv.a} \
-c:a libmp3lame \
-c:v libx264 \
-b:a 128k \
-b:v 4500k \
-ar 44100 \
-ac 2 \
-preset veryfast \
-pix_fmt yuv420p \
-f flv ${url}`;

const stream = exec(cmd);


    


    It's an mp4-file of 5 seconds and an mp3-file of 15 minutes. It should be an infinite stream.

    


    The video works and is looped as expected, but the audio isn't playing. If I add the audio directly to the video (with a video editor) and stream the file, the audio at twitch works.

    


    I had it working a few hours ago but after changing the command it does not work anymore. I was thinking I was blocked by twitch. It's a royalty free number generated by AI, so not a known pop song which could be blocked by twitch (if that's even possible).

    


    Does someone know the solution ?