Recherche avancée

Médias (91)

Autres articles (105)

  • 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 (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (9503)

  • ftp: move common commands code to function

    29 mai 2013, par Lukasz Marek
    ftp: move common commands code to function
    

    Each send command routine requires the same steps.
    This commit moves repeated code into one function.

    • [DH] libavformat/ftp.c
  • avcodec/mobiclip : Rewrite code to make it clearer

    18 novembre 2021, par Andreas Rheinhardt
    avcodec/mobiclip : Rewrite code to make it clearer
    

    In order to know that the earlier code did not use uninitialized
    values one needs to know that the lowest four bits of each used
    value of pframe_block4x4_coefficients_tab do not vanish identically.
    E.g. Coverity did not get this and warned about it in ticket #1466632.
    Fix this by slightly rewriting the code.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mobiclip.c
  • How to embed additional metadata to a video file in libavcodec (FFmpeg C source code fork)

    7 mars 2023, par leavittx

    I'm extending an existing codec (Hap) inside ffmpeg library, adding some additional stuff to it (modifying FFmpeg code in my own fork of it)

    &#xA;

    One of the things I'd like to do is to store a per-file maximum encoded packet size in some global header/metadata so I can use it later while doing decoding (generally, the metadata/info to store can be arbitrary, size is just what I currently need for some specialized decoder I'm writing).

    &#xA;

    I'm modifying the ffmpeg code file&#xA;https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/hapenc.c

    &#xA;

    EDIT : What I'd like to achieve

    &#xA;

      &#xA;
    • Compute some numeric value during the encoding (namely, the maximum encoded frame size for the video - it's needed for a specialized fast decoder to not read all the frames beforehand) - that is done already
    • &#xA;

    • Store that value in the video file metadata (looks like it should be done on container level)
    • &#xA;

    &#xA;

    My initial incorrect attempt :&#xA;But I don't currently see any possibility to save any info outside of a single packet being produced by hap_encode function and written to AVPacket *pkt parameter.

    &#xA;

      &#xA;
    1. Set dict parameter on AVCodecContext *avctx's priv_data :
    2. &#xA;

    &#xA;

        av_opt_set_int(avctx->priv_data, "max_compressed_frame_size", <size>, 0);&#xA;    av_opt_set(avctx->priv_data, "max_compressed_frame_size", "", 0);&#xA;</size>

    &#xA;

    Later, while decoding av_opt_get/av_opt_get_int report non-existing key.

    &#xA;

      &#xA;
    1. Set various AVCodecContext *avctx fields :
    2. &#xA;

    &#xA;

        avctx->flags2 = <size>;&#xA;    avctx->extradata_size = <size>;&#xA;    avctx->ticks_per_frame = <size>;&#xA;    avctx->delay = <size>;&#xA;</size></size></size></size>

    &#xA;

    They all also seem to be not preserved when doing decoding later (I get just default values from decoder's AVCodecContext)

    &#xA;