Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (92)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9057)

  • FFMPEG Determine average color of an area of a video

    12 novembre 2019, par Naved Khan

    I have a use case where I’d want to insert one of two watermarks - one designed for a dark-ish background, the other for a light background into a video. Let’s say that I’d want to do this on the top right corner of the video.

    How do I determine the average color of the top right section of the video ? Post this, how do I determine which watermark to use by looking at the average color ?

    I have a solution right now where I am taking equally spaced screenshots and then measuring the average color, but it’s excruciatingly slow, especially for longer videos.

    # Calculate average color
       black_distances = []
       white_distances = []

       movie = FFMPEG::Movie.new(video_file)
       (0..movie.duration / 10).each do |second|

         # extract a frame
         filename = "tmp/watermark/#{SecureRandom.uuid}.jpg"
         movie.screenshot filename.to_s, seek_time: second

         # analyse frame for color distance
         frame = MiniMagick::Image.open(filename)
         frame.crop('20%x20%+80%+0')
         frame.resize('1x1')
         pixel = frame.get_pixels.flatten

         distance_from_black = Math.sqrt(((black[0] - pixel[0])**2 + (black[1] - pixel[1])**2 + (black[2] - pixel[2])**2))
         distance_from_white = Math.sqrt(((white[0] - pixel[0])**2 + (white[1] - pixel[1])**2 + (white[2] - pixel[2])**2))

         black_distances.push distance_from_black
         white_distances.push distance_from_white

         File.delete(filename) if File.exist?(filename)
       end

       average_black_distance = black_distances.reduce(:+).to_f / black_distances.size
       average_white_distance = white_distances.reduce(:+).to_f / white_distances.size

    I am also confused about how to use the resulting average_black_distance and average_white_distance to determine which watermark to use.

  • Quires about a GUI application Video editor in Python

    23 décembre 2020, par Education 4Fun

    I'm new to GUI in python I wanna build a small video editor with few extra functionalities than normal video editors like bulk editing is the most imp functionality which I did work on it and made possible using FFMPEG(few modules) Now I wanna add GUI like a normal software (VSDC, filmora) and the timeline for the video to drop them like the whole GUI is what I need work on
So I need some references to GUIS and which to use so I can make my application professional or if u have any idea abt any open-source video editor please share references That help a lot
    
Please suggest me libraries too.
    
Thank you
    
A small reference of VSDC editor
    
enter image description here

    


  • Build android native application for many types of CPU

    30 novembre 2012, par tunght_53

    I want to use ffmpeg library in my application so I wrote an Android.mk file as follow :

    LOCAL_PATH := $(call my-dir)
    TOP_LOCAL_PATH := $(LOCAL_PATH)

    include $(CLEAR_VARS)
    LOCAL_C_INCLUDES += $(LOCAL_PATH)/android-8/armv5te/include/

    LOCAL_CPP_EXTENSION := .cpp
    LOCAL_C_EXTENSION := .c

    LOCAL_CFLAGS := -O3
    LOCAL_MODULE    := FilterEngine
    LOCAL_SRC_FILES := \
       decoding_encoding.c \

    LOCAL_LDLIBS    := -lm -llog -ljnigraphics -L$(LOCAL_PATH)/android-8/armv5te/lib/ -lavcodec -lavfilter -lavutil -lm -lz
    LOCAL_STATIC_LIBRARIES := avcodec avfilter avutil

    include $(BUILD_SHARED_LIBRARY)

    This make file only builds the library for ARM v5 CPU, to create an ARM v7 build of the library I have to modify the Android.mk file (change from armv5te to armv7a). How can I specify 2 types of CPU in the make file so I can build the library for both CPUs at one.
    Thanks in advance.