Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (42)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (6032)

  • how to use crop and overlay properly ?

    21 juin 2022, par yuno saga

    Is crop and overlay have bug when chain too many ? i got inconsistent function. for test, i create horizontal flip builder command. i try to flip the video. but its like something wrong with overlay filter. the filter not overlay in specific location.

    


    let me explain my understanding of crop filter first. crop take 4 parameters : width:height:xPosition:yPosition. in first crop=16:480:0:0. how about if i want to crop 2nd image. is right with this crop=16:480:16:0 ? or it should crop=16:480:17:0 always add 1 after first crop ?

    


    and overlay, the first overlay. overlay=x=0:y=0. how about the 2nd overlay and so on ? is it right overlay=x=16:y=0 or it should overlay=x=17:y=0. always add 1 after first overlay.

    


    i tested it, always theres glitch in video.

    


    const { spawn } = require('child_process');

function hflip(width) {
    let filterCommands = '';
    const length = Math.floor(width / 16);

    for (let i=0; i < length; i++) {
        filterCommands += `[0]crop=16:480:${i*16}:0[c${i}];`;
    }
    
    for (let i=0; i < length; i++) {
        if (i == 0) filterCommands += '[0]';
        if (i != 0) filterCommands += `[o${i}]`;
    
        filterCommands += `[c${i}]overlay=x=${832-(i*16)}:y=0`;
    
        if (i != (length - 1)) filterCommands += `[o${i+1}];`;
    }

    return filterCommands;
}


const crops = spawn('ffmpeg', [
    '-i',
    'C:/Software Development/project/input.mp4',
    '-filter_complex',
    hflip(854),
    '-c:a',
    'copy',
    '-c:v',
    'libx264',
    '-crf',
    '30',
    '-preset',
    'ultrafast',
    'C:/Software Development/project/output.mp4',
    '-y'
], {
    cwd: 'C:/Software Development/ffmpeg'
})


    


  • Disable default subtitle track with ffmpeg

    23 février 2023, par anonymous

    I'm creating an MKV container with 4 different files :

    


      

    • video.mp4
    • 


    • audio_en.mp4
    • 


    • audio_es.mp4
    • 


    • subtitles.ass
    • 


    


    For that I'm using the following ffmpeg script :

    


    ffmpeg -i video.mp4 -i audio_es.mp4 -i audio_en.mp4 -i subtitles.ass \
-map 0:v -map 1:a -map 2:a -map 3:s \
-metadata:s:a:0 language=spa \
-metadata:s:a:1 language=eng \
-metadata:s:s:0 language=spa -disposition:s:0 -default \
-default -c:v copy -c:a copy -c:a copy -c:s copy result.mkv


    


    The result.mkv looks awesome, everything works as expected except for one thing : subtitles are still set as the default track, so players like VLC shows them automatically. I've already tried plenty of different ways to avoid that to happen with the disposition flag but I cannot make it work.

    


    How should I modify the script so that the MKV does not have the subtitles track marked as default ?

    


    Thanks in advance !

    


  • Anomalie #4500 : L’attribut meta de paquet.xml n’est pas traité correctement

    7 juin 2020, par nicod _

    == égalité avec transtypage (plus tolérante)
    === égalité stricte (même type)

    Un test avec === évite souvent des erreurs difficiles à repérer ou à anticiper.

    https://www.php.net/manual/fr/language.operators.comparison.php