Recherche avancée

Médias (91)

Autres articles (27)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (5924)

  • how to stop discord bot spam for Voice Channel ?

    6 décembre 2020, par elmehdi haytom

    how can i make my discord bot doesn't work for a voice channel after he did 1 time i write this code but he append the same id and it doesn t stop

    


                spam = 0
            with open("servers/"+str(ctx.message.guild.name)+"/spam.txt","r") as f :
                for line in f.readlines():
                    if line == str(ctx.author.voice.channel.id):
                        spam=1
                    else:pass
                f.close
                if spam == 1:
                    await ctx.send("{} you can t use tho bot right now wait a moment")
                    return
                elif spam == 0:
                    ####some code here 
                    with open("servers/"+str(ctx.message.guild.name)+"/spam.txt","a") as f :
                        f.write(str(ctx.author.voice.channel.id)+"\n")


    


  • stop ffmpeg gently (to allow it to finish writing mp4 file) when streaming from udp

    19 septembre 2023, par ierdna

    i'm trying to receive a udp stream on a server and write it to an mp4 file. this works fine :

    



      ffmpeg -i udp://127.0.0.1:12345 -codec copy out.mp4


    



    if i press CTRL+C (or send SIGINT to the process) the ffmpeg quits and i have a working mp4 file.

    



    however, if the data stops coming in on the udp port (e.g. after 10 minutes of streaming) and i try to stop ffmpeg it requires 2 interrupt signals at which point ffmpeg exits abruptly and results in an unplayable mp4 file.

    



    does anyone know how to prevent ffmpeg from hanging when there's no input data or to force it to write out the mp4 header ?

    



    i know i can specify a url option

    



     udp://127.0.0.1:12345?timeout=<microseconds>&#xA;</microseconds>

    &#xA;&#xA;

    however, i need to be able to ignore occasional (5-10 minute long) pauses during the process of recording and only quit at the end. &#xA;so even if i set timeout=60000000 it will cause my app to wait for 10 minutes when i want to stop the stream (e.g. if there's no data) and i need it to quit immediately when i send a SIGINT to it

    &#xA;

  • ffmpeg how to mix 2 RTP streams that individually start and stop randomly ?

    13 novembre 2020, par JMain

    I want to do this :

    &#xA;

    ffmpeg listens to 2 incoming rtp streams, and continuously send those mixed together to a single outgoing rtp stream

    &#xA;

    However, the 2 incoming streams are going to be starting and stopping randomly and independently of each other, as they have audio. They don't send audio silence, they stop sending when there is silence and then they start sending again when there is audio. ffmpeg seems to error on this situation.

    &#xA;

    I have this :&#xA;ffmpeg -i rtp ://0.0.0.0:11000 -i rtp ://0.0.0.0:12000 -filter_complex amix -f rtp rtp ://10.10.10.10:13000

    &#xA;

    This is what happens with ffmpeg :&#xA;It wait for the audio to start, and then it sends to the output. But, when the input stop sending, I get this error :&#xA;rtp ://0.0.0.0:11000 Unknown error&#xA;rtp ://0.0.0.0:12000 Unknown error

    &#xA;

    and it crashes.

    &#xA;

    How can I keep it active even when one or the other input isn't sending, and how can I prevent it from crashing ?

    &#xA;

    If ffmpeg outputs silence all the time when it doesn't receive anything, that would be acceptable too.

    &#xA;