Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (65)

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

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (9026)

  • 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 ?

    


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

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