Recherche avancée

Médias (91)

Autres articles (28)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4307)

  • FFMPEG resize while encoding with hwaccel (C++)

    12 août 2020, par luc4s

    I am encoding a video that I generate from an OpenGL texture, and send it to an RTP stream (with h264_nvenc) and it works pretty well except for one thing : I would like to resize the stream without recreating the whole encoding pipeline, is that even possible ?

    


    What I tried until now is to recreate a new codec context and hwframe and use them in avcodec_send_frame and avcodec_receive_packet, but after that I get a framerate drop and encoder complains about packets timestamps.

    


    Thanks.

    


  • External Subtitle Support for FFMPEG

    16 mars 2016, par 123rgt

    Does FFMPEG support external subtitles ?

    In libvlc they have libvlc_video_set_subtitle_file. Does some thing equivalent exist in FFMPEG or can we implement the same using FFMPEG ?

    I need a solution using FFMPEG APIs, not the command line.

  • splitting mp4 files with ffmpeg

    25 février 2015, par user2410624

    I have a 2-hour long mp4 video file with no audio. I want to extract a 15-minute portion of this video. The catch is that I want to add a fade-in to the beginning and a fade-out to the end without having to re-encode the entire thing. My thought is that I could extract 3 portions as follows :

    First Portion - First second of 15-minutes :

    ffmpeg -i input.mp4 -ss 1200 -t 1 -vcodec copy out1.mp4

    Second Portion - Between the first second of video and the last second of video :

    ffmpeg -i input.mp4 -ss 1201 -t 898 -vcodec copy out2.mp4

    Third Portion - Last second of 15-minutes :

    ffmpeg -i input.mp4 -ss 2099 -t 1 -vcodec copy out3.mp4

    Then I want to use ffmpeg to add a fade in to out1.mp4 and a fade out to out3.mp4. Then finally use ffmpeg to concatenate the 3 portions together.

    So here are my questions :

    1. Just getting the first portion extracted is causing me problems. It seems to only extract one frame of black. (There are no black frames in this 1 second portion.) I was expecting to get 1 second of video exactly as it is at the 1200th second of the video file. I thought I even read that extracting at the I-frames is preferable, but even that (with the assistance of ffprobe) isn’t getting me the portion I’m expecting. This is an example of that command :

      ffmpeg -i input.mp4 -ss 1200.143678 -t 1.1101 -vcodec copy out1.mp4

    Am I misunderstanding the capability ? Am I doing the command wrong ? Are my mp4 files bad ? This file is 1080p. I tried the same thing with a 360p version of the file and for some reason it worked. Not sure why.

    1. My other question is, am I taking the best approach to achieve what I want to achieve. Which is : taking a 15-minute mp4 video out of a 2-hour mp4 video and adding a fade up and fade down in such a way that I don’t have to re-encode the entire 15 minutes. Is this doable ? Anyone have any good suggestions for the best way to do this ?

    Thanks.