Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (89)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11574)

  • lavc/qsvenc : enable vp9 encoder

    26 octobre 2019, par Zhong Li
    lavc/qsvenc : enable vp9 encoder
    

    1. must enable low_power mode since just VDENC can be supported by iHD
    driver right now
    2. Coding option1 and extra_data are not supported by MSDK
    3. IVF header will be inserted in MSDK by default, but it is not needed
    for FFmpeg, so disable it.

    Signed-off-by : Zhong Li <zhongli_dev@126.com>

    • [DH] Changelog
    • [DH] configure
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/allcodecs.c
    • [DH] libavcodec/qsvenc.c
    • [DH] libavcodec/qsvenc.h
  • In what way does this HEVC video not comply to Apples's requirements document ?

    16 novembre 2022, par Duke Dougal

    My goal is to work out why a given video file does not play on Macos/Safari/Quicktime.

    &#xA;

    The background to this question is that it is possible to play HEVC videos with a transparent background/alpha channel on Safari/MacOS. To be playable, a video must meet the specific requirements set out by Apple in this document :

    &#xA;

    https://developer.apple.com/av-foundation/HEVC-Video-with-Alpha-Interoperability-Profile.pdf

    &#xA;

    The video that does not play on Apple/Safari/Quicktime is an HEVC video with an alpha transparency channel. Note that VLC for MacOS DOES play this file. Here it is :

    &#xA;

    https://drive.google.com/file/d/1ZnXjcDbk-_YxTgRuH_D7RSR9SXdY_XTv/view?usp=share_link

    &#xA;

    I have two example HEVC video files with a transparent background/alpha channel, and they both play fine using either Quicktime player or Safari :

    &#xA;

    Working video #1 :

    &#xA;

    https://drive.google.com/file/d/1PJAyg_sVKVvb-Py8PAu42c1qm8l2qCbh/view?usp=share_link

    &#xA;

    Working video #2 :

    &#xA;

    https://drive.google.com/file/d/1kk8ssUyT7qAaK15afp8VPR6mIWPFX8vQ/view?usp=sharing

    &#xA;

    The first step is to work out in what way my non-working video ( https://drive.google.com/file/d/1ZnXjcDbk-_YxTgRuH_D7RSR9SXdY_XTv/view?usp=share_link ) does not comply with the specification.

    &#xA;

    Once it is clear which requirements are not met by the non-working video then I can move onto the next phase, which is to try to formulate an ffmpeg command that will output a video meeting the requirements.

    &#xA;

    I have read Apples requirements document and I am out of my depth in trying to analyse the non working video against the requirements - I don't know how to do it.

    &#xA;

    Can anyone suggest a way to identify what is wrong with the video ?

    &#xA;

    Additional context is that I am trying to find a way to create Apple/MacOS compatible alpha channel / transparent videos using ffmpeg with hevc_nvenc running on an Intel machine. I am aware that Apple hardware can create such videos, but for a wide variety of reasons it is not practical for me to use Apple hardware to do the job. I have spent many hours trying all sorts of ffmpeg and ffprobe commands to try to work out what is wrong and modify the video to fix it, but to be honest most of my attempts are guesswork.

    &#xA;

  • Anomalie #3410 (Nouveau) : Mauvaise formation de requête SQL dans fonction spip_pg_groupby

    16 mars 2015, par Jacques Deguest

    SPIP version 3.0.7

    Résumé :
    Mauvais parsing de requête SQL qui exclue l’alias de table précédent le nom de champs dans GROUP BY tel que :
    SELECT A.id_rubrique AS id_rubrique, R.lang AS lang
    FROM spip_rubriques AS A, spip_rubriques AS R
    WHERE A.id_parent = R.id_rubrique AND A.langue_choisie != ’oui’ AND R.lang<>’’ AND R.lang<>A.lang
    GROUP BY id_rubrique,lang
    ^^^^^^^^^^^^^

    Détail :
    Dans le fichier écrire/req/pg.php à la fonction spip_pg_groupby, la ligne :
    $v = preg_replace(’/^.*\sAS\s+(\w+)\s*$/i’,’\1’, $v) ;
    ne retient que la partie de droite présumant que la partie de gauche est une fonction appliquée par exemple à un champs et qui serait aliasé tel que : SELECT UNE_FONCTION(champs) AS alias_champs, mais ce parsing néglige qu’il puisse s’agir d’un simple aliasing d’un champs existant tel que SELECT A.id_rubrique AS id_rubrique, R.lang AS lang

    Solution suggérée :
    Remplacer la ligne :
    $v = preg_replace(’/^.*\sAS\s+(\w+)\s*$/i’,’\1’, $v) ;
    par :
    if( preg_match( ’/^(\w+\.\w+)\s+AS\s+/i’, $v, $matches ) )

    $v = $matches1 ;

    else

    $v = preg_replace(’/^.*\sAS\s+(\w+)\s*$/i’,’\1’, $v) ;

    Nota bene :
    Faire du parsing de requête SQL est une mavaise idée, car elles peuvent être considérablement compliquée et je ne suis pas sûr que SPIP ait vocation à devenir un parser de requête SQL.
    Le mieux serait peut-être de faire appel à des fonctions qui renverraient la requête SQL écrite de toute pièce à la main et adapté pour le driver SQL utilisé, plutôt que d’utiliser des fonctions qui génèrent du SQL dynamiquement, à moins que cela soit vraiment nécessaire. Cela aurait le mérite de mieux pouvoir optimiser les requêtes SQL par des spécialistes SQL.
    Par exemple, dans le cas ci-dessus, il serait préférable d’avoir une fonction telle que sql_rubrique_lang() et qui renverrait :
    SELECT A.id_rubrique AS id_rubrique, R.lang AS lang
    FROM spip_rubriques AS A, spip_rubriques AS R
    WHERE A.id_parent = R.id_rubrique AND A.langue_choisie != ’oui’ AND R.lang<>’’ AND R.lang<>A.lang
    GROUP BY A.id_rubrique,R.lang