Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (60)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

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

Sur d’autres sites (6740)

  • FFMPEG filter instances names don't work with "sendcmd" ?

    13 septembre 2023, par VladStepu2001

    I have two drawbox filter instances that I need to animate separately.
    
I've used sendcmd for the one instance already, and it worked fine.

    


    But when I've added the second one, I gave a name to both of them like this :

    


    drawbox@one=0:0:iw:ih:red:fill,drawbox@two=0:0:iw:ih:black:fill


    


    Then, I've tried to use sendcmd like this :

    


    drawbox@one=0:0:iw:ih:red:fill,drawbox@two=0:0:iw:ih:black:fill,
sendcmd=c='0.0-5.0 [expr] drawbox@one w W*(T/5)
           0.0-5.0 [expr] drawbox@two h H*(T/5)'


    


    But that didn't work, the rectangles stayed still.

    


    What I am doing wrong ?

    


  • How to extract transparent images in video with FFMPEG

    17 avril 2021, par El Šidëyøusš

    I have an Mp4 video with a black background, I managed to extract the images from the video with Ffmpeg but these images have a black background I would like to know how to make these images transparent, if it is possible with FFmpeg, thanks for your help

    


  • How to enlarge a video without changing the resolution in python ? [closed]

    18 janvier 2024, par Killian Rakotonanahary

    I'm trying to convert a youtube video into a 9 : 16 video. So I'm scaling the video to 1080x1920, and it's returns me a minimized video with two black borders at the bottom and at the top.

    


    I would like to zoom into the video, so the video will be able to fill all the format, with ffmpeg, or opencv or moviepy.

    


    I tryied to crop the video with ffmpeg but the video is cropped without the black borders, like if the black borders wasnt a part of the file,
I tryed to zoom with ffmpeg but the zoompan continuously zoom during all the video, and the black borders are not affected by the zoom,
I tryed to remove the edges where the pixel value is less than or equal to a given threshold, but the ratio is not kept, and its result to a strechted video.
I would like to do something like https://new.express.adobe.com/tools/resize-video

    


    Enlarge the video without affecting the resolution, so it's just result to a zoom effect.

    


    The actual code is resizing the video to 9 : 16 with two black border at the bottom and on the top.

    


    def divideWithCheckPoints(checkpointRanges):
    videoPath = 'assets/video.mp4'
    output_folder = 'assets/'

    video_clip = VideoFileClip(videoPath)
    
    for i, (start_time, end_time) in enumerate(checkpointRanges):
        output_file = f'{output_folder}video_part_{i+1}.mp4'
        command = [
            'ffmpeg',
            '-i', videoPath,
            '-ss', str(start_time),
            '-to', str(end_time),
            '-vf', "scale=1080:1920",  # resize video
            '-c:a', 'aac',
            '-b:v', '1M',  
            output_file
        ]
        subprocess.run(command, check=True)
        
    last_start_time = checkpointRanges[-1][1]
    last_end_time = video_clip.duration  
    last_output_file = f'{output_folder}video_part_{len(checkpointRanges)+1}.mp4'
    command = [
        'ffmpeg',
        '-i', videoPath,
        '-ss', str(last_start_time),
        '-to', str(last_end_time),
        '-vf', "scale=1080:1920",  # resize video
        '-c:a', 'aac', 
        last_output_file
    ]
    subprocess.run(command)


    


    Output :

    


    enter image description here

    


    Expected :

    


    enter image description here