Recherche avancée

Médias (91)

Autres articles (112)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

Sur d’autres sites (13150)

  • Load processed video instead of original video - Rails, Dragonfly

    1er février 2016, par Michael B

    In my Rails 4-Project, I am using Dragonfly to upload images and videos.
    For image-processing I use imagemagick, for videoprocessing I use ffmpeg.

    Videos are uploaded and stored in the folder uploads/videos. After processing, they are stored in public/ffmpeg_videos/

    My question is : How can I use the processed-video instead of the uploaded video ?

    e.g. I use this code in the view, to display a video :

    <video src="&lt;%=@video.video.url%>"></video>

    This successfully loads the original video from the upload-path. But what do I have to change, to load the video from the ffmpeg-path ?

    initializers/dragonfly.rb

    require 'dragonfly'

    # Configure
    Dragonfly.app(:images).configure do
     plugin :imagemagick
     protect_from_dos_attacks false
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format '/media/:job/:name'

     datastore :file,
               root_path: Rails.root.join('uploads/images/'),
               server_root: Rails.root.join('uploads')
    end

    Dragonfly.app(:videos).configure do
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format "/video/:job/:name"

     datastore :file,
               root_path: Rails.root.join('uploads/videos/'),
               server_root: Rails.root.join('uploads')
    end

    # Logger
    Dragonfly.logger = Rails.logger

    # Mount as middleware
    Rails.application.middleware.use Dragonfly::Middleware, :images
    Rails.application.middleware.use Dragonfly::Middleware, :videos

    # Add model functionality
    if defined?(ActiveRecord::Base)
     ActiveRecord::Base.extend Dragonfly::Model
     ActiveRecord::Base.extend Dragonfly::Model::Validations
    end
  • avformat/mxfdec : Don't pretend array to be bigger than it is

    11 septembre 2023, par Andreas Rheinhardt
    avformat/mxfdec : Don't pretend array to be bigger than it is
    

    mxf_match_uid() accepts two const UID and a len parameter.
    UID is a typedef for an array of 16 uint8_t, so the const UID
    parameter is actually a pointer to const uint8_t.

    The point of mxf_match_uid() is to check whether the initial
    part of two UIDs match ; the length of said part is given
    by the len parameter. Once an incomplete UID has been passed
    to mxf_match_uid() (albeit with the correct len, so safe),
    which makes GCC emit -Wstringop-overread warnings.

    Fix this by using a const uint8_t[] as type ; it is more
    natural for incomplete UIDs.

    Reviewed-by : Tomas Härdin <git@haerdin.se>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/mxfdec.c
  • Merge commit ’ba13606ca6adbc74b4db4a72b0769397d6408791’

    29 mai 2013, par Michael Niedermayer
    Merge commit ’ba13606ca6adbc74b4db4a72b0769397d6408791’
    

    * commit ’ba13606ca6adbc74b4db4a72b0769397d6408791’ :
    fate : Add a —target-samples path parameter

    Conflicts :
    configure
    tests/fate/audio.mak
    tests/fate/cover-art.mak
    tests/fate/demux.mak
    tests/fate/ea.mak
    tests/fate/filter-video.mak
    tests/fate/h264.mak
    tests/fate/image.mak
    tests/fate/lossless-audio.mak
    tests/fate/lossless-video.mak
    tests/fate/microsoft.mak
    tests/fate/pcm.mak
    tests/fate/prores.mak
    tests/fate/qt.mak
    tests/fate/real.mak
    tests/fate/screen.mak
    tests/fate/video.mak
    tests/fate/voice.mak
    tests/fate/vpx.mak
    tests/fate/vqf.mak

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] configure
    • [DH] tests/fate.sh
    • [DH] tests/fate/aac.mak
    • [DH] tests/fate/ac3.mak
    • [DH] tests/fate/adpcm.mak
    • [DH] tests/fate/alac.mak
    • [DH] tests/fate/als.mak
    • [DH] tests/fate/amrnb.mak
    • [DH] tests/fate/amrwb.mak
    • [DH] tests/fate/atrac.mak
    • [DH] tests/fate/audio.mak
    • [DH] tests/fate/bmp.mak
    • [DH] tests/fate/cdxl.mak
    • [DH] tests/fate/cover-art.mak
    • [DH] tests/fate/demux.mak
    • [DH] tests/fate/dfa.mak
    • [DH] tests/fate/dpcm.mak
    • [DH] tests/fate/ea.mak
    • [DH] tests/fate/filter-audio.mak
    • [DH] tests/fate/filter-video.mak
    • [DH] tests/fate/flac.mak
    • [DH] tests/fate/gif.mak
    • [DH] tests/fate/h264.mak
    • [DH] tests/fate/image.mak
    • [DH] tests/fate/indeo.mak
    • [DH] tests/fate/lossless-audio.mak
    • [DH] tests/fate/lossless-video.mak
    • [DH] tests/fate/microsoft.mak
    • [DH] tests/fate/monkeysaudio.mak
    • [DH] tests/fate/mp3.mak
    • [DH] tests/fate/mpc.mak
    • [DH] tests/fate/pcm.mak
    • [DH] tests/fate/probe.mak
    • [DH] tests/fate/prores.mak
    • [DH] tests/fate/qt.mak
    • [DH] tests/fate/qtrle.mak
    • [DH] tests/fate/real.mak
    • [DH] tests/fate/screen.mak
    • [DH] tests/fate/subtitles.mak
    • [DH] tests/fate/utvideo.mak
    • [DH] tests/fate/video.mak
    • [DH] tests/fate/voice.mak
    • [DH] tests/fate/vorbis.mak
    • [DH] tests/fate/vpx.mak
    • [DH] tests/fate/vqf.mak
    • [DH] tests/fate/wavpack.mak
    • [DH] tests/fate/wma.mak