Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (79)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6670)

  • Cut multiple parts of a video with ffmpeg

    11 juin 2020, par Mike Baum

    In what I'm trying to do, I need to remove some parts of a video file, and create a new one from that.

    



    For example, from a video file like this :

    



    ===================


    



    I make two cuts

    



    ======||=====||||==


    



    and generate a new smaller video file :

    



    =============


    



    And when I say 2, I mean an arbitrary number of separate cuts, depending on the video file.

    



    If I wanted to cut just one part I would do :

    



    ffmpeg -i video.mp4 -ss 00:00:03.500 -to 00:00:08.500 -async 1 cut.mp4 -y


    



    Which works perfectly. I could perhaps do this many times and then join all the cuts together... But this is very inefficient for larger video files.

    



    To make two cuts I was looking at filter_complex. I've been trying to get it right for hours but I can't seem to get this working :/

    



    If I do something like this I get a video with no audio :

    



    command='ffmpeg -i video.mp4
                -filter_complex "[0]trim=start_frame=10:end_frame=20[v0];
                                 [0]trim=start_frame=30:end_frame=40[v1];
                                 [v0][v1]concat=n=2[v5]"
                -map [v5] -async 1 output.mp4'


    



    If I try to do this, things get all messed up :

    



    ffmpeg -y -i video.mp4 
       -filter_complex "[0:v]trim=start_frame=10:end_frame=20[v0];
                        [0:a]atrim=start=10:end=20[a0];
                        [0:v]trim=start_frame=30:end_frame=40[v1];
                        [0:a]atrim=start=30:end=40[a1];
                        [v0][a0][v1][a1]concat=2:v=1:a=1[v5][a]" \
       -map [v5] -map [a] -async 1 output.mp4


    



    I even trying to to this in Python with ffmpeg-python https://github.com/kkroening/ffmpeg-python but I also can't get audio to work.

    



    Can anyone give me some help on this ?
Thank you very much !!

    


  • Exoplayer FFmpeg Video Decoder

    27 octobre 2016, par srujith poondla

    Does any one worked on building FFmpeg Video decoder in Exoplayer ? Right now they are supporting Audio Decoder, is there any chance of supporting video decoder also ?

  • Using Cut with Fast Seek -ss -to and HH:MM:SS:MS

    1er avril 2019, par Matt McManis

    I’m trying to cut a video using -ss and -to using HH:MM:SS:MS time.

    I’m using -to instead of -t because I want the cut to be "between" a time range and not "up to" time.
    I also have to use -to because it’s needed for another program’s time input textbox I’m using. I won’t be able to use -t for this case.

    Example :

    https://superuser.com/a/670590

    -ss 00:01:00:00 -to 00:02:00:00 cut starts at minute 1, ends at minute 2.
    -ss 00:01:00:00 -t 00:02:00:00 cut starts at minute 1, ends at minute 3.

    https://trac.ffmpeg.org/wiki/Seeking#Cuttingsmallsections


    Problem

    I’m not able to use Fast Seek, -ss before the -i, -to after.

    I’m only able to use Slow Seek, -ss and -to after the -i.


    1. Fast

    Doesn’t Work

    This cuts a minute ahead of what’s in the time.

    Cuts from 00:01:00 to 00:03:00, using the faster seek.

    ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy cut.mp4

    2. Slow

    Works

    I’m trying to do this but with fast seek.

    Cuts from 00:01:00 to 00:02:00, using the slower seek.

    ffmpeg -i video.mp4 -ss 00:01:00 -to 00:02:00 -c copy cut.mp4

    3. Fast

    Works (with problems)

    -copyts ruins video time bar in player.

    Cuts from 00:01:00 to 00:02:00, using the faster seek.

    ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy -copyts cut.mp4