Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (27)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

  • using node-fluent-ffmpeg to transcode with ffmpeg on windows not working

    25 juillet 2015, par jansmolders86

    I’m trying to use the module node-fluent-ffmpeg (https://github.com/schaermu/node-fluent-ffmpeg) to transcode and stream a videofile. Since I’m on a Windows machine, I first downloaded FFMpeg from the official site (http://ffmpeg.zeranoe.com/builds/). Then I extracted the files in the folder C :/FFmpeg and added the path to the system path (to the bin folder to be precise). I checked if FFmpeg worked by typing in the command prompt : ffmpeg -version. And it gave a successful response.

    After that I went ahead and copied/altered the following code from the module (https://github.com/schaermu/node-fluent-ffmpeg/blob/master/examples/express-stream.js) :

    app.get('/video/:filename', function(req, res) {
    res.contentType('avi');
    console.log('Setting up stream')

    var stream = 'c:/temp/' + req.params.filename
    var proc = new ffmpeg({ source: configfileResults.moviepath + req.params.filename, nolog: true, timeout: 120, })
       .usingPreset('divx')
       .withAspect('4:3')
       .withSize('640x480')
       .writeToStream(res, function(retcode, error){
           if (!error){
               console.log('file has been converted succesfully',retcode);
           }else{
               console.log('file conversion error',error);
           }
       });
    });

    I’ve properly setup the client with flowplayer and tried to get it running but
    nothing happens. I checked the console and it said :

    file conversion error timeout

    After that I increased the timeout but somehow, It only starts when I reload the page. But of course immediately stops because of the page reload. Do I need to make a separate node server just for the transcoding of files ? Or is there some sort of event I need to trigger ?

    I’m probably missing something simple but I can’t seem to get it to work.
    Hopefully someone can point out what I’ve missed.

    Thanks

  • FFMPEG+video+video.js dont show up the video

    18 avril 2013, par user1843970

    I have a video content type where I want to show the video to the user. I downloaded video module and video.js for this purpose. I have successfully installed ffmpeg transcoder in apache serventer image description here

    Now I go to admin/config/media/video. Withing players tab I select HTML5 player for mp4 video and video.js to run HTML5 video like below :-

    enter image description here

    Now I go to Video Content Type and add Video field with Video Upload as its type and save it.The video is successfully converted but after clicking on play button nothing happens.

    enter image description here

    Need your help in this.

  • Saving scatterplot animations with matplotlib produces blank video file

    1er avril 2013, par user2175850

    I am having a very similar problem to this question

    but the suggested solution doesn't work for me.

    I have set up an animated scatter plot using the matplotlib animation module. This works fine when it is displaying live. I would like to save it to an avi file or something similar. The code I have written to do this does not error out but the video it produces just shows a blank set of axes or a black screen. I've done several checks and the data is being run and figure updated it's just not getting saved to video...

    I tried removing "animated=True" and "blit=True" as suggested in this question but that did not fix the problem.

    I have placed the relevant code below but can provide more if necessary. Could anyone suggest what I should do to get this working ?

    def initAnimation(self):
           rs, cfgs = next(self.jumpingDataStreamIterator)    
           #self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], marker='o')
           self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], marker='o', animated=True)
           return self.scat,


    def updateAnimation(self, i):
       """Update the scatter plot."""
       rs, cfgs = next(self.jumpingDataStreamIterator)
       # Set x and y data...
       self.scat.set_offsets(rs[:2,].transpose())
       #self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], animated=True)
       # Set sizes...
       #self.scat._sizes = 300 * abs(data[2])**1.5 + 100
       # Set colors..
       #self.scat.set_array(cfgs[0])
       # We need to return the updated artist for FuncAnimation to draw..
       # Note that it expects a sequence of artists, thus the trailing comma.
       matplotlib.pyplot.draw()
       return self.scat,

    def animate2d(self, steps=None, showEvery=50, size = 25):
       self.figAnimation, self.axAnimation = matplotlib.pyplot.subplots()
       self.axAnimation.set_aspect("equal")
       self.axAnimation.axis([-size, size, -size, size])
       self.jumpingDataStreamIterator = self.jumpingDataStream(showEvery)

       self.univeseAnimation = matplotlib.animation.FuncAnimation(self.figAnimation,
                               self.updateAnimation, init_func=self.initAnimation,
                               blit=True)
       matplotlib.pyplot.show()

    def animate2dVideo(self,fileName=None, steps=10000, showEvery=50, size=25):
       self.figAnimation, self.axAnimation = matplotlib.pyplot.subplots()
       self.axAnimation.set_aspect("equal")
       self.axAnimation.axis([-size, size, -size, size])
       self.Writer = matplotlib.animation.writers['ffmpeg']
       self.writer = self.Writer(fps=1, metadata=dict(artist='Universe Simulation'))
       self.jumpingDataStreamIterator = self.jumpingDataStream(showEvery)

       self.universeAnimation = matplotlib.animation.FuncAnimation(self.figAnimation,
                               self.updateAnimation, scipy.arange(1, 25), init_func=self.initAnimation)

       self.universeAnimation.save('C:/universeAnimation.mp4', writer = self.writer)