Recherche avancée

Médias (91)

Autres articles (56)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6781)

  • ffmpeg : thumbnail of frame, preserve aspect ratio, apply background / padding / fill colour

    16 octobre 2014, par Pistos

    I already have found out how to scale the thumbnail to stay within specified bounding dimensions while maintaining aspect ratio. For example, to get the frame shown at 6 seconds into the input.mp4 video file, and scale it to fit into 96x60 (16:10 aspect ratio) :

    ffmpeg -y -i input.mp4 -ss 6 -vframes 1 -vf scale="'if(gt(a,16/10),96,-1)':'if(gt(a,16/10),-1,60)'" output.png

    This is fine, it works.

    Next, I would like to do the same, but if the video’s aspect ratio is not exactly 16:10, then I would like to force the output image to have an aspect ratio of 16:10 by taking the above transformation, and filling or padding the space with white. That is, I want the output to be as if I took, say, a 96x48 image, and laid it over a 96x60 white background, resulting in white bars above and below the 96x48 image.

    Ideally, I do not want to resort to using another tool or library, such as ImageMagick. It would be best if ffmpeg could do this on its own.

  • Changing the number of frame in matlab [on hold]

    18 décembre 2015, par medic911

    I use ffmpeg for the decomposition of video on frames. I use this command :

    ffmpeg -i Barrier.avi -y -r 5 obrazek%03d.tif

    I want to work with the frames in MATLAB.
    Is it the opportunity to change the number of frames per second using code ? Can I change the number of frames per second in MATLAB ?

  • ffmpeg : always use single threaded decoding for attached pictures

    6 octobre 2017, par Marton Balint
    ffmpeg : always use single threaded decoding for attached pictures
    

    Since af1761f7b5b1b72197dc40934953b775c2d951cc ffmpeg waits for a frame in each
    stream before writing the output header. If we are using threaded decoding for
    attached pictures, we have to read till EOF to be able to finally flush the
    decoder and output the decoded frame. This essentially makes ffmpeg buffer all
    non-attached picture packets, which will cause a "Too many packets buffered for
    output stream" eventually.

    By forcing single threaded decoding, we get a frame from a single packet as
    well and we can avoid the error.

    Fixes part of ticket #6375 :
    ffmpeg -i 46564100.mp3 -acodec libmp3lame -ab 128k -ac 2 out.mp3

    Reviewed-by : Hendrik Leppkes <h.leppkes@gmail.com>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] fftools/ffmpeg.c