Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (107)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (8654)

  • why jmf can't play rtp stream ?

    24 janvier 2017, par ahmet burak

    I produced an rtp link with ffmpeg and I tried to listen and play this stream. VLC and ffmpeg can play rtp stream, both work well but jmf doesn’t.

    Although there is no any error, jmf doesn’t play rtp stream and there is no sound.

    My rtp stream (http:.. is a radio link and rtp :... my stream)

    ffmpeg -i http://airspectrum.cdnstream1.com:8114/1648_128 -acodec copy -f rtp "rtp ://127.0.0.1:10000/audio/1"

    public void play() {
       MediaLocator mediaLocator = new MediaLocator("rtp://127.0.0.1:10000/audio/1");
       try {
           if (mediaLocator == null) {
               System.err.println("null locator");
           }
           player = Manager.createRealizedPlayer(mediaLocator);
           player.start();
       } catch (CannotRealizeException e) {
           e.printStackTrace();
       } catch (IOException e) {
           e.printStackTrace();
       } catch (NoPlayerException e) {
           e.printStackTrace();
       }

    }
    1. os ubuntu 16.08
    2. java jdk 1.8
    3. javax.media.jmf 2.1.1e (maven repo version)
  • How to disable switchable graphics ?

    20 juillet 2021, par Hab-Land0

    Recently, I've updated my graphic drivers for a new system I built, a mix between an amd apu and an nvidia quadro. But I stumbled upon a rare problem, every time I tried to use OpenCl acceleration on ffmpeg for libx264 encoding, ffmpeg notifies me with the next line :

    


    [libx264 @ 0000028149222780] OpenCL acceleration disabled, switchable graphics detected


    


    My obvious step was to search everything I could around this "switchable graphics", but almost all the tutorials on websites told me that I should search around the driver's settings, but literally either Radeon Software or Nvidia's control panel don't display any option about it (It is worth to say that almost all of the tutorials refer to laptops with dedicated graphics and were very outdated).

    


    Another way I use OpenCL is for vapoursynth's filters, such as KNLMeansCL. And, when I make use of this filter, task manager detects that both AMD's APU and Nvidia's gpu are being used simultaneously (I guess that's how the switchable graphics actually works).

    


    My main complain with this is that I attempt to use AMD as a display driver and let Nvidia do the hard work, and I actually was able to do that before updating my drivers. And, talking about the "updates" more in-depth, I updated nvidia's from "462.59" to "471.11" and, unfortunately, I can't remember what versions were my AMD drivers.

    


  • Pipe live stream from NodeJS Readable to ffmpeg

    22 septembre 2022, par Abbas Yassini

    I am using Twilio for transfering audio calls to a meeting room on top of Mediasoup.
Using Twilio websocket I get media stream encoded in base64 and push that to a NodeJS Readable stream. Then I will pipe that readable stream to a ffmpeg process I created before, using NodeJS spawn()

    


    The problem is that only 92 bytes pipes into ffmpeg and so the output is not playable.
I dont have any idea if the options of ffmpeg is wrong or I'm using Readable stream bad way.

    


    const process = spawn('ffmpeg', [
      '-loglevel',
      'debug',
      '-re',
      '-protocol_whitelist',
      'pipe,udp,rtp',
      '-f',
      'mulaw',
      '-i',
      'pipe:0',
      '-map',
      '0:a',
      '-c:a',
      'pcm_mulaw',
      'output.wav'
    ]);

const rstream = new Readable({ encoding: 'binary' })
rstream._read = () => {};

rstream.resume();
rstream.pipe(process.stdin)


    


    each time I get media from Twilio socket as base64, I push that chunk into rstream using :

    


    const mediaBytes = Buffer.from(base64Chunk, "base64")
const count = mediaBytes.byteLength

rstream.push(Buffer.from([0x52, 0x49, ... /* PCM MU_LAW HEADER 54 Bytes */]))
rstream.push(Buffer.from([
          count % 256,
          (count >> 8) % 256,
          (count >> 16) % 256,
          (count >> 24) % 256,
        ]))
rstream.push(mediaBytes)