Recherche avancée

Médias (91)

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 (11147)

  • sbc : do not set sample format in parser

    5 janvier 2021, par Arnaud Vrac
    sbc : do not set sample format in parser
    

    Commit bdd31feec934 changed the SBC decoder to only set the output
    sample format on init, instead of setting it explicitly on each frame,
    which is correct. But the SBC parser overrides the sample format to S16,
    which triggers a crash when combining the parser and the decoder.

    Fix the issue by not setting the sample format anymore in the parser,
    which is wrong.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/sbc_parser.c
  • avcodec/ppc/h264dsp : POWER LE support in h264_idct_dc_add_internal() fix vec_lvsl bug

    14 mai 2015, par Rong Yan
    avcodec/ppc/h264dsp : POWER LE support in h264_idct_dc_add_internal() fix vec_lvsl bug
    

    We got defective video when use GCC 4.9.2 instead of GCC 4.9.1 to compile FFMEPG. And further found
    that GCC 4.8 and 4.9 need patch to fix the lvsl/lvsr bug on POWER LE, and GCC 5.1 contains
    the correct code since its release. The message on gcc-patches requesting approval for lvsl/lvsr
    patch is at https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00228.html.

    The fixed code avoids using lvsl and will not depends on GCC version, also it uses less instructions on POWER LE.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/ppc/h264dsp.c
  • Download youtube video duration using youtube-dl PHP and ffmpeg

    21 juin 2017, par user3285828

    Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.

    I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.

    &lt;?php
    require __DIR__ . '/vendor/autoload.php';

    use YoutubeDl\YoutubeDl;

    $dl = new YoutubeDl([
       'extract-audio' => true,
       'audio-format' => 'mp3',
       'audio-quality' => 0, // best
       'output' => 'videoname.%(ext)s',
    ]);
    $dl->setDownloadPath('C:\youtubevideos');
    $video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');

    $start = 60; // Start 60 seconds in to the video
    $duration = 30; // Get 30 seconds after $start
    $fullVideo = "C:\youtubevideos\videoname.mp3";
    $shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
    exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
    exec("DEL $fullVideo");

    I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php