Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (33)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (3426)

  • 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")


    


  • Ffmpeg stop recording nodejs

    15 décembre 2020, par Caren

    I am trying to stop an ffmpeg running process from a different function than the one I started the process. When ending the recording I only have references for the process id.

    


    I am starting the recording using the following code :

    


    const command : string = "ffmpeg -i " + streamToRecord + " -c copy -bsf:a aac_adtstoasc " + recordingOutputPath;

// Run the ffmpeg process with the arguments
const child: ChildProcess = exec(command);


    


    In a different function I am trying to stop this recording by killing the process using the process id (pid) as follows :
kill(recording.pid);

    


    This successfully kills the process but it doesn't stop the recording. Is there a way to stop recording by only passing the pid ?

    


  • Correctly stop FFMPeg from contiuous operation

    17 décembre 2020, par Ole Albers

    I want to use FFMPeg / alsa to record audio from a microphone. I use this call :

    


    ffmpeg -f alsa -i default:CARD=U0x46d0x809 out.wav


    


    I call this as an external process from my program. When the user presses a key I want to stop the recording. This is the way it is implemented :

    


    string ffmpegParams=$"-f alsa -i default:{carname} {outputfilename";
Process ffmpeg = new Process();
ffmpeg.StartInfo.FileName   = "ffmpeg";
ffmpeg.StartInfo.Arguments =ffmpegParams;
ffmpeg.Start();
// do stuff until keypressed
ffmpeg.Kill();


    


    Now I wonder if it is a "good" way to simply kill the process to stop FFMpeg. It feels like the outcome could be unpredictable.

    


    Is there a better way or is this just fine ?