Recherche avancée

Médias (91)

Autres articles (89)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

Sur d’autres sites (4283)

  • Revision cea11ebb1e : Hdr change for profiles > 1 for intra-only frames Adds bitdepth, color sampling

    7 août 2014, par Deb Mukherjee

    Changed Paths :
     Modify /vp9/common/vp9_enums.h


     Modify /vp9/decoder/vp9_decodeframe.c


     Modify /vp9/encoder/vp9_bitstream.c


     Modify /vp9/encoder/vp9_encoder.c


     Modify /vp9/encoder/vp9_tokenize.c


     Modify /vp9/vp9_dx_iface.c



    Hdr change for profiles > 1 for intra-only frames

    Adds bitdepth, color sampling ind color space information to header
    for intra only frames in profile > 0.
    Also enforces profile 1 and 3 exclusive usage for non 420 color
    sampling.

    Change-Id : I92b0630d5193fdbc6e71fa909d684521c12b5d99

  • Why is exec('which ffmpeg') returning nothing in my application ?

    28 avril 2015, par EchoLogic

    I’m trying to deal with FFMpeg for my application, but I’m encountering some difficulty in getting it set up. To instantiate or create an instance of FFMpeg, I need to call a create() method and pass through the operating locations of FFMpeg and FFProbe. To do this, I was hoping to be able to write :

           $ffmpeg = FFMpeg\FFMpeg::create([
                   'ffmpeg.binaries' => exec('which ffmpeg'),
                   'ffprobe.binaries' => exec('which ffprobe')
           ]);

    But, sadly, the command exec('which ffmpeg') returns an empty string. If I run the ’which ffmpeg’ command in Terminal, I get a response :

    /usr/local/bin/ffmpeg

    So why does it work in my terminal, but not when my PHP script tries to execute it ?

    I’ve tried a few solutions, such as appending 2>&1 to the end of the command, which did not help, running the command in shell_exec(), and placing the output in the second parameter of exec() which also did not solve my issue.

    I feel like this may be some sort of weird permissions issue...

    Addendum

    It has been brought to my attention that PHP cannot see my $PATH variable. From the console, echo $PATH produces :

    /Applications/MAMP/bin/php/php5.6.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:‌​/sbin:/opt/X11/bin:/usr/local/git/bin:/opt/ImageMagick/bin

    While calling the same from my application with exec() produces :

    /usr/bin:/bin:/usr/sbin:/sbin237.671000
  • Loop through images, detect if contains color, put in subfolder

    16 avril 2022, par Samo

    I have two kinds of images in my folder : One is all black, the other one is black with yellow (#f8fa27). I am trying to put all the images with yellow colour in a subfolder. But I don't know how this is applicable.

    


    I would like to implement this with ImageMagick or FFMPEG. If possible, shell is redundant and I would like the loop via CMD. If you happen to know of another option that also works, that's no problem either.

    


    I've read about https://imagemagick.org/script/fx.php but I don't know how to apply it with my poor skills.

    


    Edit for now I managed to fix it with python (shitty code but it works)

    


    import cv2
import os
import glob

#check if extension is png
for filename in glob.glob("*.png"):
    #return to folder where all images are saved
    os.chdir('C:/Users/.../.../images')
    #make image black and white
    image = cv2.imread(filename, 0)
    #if image is fully black
    if cv2.countNonZero(image) == 0:
        print ("Black image, skipped")
    else:
        #colored image
        print ("Colored image")
        #restore true colors (rgb in my case, check wiki)
        image = cv2.imread(filename, cv2.COLOR_BGR2RGB)
        #folder to save colored images
        os.chdir(os.getcwd()+"/yellow")
        #save image to subfolder
        cv2.imwrite(filename,image)


    


    Thank you :) !