Recherche avancée

Médias (91)

Autres articles (13)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • I can't get any error messages on node.js spawn, using ffmpeg

    21 mars 2021, par rickster26ter1

    I am trying to get the errors from a spawn process on nodejs, trying to run FFMPEG. I have not run a child process before explicitly, so I'm not sure this is right, but what I have gathered from code examples online :

    


        const {spawn} = require('child_process');
    async function(req,res){
           
    console.log(res.req.files.data[0].path);
    var tst_loc = res.req.files.data[0].path;
    try {
            var the_arr = tst_loc.split('/');
            the_arr.pop();
            tst_loc1 = the_arr.join('/') +"/test.avi";
            console.log("HERE");
            var cmd = 'ffmpeg';
                var tstspawn = spawn(cmd, [
                '-i', tst_loc,
                '-s', '800x400',
                '-b:v', '64k',
                '-c:v', 'avi',
                '-c:a', tst_loc1,
                '-o', outputfilename
            ], (error, stdout, stderr) => {
                  if (error) {
                      console.error('Error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:', stderr);
                      throw error;
                  }
                  console.log('Success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', stdout);
            })
            
            tstspawn.stderr.on('data', function(data) {
            //Here is where the error output goes

               console.log('stderr: ' + data);

               data=data.toString();
               scriptOutput+=data;
            });
       

 
            tstspawn.stderr.on('error',function(error){
              console.log(error);
            });

  } catch (e) {
    console.log(e.code);
    console.log(e.msg);
  }


    


    Returns only my console logs of the path data, the console log of the "HERE", and nothing else at all. I know it didn't run properly because I do not get the expected video file that FFMPEG should have output. But I can't get any sort of error message on my console. No crashing of the application or anything...

    


    Thanks for any help,

    


  • error.h : Do not circularly depend on avutil.h

    13 décembre 2013, par Diego Biurrun
    error.h : Do not circularly depend on avutil.h
    
    • [DH] libavutil/error.h
  • Displaying RTSP-Stream using Xuggler : org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 34 60, bytestream (td)

    10 avril 2016, par Wenonah

    I’m new to displaying RTSP-Streams and Xuggler, so I really don’t know what to do.

    I’m trying to display the Main-Stream of my IP-Camera in a Java-Swing Window and get this :

    enter image description here

    I also get these errors :

    13:21:45.941 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 8 7, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 34 60, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 8 36, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 68 62, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 118 38, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 60 62, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] cabac decode of qscale diff failed at 1 7
    13:21:46.940 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 1 7, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 28 37, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 18 35, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 17 41, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 53 32, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 31 29, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 21 29, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] left block unavailable for requested intra mode at 0 35
    13:21:49.902 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 0 35, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 17 21, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 46 10, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 109 28, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 60 10, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 11 14, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 101 9, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 76 9, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 86 11, bytestream (td)
    17:47:04.192 [main] ERROR org.ffmpeg - [h264 @ 15AC7660] error while decoding MB 60 24, bytestream (td)

    This is part of the code that I use :

    private IMediaListener mediaListener = new MediaListenerAdapter() {

       @Override
       public void onVideoPicture(IVideoPictureEvent event) {
           try {
               BufferedImage bi = event.getImage();
               if (bi != null)
                   updateWindow(bi);
           } catch (Exception ex) {
               LOG.error("Error getting Image from IVideoPictureEvent: " + ex);
           }
       }
    };

    public DisplayWindow() {
       display();
    }

    private void display() {
       IMediaReader mediaReader = ToolFactory
               .makeReader("rtsp://user:password@192.168.1.22:554/Streaming/Channels/1");

       mediaReader
               .setBufferedImageTypeToGenerate(BufferedImage.TYPE_3BYTE_BGR);
       mediaReader.setQueryMetaData(false);
       mediaReader.addListener(mediaListener);

       openWindow();

       while (true) {
           IError error = null;
           if(mediaReader != null){
               error = mediaReader.readPacket();
               if(error != null){
                   LOG.error("Error at mediaReader.readPacket(): " + error);
               }
           }
       }
    }

    Displaying the Sub-Stream (which has lower resolution) works well.

    I use Xuggler 5.4 with Maven.

    There probably is a simple solution to this problem, but I’ve searched the whole internet and haven’t found one, so I’d appreciate any help. Thank you !

    UPDATE : I’d also be happy about (free !) alternatives to Xuggler.