Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (109)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (12497)

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

    


  • 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'
})


    


  • ffmpeg convert mkv to mp4 with subtitles

    18 février 2021, par Frederik

    i try to convert a mkv file to mp4. but I having trouble getting the subtitles copied.Thats the command I used : ffmpeg -i input.mkv -c copy -c:s mov_text output.mp4. The problem is the subtitles r in two different languages. The original has just one language. After copying the subtitles look like this : engoriginal language. Does anyone know how to fix that