Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (66)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8758)

  • How to prepare media stream to play using dash.js web player ?

    7 avril 2016, par Paweł Tobiszewski

    I want to stream media from nginx server to Android device and play it using web player embedded into web page. Player I want to use is dash.js.
    I play the same media also using different methods (MediaPlayer and ExoPlayer) and they are working great. But when I try to use dash.js, I faced problem with codecs - they are not supported.
    I prepare my streams using ffmpeg and MP4Box, I also tried different codecs, like libx264, x264, x265 - always with the same effect.
    My based media are video in Y4M format and audio in WAV.
    How to encode it to use it in dash.js player ?

    EDIT :
    I get error "Video Element Error : MEDIA_ERR_DECODE" while trying to decode video stream.

    Here is full log :

    [16] EME detected on this user agent! (ProtectionModel_21Jan2015)
    [19] Playback Initialized
    [28] [dash.js 2.0.0] MediaPlayer has been initialized
    [102] Parsing complete: ( xml2json: 3ms, objectiron: 3ms, total: 0.006s)
    [103] Manifest has been refreshed at Thu Apr 07 2016 22:02:52 GMT+0200 (CEST)[1460059372.696]  
    [107] SegmentTimeline detected using calculated Live Edge Time
    [118] MediaSource is open!
    [118] [object Event]
    [119] Duration successfully set to: 18.58
    [119] Added 0 inline events
    [120] video codec: video/mp4;codecs="avc1.640032"
    [132] Schedule controller stopping for video
    [137] No audio data.
    [137] No text data.
    [137] No fragmentedText data.
    [137] No embeddedText data.
    [138] No muxed data.
    [139] Start Event Controller
    [141] Schedule controller starting for video
    [143] Native video element event: play
    [144] Schedule controller starting for video
    [148] loaded video:InitializationSegment:NaN (200, 0ms, 7ms)
    [149] Initialization finished loading
    [154] Getting the request for video time : 0
    [155] SegmentList: 0 / 18.58
    [164] loaded video:MediaSegment:0 (200, 7ms, 1ms)
    [169] Native video element event: loadedmetadata
    [171] Starting playback at offset: 0
    [175] Got enough buffer to start.
    [175] Buffered Range: 0 - 0.999999
    [179] Requesting seek to time: 0
    [181] Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end. 0  was changed to  0.999999
    [182] Getting the request for video time : 0.999999
    [183] SegmentList: 0 / 18.58
    [183] Getting the next request at index: 1
    [184] SegmentList: 1 / 18.58
    [190] loaded video:MediaSegment:1 (200, 5ms, 0ms)
    [192] Buffered Range: 0 - 0.999999
    [195] Getting the request for video time : 2
    [196] Index for video time 2 is 1
    [197] SegmentList: 1 / 18.58
    [197] Getting the next request at index: 2
    [198] SegmentList: 2 / 18.58
    [205] loaded video:MediaSegment:2 (200, 4ms, 1ms)
    [207] Buffered Range: 0 - 0.999999
    [207] Getting the request for video time : 3
    [208] Index for video time 3 is 2
    [208] SegmentList: 2 / 18.58
    [209] Getting the next request at index: 3
    [209] SegmentList: 3 / 18.58
    [212] Video Element Error: MEDIA_ERR_DECODE
    [212] [object MediaError]
    [215] Schedule controller stopping for video
    [219] Native video element event: pause
  • Adding video with paperclip av-transcoder

    16 avril 2016, par D.Graves

    Okay so I tried this awhile back and I couldn’t get it to work. So I started new and still struggling with this. I am able to upload images no problem. But for some reason I am getting errors when I try to upload videos. I have ffmpeg installed and the latest paperclip av-transcoder installed as well.

    This is the error that I’m getting
    enter image description here

    This is my post model

    class Post < ActiveRecord::Base
    belongs_to :user
    has_attached_file :video, styles: {
       :medium => {
         :geometry => "640x480",
         :format => 'mp4'
       },
       :thumb => { :geometry => "160x120", :format => 'jpeg', :time => 10}
    }, :processors => [:transcoder]
    validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
    end

    This is my post controller

    def index
    @posts = Post.all.order("created_at DESC")
    end

    def show
    end

    def new
    @post = current_user.posts.build
    end

    def edit
    end

    def create
    @post = current_user.posts.build(post_params)
    if @post.save
     redirect_to @post, notice: 'Post was successfully created.'
    else
     render :new
    end
    end

    def update
    if @post.update(post_params)
     redirect_to @post, notice: 'Post was successfully updated.'
    else
     render :edit
    end
    end

    def destroy
    @post.destroy
    redirect_to posts_url
    end

    private
    # Use callbacks to share common setup or constraints between actions.
    def set_post
     @post = Post.find_by(id: params[:id])
    end

    def correct_user
     @post = current_user.posts.find_by(id: params[:id])
     redirect_to posts_path, notice: "Not authorized to edit this post" if     @post.nil?
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def post_params
     params.require(:post).permit(:description, :image, :video)
    end

    def bscenes_params
       params.require(:post).permit(:video)
    end
    end

    This is the tag I am using on my show page

    <%= video_tag bscene.video.url(:medium), controls: true, style: "max-width: 100%;" %>

    I followed step by step the steps on this site
    http://alloffices.io/posts/heroku-s3-paperclip-av-transcoder-for-video-uploads

    Don’t know why Im getting the NamError. Any help at all would be a ton of help

    When I take away the "bscene" from the tag and controller I then get this when I upload.

    enter image description here

  • Rails Streamio FFMPEG taking a screenshot of the movie and upload with carrierwave

    5 juin 2016, par Felix

    I have got a Form where I can upload a movie. Its uploaded with carrierwave.

    In this process I want to Make a screenshot of the movie while uploading.

    How can I do this with Streamio FFMPEG.

    My code Looks like this at the moment.

    #Laedt ein Video hoch
    def uploadMovie
     @channels = Channel.all
     @vid = Movie.new(movies_params)

     @channel = Channel.find(params[:channel_id])
     @vid.channel = @channel

     if @vid.save
       flash[:notice] = t("flash.saved")
       render :add
     else
       render :add
     end
    end

    Do I have to do this in controller method or in the carrierwave uplaoder ?

    Update : I tried it this way :

    if @vid.save
     flash[:notice] = t("flash.saved")
     movieFile = FFMPEG::Movie.new(@vid.video.to_s)
     screenshot = movieFile.screenshot("uploads/screenshot", :seek_time => 10)
     render :add
    else

    But then I got tis error :

    s3.amazonaws.com/uploads/movie/video/6/2016-04-24_16.26.10.mp4' does not exist