Recherche avancée

Médias (91)

Autres articles (67)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (6259)

  • Can I detect duplicated videos using ffmpeg ?

    28 décembre 2020, par Tobias

    Is it possible to detect duplicate videos (.mp4 files) using ffmpeg (or similar tools) ?

    


    There are around 3000 videos in my file system, some of them twice (since these are automatically downloaded by a bot from various sources). So it can happen that these differ a little from the video / audio quality.

    


    My first idea now would be to render the videos to a quality that is consistent and store the MD5 hash of the file in the database. There I would check for duplicate hashes.

    


    Is this the right approach or does anyone have an idea how I could best implement this ?

    


  • What is the most efficient way of stacking two videos using ffmpeg ?

    4 octobre 2024, par technical_difficulty

    I want to stack two videos of a talk together vertically using ffmpeg. One shows the presentation (slides) and one shows the speaker. Since I want to do this for several talks, I'd like to do this in a more general way and as efficiently as possible. Most of the time the videos have different resolutions and aspect ratios.

    


    My current workflow is :

    


      

    1. Scale the video with the lower resolution up to match the resolution of the other video :
ffmpeg -i video1.mp4 -s 1920x1080 -c:a copy video1_upscaled.mp4

      


    2. 


    3. Stack the two videos :
ffmpeg -i video1_scaled.mp4 -i video2.mp4 -filter_complex vstack=inputs=2 combined.mp4

      


    4. 


    


    The videos are between one and two hours long and the commands do take a while to complete. Is there any way of saving some time ?

    


    Would it be faster to put black bars/borders around the smaller video instead of scaling it to the size of the other one ? Can the stacking be done in a more efficient way ? Would it help a lot if those two steps were combined into one ?

    


    Some information that might be relevant :

    


      

    • it's always exactly two videos to stack vertically, one above the other
    • 


    • the quality of the video is not incredibly important, both having the resolution of the video with the lower resolution would be perfectly fine
    • 


    • disk space is not an issue
    • 


    • the resolution and aspect ratio of the videos are known (use any for your example)
    • 


    • both videos have the same audio
    • 


    • both videos have the exact same length
    • 


    


  • GPU produces laggy videos with ffmpeg [closed]

    10 août 2023, par Salah M. Wahsh

    I wrote a Powershell script to batch edited many videos. but the gpu renders the videos very laggy.

    


    so I'm trying to batch trim and downsize multiple videos using ffmpeg, it works perfectly when it utilizes the CPU. The problem is the CPU is slow when rendering the videos. So, after I utilized the GPU, the rendering time went down significantly which is great, but all the videos are very laggy for some reason. Anyone faced this issue before ?
My GPU is GTX 1050 3gb, I know it's considered a lower end GPU, but it's weird that it renders all the videos very fast so I recon the GPU don't struggle that much.

    


    this is the powershell script I'm using

    


    `New-Item -Path 'EDITED' -ItemType Directory

foreach ($file in Get-ChildItem -Filter *.mp4) {
    ffmpeg -hwaccel cuvid -c:v h264_cuvid -ss 00:00:00 -i $file.FullName -t 00:00:11 -c:v h264_nvenc -c:a copy -vcodec h264_nvenc -qp 23 ("EDITED/" + $file.Name)
}`