Recherche avancée

Médias (91)

Autres articles (46)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (3828)

  • avformat/asfcrypt : Fix wrong array length in function declaration

    10 juillet 2022, par Andreas Rheinhardt
    avformat/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>

    • [DH] libavformat/asfcrypt.c
  • ffmpeg player in discord.py (python) automatically leave

    25 octobre 2018, par Rastasplif

    I 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 loop

    By 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 sibrown

    I have installed Janus-Gateway using the very comprehensive install instructions on an Ubuntu 18.04LTS machine.&#xA;I have configured the streaming config file (janus.plugin.streaming.jcfg) with :

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

    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 ?

    &#xA;&#xA;

    Cheers,&#xA;Simon

    &#xA;