Recherche avancée

Médias (91)

Autres articles (59)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10366)

  • perspective correction example

    10 juillet 2022, par alessandro

    I have some videos taken of a display, with the camera not perfectly oriented, so that the result shows a strong trapezoidal effect.
I know that there is a perspective filter in ffmpeg https://ffmpeg.org/ffmpeg-filters.html#perspective, but I'm too dumb to understand how it works from the docs - and I cannot find a single example.

    



    Somebody can show me how it works ?

    


  • Speeding up videocomposing in pymovie

    10 février 2024, par rawlung

    I'm trying to resize videos similarly to what this api provides
https://creatomate.com/docs/json/quick-start/blur-video-background
I accomplished the result more or less but the problem is it takes ages to render out.
I'm a total beginner when it comes to video processing and for the life of me i can't figure out how to speed it up. When the rendering is running python only uses CPU at about 20% utilization.

    


    from moviepy.editor import VideoFileClip, concatenate_videoclips,CompositeVideoClipimport datetimefrom skimage.filters import gaussian

def _blur(image):
  return gaussian(image.astype(float), sigma=25,preserve_range=True,channel_axis=-1)

def blurVideos(filenames):
  clips = [VideoFileClip(c) for c in filenames]
  overlay_clips = [VideoFileClip((c), has_mask=True) for c in filenames]
  overlay = concatenate_videoclips(overlay_clips,"chain")
  output = concatenate_videoclips(clips, method="chain")
  print("Bluring video")
  blured_output = output.fl_image( _blur )
  print("Done")
  print("Resizing video")
  resized_output = blured_output.resize((1920,1080))
  print("Done")
  composited_output = CompositeVideoClip([resized_output.without_audio(),overlay.set_position("center","center")])
  composited_output.write_videofile(f"output/out_{datetime.datetime.today().strftime('%Y-%m-%d')}.mp4",fps=20,threads=16,codec="h264_nvenc",preset="fast")


    


    I've tried to use GPU accelerated codecs like h264_nvenc, I've tried to modify ffmpeg arguments under the hood of moviepy to use cuda also no succses
What can i do to speed this up ?

    


  • How do I extract video layers from an AVI ?

    14 janvier 2018, par Philosophistry

    I have a Fujifilm FinePix Real 3D W3, and it creates something Fujifilm calls 3D-AVI files. There are pograms to split these 3D-AVI files into separate left-and-right movies, but they involve using GUI-based software on Windows.

    I would rather use a command-line tool like ffmpeg, so that I can automate the process. Does anybody have any suggestions on how to go about doing this ?

    I’ve heard on forums that the 3D-AVI file is simply left and right AVIs on two video layers. I couldn’t see anything in the ffmpeg docs on how to extract these layers.