Recherche avancée

Médias (91)

Autres articles (108)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (9341)

  • Combine two videos in python and get frame-precision duration of the end of the first clip within the new combined clip

    30 mai 2023, par johnklawlor

    I am trying to combine two videos (mov files) in Python and get the frame-precision duration of the end of the first clip within the new, combined clip so that I can skip to the end of the first clip/start of the second clip within the newly combined clip.

    


    Here is how I combine the two videos.

    


    def concatenate_videos(video1_path, video2_path, output_path):
    input1 = ffmpeg.input(video1_path)
    input2 = ffmpeg.input(video2_path)

    vid = '/Users/johnlawlor/projects/yesand/backend/media/videos/vid.mp4'
    aud = '/Users/johnlawlor/projects/yesand/backend/media/videos/aud.mp3'
    ffmpeg.concat(input1, input2, n=2, v=1, a=0).output(vid).run()
    ffmpeg.concat(input1, input2, n=2, v=0, a=1).output(aud).run()

    input1 = ffmpeg.input(vid)
    input2 = ffmpeg.input(aud)
    ffmpeg.concat(input1, input2, n=2, v=1, a=1).output(output_path).run()


    


    Then I get the duration of the first clip.

    


    def _get_duration(local_file_path):
    new_addition_metadata = ffmpeg.probe(local_file_path)
    duration = float(new_addition_metadata['streams'][0]['duration'])
    return duration


    


    However, when I skip to the time that is returned by this logic, it skips to a few frames before the actual start of the second clip, so I get a jerky effect that seems like a bug.

    


    I am currently using ffmpeg-python. I am open to any other Python libraries.

    


    Any ideas ?

    


    Thanks !

    


  • riscv : set fast half-precision conversion

    16 novembre 2023, par Rémi Denis-Courmont
    riscv : set fast half-precision conversion
    

    This is only supported at compilation time. If Zfhmin is supported, then
    conversions are fast, which is what the flag is used for. At this time,
    run-tiem detection is not possible, as in not supported by Linux. But even
    if it were, the current FFmpeg approach seems unable to deal with it (same
    problem as on x86, really).

    • [DH] configure
  • avcodec/jpeg2000htdec : check if block decoding will exceed internal precision

    12 août 2023, par Pierre-Anthony Lemieux
    avcodec/jpeg2000htdec : check if block decoding will exceed internal precision
    

    Intended to replace https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230802000135.26482-3-michael@niedermayer.cc/
    with a more accurate block decoding magnitude bound.

    Fixes : 62433/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5828618092937216
    Fixes : 58299/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5828618092937216
    Previous-version-reviewed-by : Tomas Härdin <git@haerdin.se>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/jpeg2000htdec.c