Recherche avancée

Médias (91)

Autres articles (105)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (9612)

  • FFMpeg overlay and fade images and text in and out at over video background

    28 décembre 2019, par grootester

    Prior to applying the drawbox and drawtext text option I was able to fade in and out images easily. However, attempting to incorporate the drawtext produces unwanted errors. Any ideas how this could be rememdied ? Love to show multi-line text (different fonts) centered over box at specific times with fade in fade out times that works alongside images fading in out at specific times.

    ffmpeg -i vids/testVid.mp4 -loop 1 -i slideshow/pic1.png -loop 1 -i slideshow/pic2.png -loop 1 -i slideshow/pic3.png -i slideshow/pic4.png -filter_complex "[0:v]drawbox=x=40:y=40:w=250:h=75:color=white,drawtext=fontfile=arialb.ttf:fontsize=24:font color=black:text=Micky Mouse,drawtext=fontfile=arial.ttf:fontsize=24 : font color=black:text=January 1st 1938 — December 19th 2019fade=st=0:d=1:alpha=1,fade=out:st=5:d=1:alpha=1,trim=0:6,setpts=PTS+4/TB[ovr1] ; [2]fade=st=0:d=1:alpha=1,fade=out:st=5:d=1:alpha=1,trim=0:6,setpts=PTS+10/TB[ovr2] ; [3]fade=st=0:d=1:alpha=1,fade=out:st=5:d=1:alpha=1,trim=0:6,setpts=PTS+16/TB[ovr3] ; [4]fade=st=0:d=1:alpha=1,fade=out:st=5:d=1:alpha=1,trim=0:6,setpts=PTS+22/TB[ovr4] ; [0:v][ovr1]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2:enable=’between(t,4,10)’[base1] ; [base1][ovr2]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2:enable=’between(t,10,16)’[base2] ; [base2][ovr3]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2:enable=’between(t,16,22)’[base3] ; [base3][ovr4]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2:enable=’between(t,22,28)’[out]" -map "[out]" -c:v libx264 -c:a copy -flags +global_header -crf 27 -preset veryfast -s 1920x1080 -y slideshow/outTest.mp4

  • Presentation on the HTML5 video tag

    29 avril 2010

    A few weeks back, I was given the opportunity to present at MinneWebcon. My talk, "<video> will be your friend" focused on the legal issues and implementation possibilities surrounding the HTML5 video tag.

    I’ve put my slides online, if you want to take a look. I’ve also recorded the first half the of the lecture as part of a test of our Mocha class capture application. I’ll be recording the second half Real Soon Now.

  • Way to bypass video upload when testing using Rspec

    1er mars 2014, par Justin

    I'm testing a page on my app that shows videos. I'm trying to speed up the test by bypassing the video upload process or another way ??

    Maybe I'm using FactoryGirl incorrectly for file uploads..

    Using FactoryGirl, I'm creating the video with

    FactoryGirl.define do
    factory :video do
     user_id 1
     type "Live"
     title "FooBar"
     description "Foo bar is the description"
     video { fixture_file_upload(Rails.root.join(&#39;spec&#39;, &#39;files&#39;, &#39;concert.mov&#39;), &#39;video/mp4&#39;) }
    end
    end

    And in the request's spec I'm describing the videos as :

    describe "videos page" do

     let(:user) { FactoryGirl.create(:user) }
     let!(:video1) { FactoryGirl.create(:video) }

     before { visit user_video_path(user) }

     it { should have_title(user.name) }
     it { should have_content(user.name) }

     describe "videos" do
       it { should have_content(video1.description) }
     end
    end

    Now, everytime I run the test for this page it goes through the file upload process which takes more time. I'm also using FFmpeg

    **video.rb (video model)**

    validates :video, presence: true
    has_attached_file :video, :styles => {
                                         :medium => { :geometry => "640x480", :format => &#39;mp4&#39; },
                                         :thumb => { :geometry => "470x290#", :format => &#39;jpg&#39;, :time => 10 }
                                        },
                             :processors => [:ffmpeg]

    What this does when I test the page is the CLI goes through the video upload process like it would if you were uploading the video and watching your local server.