Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (24)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

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

Sur d’autres sites (4979)

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