Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (49)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (6046)

  • I have a audio in 128kbps that was read 16KB every second, but it seems that I am getting more than 1 seconds of the music each time. Why ?

    23 décembre 2022, par Hexona

    So I have a new stream to which I will push 2048 bytes of audio buffer every 128ms (i.e. 16KB every second) but I seem to have more than 1 second of data pushed to the stream. (I think so by finding ffmpeg is still streaming sound even tens of seconds after I stop pushing data in it)

    


    When I changed it to 1024 bytes/128ms (8KB/s), the sound stop right after I stop pushing data.

    


    Please correct me if I do anything wrong !

    


    Some background story

    


    I am using ffmpeg to stream to a rtp server. It is one-time used, so I can't stop ffmpeg and start again. I don't want to use the ZeroMQ way because of latency. The target I am trying to archive is to have the same readable stream to ffmpeg and change the audio content on the go by stop pushing chunks of previous audio file and switch to the new one.

    


    If you know some other ways to archive the goal, I would be very pleased to know. Thank you in advance !

    


    My current code

    


    const stream = new Stream.Readable();

// ...
// (send stream to ffmpeg)
// ...

fileP = fs.createReadStream(input);
fileP.on('readable', async () => {
    var chunk;
    while (previousStream && (chunk = fileP?.read(16 * 128))) {
        if (!previousStream) break;
        stream.push(chunk);
        await delay(125);
    }
});


    


  • FFMPeg command to combine images with audio and then add background music

    3 mars 2023, par John Smith

    So, I have a series of corresponding image and audio files "0.mp3", "0.png", "1.mp3", "1.png", etc...
I want to have it so the image shows for the duration of the audio file. I also want music to play in the background. The command will also eventually be generated programmatically, so it needs to be able to handle an arbitrary amount of sources.

    


    Here is first part working

    


    ffmpeg -i 0.png -i 0.mp3 -i 1.png -i 1.mp3 -i 2.png -i 2.mp3 -i 3.png -i 3.mp3 -i 4.png -i 4.mp3 -i 5.png -i 5.mp3 -i 6.png -i 6.mp3 -i m.mp3 -filter_complex "[0][1][2][3][4][5]concat=n=7:v=1:a=1[vv][a];[vv]format=yuv420p[vout]" -map [vout] -map [a] video.mp4


    


    and here is my attempt to get the music working :

    


    ffmpeg -i 0.png -i 0.mp3 -i 1.png -i 1.mp3 -i 2.png -i 2.mp3 -i 3.png -i 3.mp3 -i 4.png -i 4.mp3 -i 5.png -i 5.mp3 -i 6.png -i 6.mp3 -i m.mp3 -filter_complex "[0][1][2][3][4][5][6]concat=n=7:v=1:a=1[vv][aout];[vv]format=yuv420p[v];[7][aout]amerge[mout]" -map [v] -map "[mout]" video.mp4


    


    The first and third audio files end up getting merged and then the audio stops, but all of the images play for the expected duration.

    


  • Discord Music Bot interrupts music playback on Heroku

    29 mars 2023, par denisnumb

    I have a music discord bot written in Python. Bot plays music from YouTube using the yt-dlp library and ffmpeg.

    


    Everything worked fine, but a couple of days ago the bot began to interrupt the playback of any tracks for ~80% duration, crashing with an error :

    


    [tls @ 0x6e3b440] Error in the pull function.
[tls @ 0x6e3b440] IO error: Connection reset by peer
[https @ 0x6e37900] Will reconnect at 720896 in 0 second(s), error=Connection reset by peer.


    


    I have the latest version of py-cord=2.4.1 and yt-dlp==2023.3.4 installed. When the bot is launched on my computer, the bot plays all the tracks to the end, so the problem is clearly not in the code and not in the libraries.

    


    I suspect something is wrong with ffmpeg, so I tried installing different buildpacks, but that didn't solve the problem.

    


    At the moment I have the following installed :

    


    https://github.com/xrisk/heroku-opus.git
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git


    


    What could be the problem and how to solve it ? Why did this problem appear only on hosting ? Why didn't this happen before ?