Recherche avancée

Médias (91)

Autres articles (75)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9148)

  • flvdec : Honor the "flv_metadata" option for the "datastream" metadata field

    9 février 2024, par Martin Storsjö
    flvdec : Honor the "flv_metadata" option for the "datastream" metadata field
    

    By default the option "flv_metadata" (internally using the field
    name "trust_metadata") is set to 0, meaning that we don't allocate
    streams based on information in the metadata, only based on
    actual streams we encounter. However the "datastream" metadata field
    still would allocate a subtitle stream.

    When muxing, the "datastream" field is added if either a data stream
    or subtitle stream is present - but the same metadata field is used
    to preemtively create a subtitle stream only. Thus, if the field
    was added due to a data stream, not a subtitle stream, the demuxer
    would create a stream which won't get any actual packets.

    If there was such an extra, empty subtitle stream, running
    avformat_find_stream_info still used to terminate within reasonable
    time before 3749eede66c3774799766b1f246afae8a6ffc9bb. After that
    commit, it no longer would terminate until it reaches the max
    analyze duration, which is 90 seconds for flv streams (see
    e6a084641aada7a2e4672172f2ee26642800a361,
    24fdf7334d2bb9aab0abdbc878b8ae51eb57c86b and
    f58e011a1f30332ba824c155078ca701e29aef63).

    Before that commit (which removed the deprecated AVStream.codec), the
    "st->codecpar->codec_id = AV_CODEC_ID_TEXT", set within the demuxer,
    would get propagated into st->codec->codec_id by numerous
    avcodec_parameters_to_context(st->codec, st->codecpar), then further
    into st->internal->avctx->codec_id by update_stream_avctx within
    read_frame_internal in libavformat/utils.c (demux.c these days).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/flvdec.c
  • How Can I Configure Storybook to Use React-App-Rewired ?

    8 août 2022, par joseph

    I'm working on a project that implements react-app-rewired to send headers to the server in order to bypass ReferenceError: SharedArrayBuffer is not defined (I'm getting this error from using the @ffmpeg/ffmpeg library).

    &#xA;

    // config-overrides.js&#xA;const {&#xA;  override,&#xA;  // disableEsLint,&#xA;  // addBabelPlugins,&#xA;  // overrideDevServer&#xA;} = require(&#x27;customize-cra&#x27;)&#xA;&#xA;module.exports = {&#xA;  devServer(configFunction) {&#xA;    // eslint-disable-next-line func-names&#xA;    return function (proxy, allowedHost) {&#xA;      const config = configFunction(proxy, allowedHost)&#xA;&#xA;      // Set loose allow origin header to prevent CORS issues&#xA;      config.headers = {&#xA;        &#x27;Access-Control-Allow-Origin&#x27;: &#x27;*&#x27;,&#xA;        &#x27;Cross-Origin-Opener-Policy&#x27;: &#x27;same-origin&#x27;,&#xA;        &#x27;Cross-Origin-Embedder-Policy&#x27;: &#x27;require-corp&#x27;,&#xA;        &#x27;Cross-Origin-Resource-Policy&#x27;: &#x27;cross-origin&#x27;&#xA;      }&#xA;&#xA;      return config&#xA;    }&#xA;  }&#xA;}&#xA;

    &#xA;

    // package.json&#xA;"scripts": {&#xA;  "start": "react-app-rewired start",&#xA;  "build": "react-app-rewired build",&#xA;  "test": "react-app-rewired test  --transformIgnorePatterns \"node_modules/(?!siriwave)/\"",&#xA;  "eject": "react-scripts eject",&#xA;  "storybook": "start-storybook -p 6006 -s public",&#xA;  "build-storybook": "build-storybook -s public"&#xA;}&#xA;

    &#xA;

    Though this works when I run npm start, meaning the headers get sent to the server, it doesn't work when I run npm run storybook, and I still get the SharedArrayBuffer is not defined error. I'm assuming it's because npm run storybook still uses react-scripts as opposed to react-app-rewired under the hood, but I'm not sure where I can change the configurations for this. Any ideas ?

    &#xA;

  • Discord.js voice stop playing audio after 10 consecutive files

    29 avril 2021, par Spiralio

    I am trying to do the simple task of playing a single MP3 file when a command is run. The file is stored locally, and I have FFmpeg installed on my computer. The code below is part of my command's file :

    &#xA;

    const Discord = require("discord.js");&#xA;const fs = require(&#x27;fs&#x27;);&#xA;const { Client, RichEmbed } = require(&#x27;discord.js&#x27;);&#xA;const config = require("../config.json");&#xA;&#xA;let playing = undefined;&#xA;let connection = undefined;&#xA;&#xA;module.exports.run = async (client, message, args, config) => {&#xA;&#xA;&#xA;  if (playing) playing.end()&#xA;  if (connection == undefined) await message.member.voice.channel.join().then((c) => {&#xA;    connection = c;&#xA;  })&#xA;  playing = connection.play(&#x27;./sounds/sound.mp3&#x27;)&#xA;&#xA;}&#xA;

    &#xA;

    (note that this code is heavily narrowed down to single out the issue)

    &#xA;

    When I run the command the first 9 times, it works perfectly - the file is played, and cuts off if it is already playing. I also want to note that the file is 2 minutes long. However, once I play the file for exactly the 10th time, the bot stops playing audio entirely - as long as all 10 times are overlapping (meaning I don't let the audio finish).

    &#xA;

    What's more confusing is that if an error is passed after the bot stops playing audio, it appears in an entirely different format than the standard Discord.js errors. For example, this code does not test to see if the user is in a voice channel, so if I purposefully crash the bot by initiating the command without being in a voice channel (after running the command 10 times), the error looks like this :

    &#xA;

    abort(RangeError: offset is out of bounds). Build with -s ASSERTIONS=1 for more info.&#xA;(Use `electron --trace-uncaught ...` to show where the exception was thrown)&#xA;

    &#xA;

    (Preceded by a bunch of unformatted code) This however, is not consistent. It seems to only appear after letting the files run entirely.

    &#xA;

    The issue only fixes itself when the entire bot restarts. Any help would be appreciated.

    &#xA;