Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (109)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (14972)

  • How to set individual image display durations with ffmpeg-python

    20 septembre 2022, par tompi

    I am using ffmpeg-python 0.2.0 with Python 3.10.0. Displaying videos in VLC 3.0.17.4.

    


    I am making an animation from a set of images. Each image is displayed for different amount of time.

    


    I have the basics in place with inputting images and concatenating streams, but I can't figure out how to correctly set frame duration.

    


    Consider the following example :

    


    stream1 = ffmpeg.input(image1_file)
stream2 = ffmpeg.input(image2_file)
combined_streams = ffmpeg.concat(stream1, stream2)
output_stream = ffmpeg.output(combined_streams, output_file)
ffmpeg.run(output_stream)


    


    With this I get a video with duration of a split second that barely shows an image before ending. Which is to be expected with two individual frames.

    


    For this example, my goal is to have a video of 5 seconds total duration, showing the image in stream1 for 2 seconds and the image in stream2 for 3 seconds.

    


    Attempt 1 : Setting t for inputs

    


    stream1 = ffmpeg.input(image1_file, t=2)
stream2 = ffmpeg.input(image2_file, t=3)
combined_streams = ffmpeg.concat(stream1, stream2)
output_stream = ffmpeg.output(combined_streams, output_file)
ffmpeg.run(output_stream)


    


    With this, I get a video with the duration of a split second and no image displayed.

    


    Attempt 2 : Setting frames for inputs

    


    stream1 = ffmpeg.input(image1_file, frames=48)
stream2 = ffmpeg.input(image2_file, frames=72)
combined_streams = ffmpeg.concat(stream1, stream2)
output_stream = ffmpeg.output(combined_streams, output_file, r=24)
ffmpeg.run(output_stream)


    


    In this case, I get the following error from ffmpeg :

    


    Option frames (set the number of frames to output) cannot be applied to input url ########## -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.


    


    I can't tell if this is a bug in ffmpeg-python or if I did it wrong.

    


    Attempt 3 : Setting framerate for inputs

    


    stream1 = ffmpeg.input(image1_file, framerate=1/2)
stream2 = ffmpeg.input(image2_file, framerate=1/3)
combined_streams = ffmpeg.concat(stream1, stream2)
output_stream = ffmpeg.output(combined_streams, output_file)
ffmpeg.run(output_stream)


    


    With this, I get a video with the duration of a split second and no image displayed. However, when I set both framerate values to 1/2, I get an animation of 4 seconds duration that displays the first image for two seconds and the second image for two seconds. This is the closest I got to a functional solution, but it is not quite there.

    


    I am aware that multiple images can be globbed by input, but that would apply the same duration setting to all images, and my images each have different durations, so I am looking for a different solution.

    


    Any ideas for how to get ffmpeg-python to do the thing is much appreciated.

    


  • ffmpeg : Deprecate display rotation override with a metadata key

    19 octobre 2022, par Jan Ekström
    ffmpeg : Deprecate display rotation override with a metadata key
    

    Now that we have proper options for defining display matrix
    overrides, this should no longer be required.

    fftools does not have its own versioning, so for now the define is
    just set to 1 and disables the functionality if set to zero.

    • [DH] fftools/ffmpeg.c
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_mux_init.c
  • Q : ffmpeg drawtext "localtime" video filter - display in custom format

    3 janvier 2023, par Kārlis K.

    I'm having issues escaping ' :' symbol and displaying localtime in a hms(HH:MM:SS) format for overlay over a Live input(MPEG-TS) which is then pushed out as Live output - I've fumbled my way to displaying 'localtime' in a format which achieves about half of what I'm trying to get to, the code sample of that is :

    



    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H %M %S}'" -f LIVE_OUTPUT


    



    What it achieves is that it displays local time in a "HH MM SS" format instead of "HH:MM:SS"...

    




    



    I did try escaping ' :' by writing it like this :

    



    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H\\:%M\\:%S}'" -f LIVE_OUTPUT


    



    and this :

    



    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H\:%M\:%S}'" -f LIVE_OUTPUT


    



    as well as like this :

    



    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H \: %M \: %S}'" -f LIVE_OUTPUT


    



    But none of the above helped as it returns different errors because ffmpeg tries to either parse '%H' '%M' and '%S' as multiple, separate arguments for localtime (localtime then complains that it can only accept x1 argument at most), or ffmpeg complains that there are loose '%' characters near "H" ... clearly I'm not escaping it correctly or my argument order is incorrect...