
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (9616)
-
avformat/asfcrypt : Fix wrong array length in function declaration
10 juillet 2022, par Andreas Rheinhardtavformat/asfcrypt : Fix wrong array length in function declaration
multiswap_step() and multiswap_inv_step() both only require
six keys ; in all current callers, these keys are part of
an array of twelve keys, yet in some of these callers the keys
given to these functions point to the second half of these
twelve keys, so that only six keys are available to these functions.
This led to -Wstringop-overread warnings when compiling with GCC 12.1.
Fix these by adapting the declaration of these functions.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
ffmpeg player in discord.py (python) automatically leave
25 octobre 2018, par RastasplifI have created a discord bot that on certain messages either sends back a message or plays a sound (like a soundboard)
The crucial line of code is :
soundboard_player = voice_client.create_ffmpeg_player("doh.mp3")
soundboard_player.start()
await client.send_message(message.channel, "Playing DOH...")This works absolutely fine but i kept trying to add the line
after=voice_client.disconnect()
I put this inside the("doh.mp3", * I PUT IT HERE *)
brackets.
I wanted the bot to leave after it was done.When I run the code with the ’after’ statement included, the bot joins and I get the error message :
TypeError: disconnect() takes 1 positional argument but 2 were given
I know you can use
soundboard_player.is_done()
to check the status of the bot but I couldn’t figure out a way to check the status without trapping the code in a loopBy trapping the code in the loop I cant execute a STOP command to stop it playing the song (soundbite) half way through.
Any help with the
after=voice_client.disconnect()
command for the ffmpeg player
or a creative way to periodically check the status without getting trapped in the loop ? -
Trying to stream H264 with Janus Gateway to web browser
15 mars 2021, par sibrownI have installed Janus-Gateway using the very comprehensive install instructions on an Ubuntu 18.04LTS machine.
I have configured the streaming config file (janus.plugin.streaming.jcfg) with :



gstreamer-sample: {
 type = "rtp"
 id = 1
 description = "H.264 live stream coming from gstreamer"
 audio = false
 video = true
 videoport = 5004
 videopt = 96
 videortpmap = "H264/90000"
 videofmtp = "profile-level-id=42e01f;packetization-mode=1"
}




(I didn't change the name because that required least changes to other files.)



Having then started the server, I then take a pre-encoded stream and send that to the server with ffmpeg :



ffmpeg -i udp://127.0.0.1:9034 -c:v copy -an -f rtp rtp://127.0.0.1:5004?pkt_size=1300




Opening up the demo webpage the server comes with, I go to streaming demos, and choose the "gstreamer" demo and click start. The right hand half of the screen produces a spinning circle, but tells me that it is receiving data at the appropriate rate for the stream I'm sending. So if it's receiving the stream, why isn't it playing it ?



Cheers,
Simon