Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (86)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (10452)

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

  • How to use ffmpeg in uwp ?

    22 avril 2022, par MrL

    I developed a software with electron. It needs ffmpeg, but when I package it into appx, I won't be able to use ffmpeg.

    


    let FFmpegPath = path.resolve(AppPath, "FFmpeg");
let FFMPEGPATH = path.resolve(FFmpegPath, "ffmpeg");
let FFPROBEPATH = path.resolve(FFmpegPath, "ffprobe");
let FFoption_V = '"'+FFPROBEPATH+'"' + " -i " +'"'+ path.normalize(PATH)+'"' + " -show_streams -select_streams v -of json";
EXEC_V = C_PRO.execSync(FFoption_V);


    


    This is the information I found, but it doesn't seem to work for electron :https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-extensions

    


    <package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">&#xA;  ...&#xA;  <capabilities>&#xA;      &#xA;  </capabilities>&#xA;  <applications>&#xA;    <application>&#xA;      <extensions>&#xA;          &#xA;              &#xA;                  &#xA;                  &#xA;              &#xA;           &#xA;      </extensions>&#xA;    </application>&#xA;  </applications>&#xA;</package>&#xA;

    &#xA;