Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (84)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

  • ffmpeg native player started from spring application freezes

    21 mars 2018, par Jemo Mgebrishvili

    I have a spring-mvc project, from browser on button click I’m starting ffmpeg player (ffplay) for video/audio streaming, the problem is that, when player window is opened after the button click, it freezes and not responds, it shows one frame and stops frame updates but has audio voice, also I can’t move it and change player position, if I start the ffplay from cmd (outside from my app) it works fine.
    this is how I am starting the player

    Thread({
           val cmd = arrayOf("pathToTheffplay", "-loglevel", "verbose", "rtmp://localhost:portNum/streamName")
           val pb = ProcessBuilder(*cmd)
           pb.start()
           println("player started")
     }).start()

    what I am missing ? Any advice ?

  • I want to convert relay server nodejs http->websocket code version to java netty to spring-websocket

    20 août 2019, par rura6502

    I want to rewrite this example(https://github.com/phoboslab/jsmpeg/blob/master/websocket-relay.js) to java using netty and spring-WebSocket.

    This nodejs example’s HTTP server get the media data from FFmpeg and relay to the WebSocket. And then javascript library draws on the HTML Canvas.

    But My problem is that when I use netty, spring-WebSocket, some data cannot read by the javascript library and there are many data loss.

    In the example, this nodejs code’s main part I think.

    http = require('http'),
    WebSocket = require('ws');
    // setting websocket server ..............
    var streamServer = http.createServer( function(request, response) {
     // ....................
       response.connection.setTimeout(0);
       request.on('data', function(data){
           socketServer.broadcast(data);
               // .....
       });
     // .................
    }).listen(STREAM_PORT);

    So I already tried to change this. I just used netty code in the official document(https://netty.io/wiki/user-guide-for-4.x.html) and changed sending a part for the Websocket

    // this code is in channelRead method
    ByteBuf buf = (ByteBuf) msg;
    try {
     while (buf.isReadable()) { // (1)
       byte[] bytes = new byte[buf.readableBytes()];
       buf.readBytes(bytes);
       WSHandler.wsSessions.stream().forEach(wsSession -> {
         try {
           wsSession.sendMessage(new BinaryMessage(bytes));
         } catch (IOException e) {
           e.printStackTrace();
         };  
       });
     }
    } finally {
     ReferenceCountUtil.release(msg); // (2)
    }

    Please tell me what I missed. help me. thanks.

  • Video created from JPEG images in Spring Boot using FFmpegBuilder is extremely resource demanding

    1er avril 2020, par Igor Avramovic

    I have created small JAVA app which transforms a set of input JPEG images into video

    



    For that purpose i use 
net.bramp.ffmpeg.builder.FFmpegBuilder

    



        FFmpegBuilder builder = new FFmpegBuilder()
                .addInput(imagesSourceFolder)

                .addOutput(videoOutputPath)             
                .setFormat("mp4")
                .setVideoCodec("libx264")
                .setVideoResolution(1280, 720)
                .disableSubtitle() 
                .disableAudio()
                .setVideoFrameRate(FFmpeg.FPS_24)

                .done();



    



    Everything works just fine

    



    But the problem is that video created like this is very resource demanding
For instance, when i play it in VLC it slows my whole system
When i try to stream that video and open it in Browser, 
everything becomes unresponsive,
except for video that keeps running

    



    Any idea why videos created in this way are so resource demanding ?