Recherche avancée

Médias (0)

Mot : - Tags -/gis

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (9333)

  • ffmpeg-python trim and concat video

    29 août 2021, par Asis

    I'm trying to split an input video into 3 parts from different points in the video and then concat the parts back into 1 video.

    


    I have the following code using subprocess that works fine.

    


    import subprocess


def process_preview(file_in, destination_file):
    cmd = "ffmpeg -i " + file_in + " -filter_complex \"[0:v]split=3[copy1][copy2][copy3]," \
           "[copy1]trim=0:03,setpts=PTS-STARTPTS[p1]," \
           "[copy2]trim=30:33,setpts=PTS-STARTPTS[p2]," \
           "[copy3]trim=50:53,setpts=PTS-STARTPTS[p3],[p1][p2][p3]concat=n=3[out]\" -map [out] " + destination_file
    
    subprocess.call(cmd, shell=True)


    


    This code works fine and does what I expect it too. However I want to use the ffmpeg-python library to achive the same result. This is the code I've come up with for that, but its doesn't work as I expect.

    


    import ffmpeg


def process_preview(file_in, destination_file):
    original_video = ffmpeg.input(file_in)

    part_1 = original_video.video.trim(start=0, end=3).setpts('PTS-STARTPTS')
    part_2 = original_video.video.trim(start=30, end=33).setpts('PTS-STARTPTS')
    part_3 = original_video.video.trim(start=50, end=53).setpts('PTS-STARTPTS')

    joined = ffmpeg.concat(part_1, part_2, part_3, v=3).node
    output = ffmpeg.output(joined[0], joined[1], joined[2], destination_file).overwrite_output()
    output.run()


    


    I'd like to know what I'm doing wrong and how to fix it. Thanks.

    


  • How to make multiple edits to a single video file, and then encode once in ffmpeg ?

    4 juin 2022, par Edesem

    I simply want to be able to do actions such as trimming videos and concatenate videos possibly mulitples times for one video file without encoding each time, and then finally at the end encode once. This would be similar to how normal video editors work where you can make all the edits first and then encode at the end ?

    


    Is this possible ? Alternatives ? Currently it is very inefficient and bad for quality that if I want to cut out some parts of a video I have to wait for it to reencode and then do the next edit one after the other.

    


    Thank you.

    


  • how to cut 2 seconds of video after each 10 seconds with ffmpeg ?

    19 septembre 2020, par ben_copper

    i have a long video which require to cut 2 seconds of video after each 10 seconds , how can i do that with FFMPEG ? I have tried video filter trim but it didn't cut video automatically after 10 seconds. Using -ss and -to option will require to create video parts and then concat them and it will take lot of time. Is there any Method in FFMPEG to do that. Thanks