Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (74)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • IContainer.open() fails when using with custom ByteChannel to read from

    13 août 2014, par AnilJ

    I am trying to open an IContainer object which is reading from a custom input buffer rather than reading from a media file. The implementation for this custom input buffer is as below.

    The code to create and open the container is as below.

    // Open up the container for READING
    mInputCStore = new CStore();

    IContainerFormat format = IContainerFormat.make();
    if (format.setInputFormat("flv") < 0) {
       throw new IllegalArgumentException("Failed to initialize the input format");
    }

    // Open up the container
    mInputContainer = IContainer.make();
    int retval = mInputContainer.open(mPlaybackContainerStore, IContainer.Type.READ, format);      
    if (retval < 0) {
       // This little trick converts the non friendly integer return value into  
       // a slightly more friendly object to get a human-readable error name
       IError error = IError.make(retval);
       throw new IllegalArgumentException("could not open input container: " + mPlaybackContainerStore + "; Error: " + error.getDescription());
    }

    The above code throwing an exception saying that —

    Exception in thread "main" java.lang.IllegalArgumentException: could not open input container: com.client.video.ContainerStore@61981853; Error: Operation not permitted

    The same custom buffer when used while writing to the container is working successfully. Can someone pls help me understand what is missing in the custom buffer implementation, as far as using it in READ mode and why the reason it is failing ?

    package test;

    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.channels.ByteChannel;
    import java.util.concurrent.ConcurrentLinkedQueue;

    public class CStore implements ByteChannel {
       private ConcurrentLinkedQueue<datachunk> mChunkQueue = null;
       private int mQueueSize = 0;

       // constructor
       public CStore(String type) {
           mQueueSize = 0;
           mChunkQueue = new ConcurrentLinkedQueue<datachunk>();
           mChunkQueue.clear();
       }

       @Override
       public void close() throws IOException {
           return;
       }

       @Override
       public boolean isOpen() {
           return false;
       }

       @Override
       public int write(ByteBuffer buffer) throws IOException {
           DataChunk chunk = new DataChunk(buffer);
           mChunkQueue.add(chunk);
           mQueueSize += chunk.getLength();
           return 0;
       }

       public int read(ByteBuffer buffer) throws IOException {

           int result = 0;

           DataChunk chunk = mChunkQueue.poll();
           if (chunk != null) {
               buffer = chunk.getBuffer();
               if (buffer != null) {
                   result = 0;
               } else {
                   result = 1;
               }
           }

           return result;
       }
    }
    </datachunk></datachunk>
  • Invoking ffmpeg command line from C#

    17 juillet 2014, par hyde

    I have a bunch of images in a directory that I want to make a video out of.

    For example the images could have the following path :

    C:\dirpath with spaces\a.tiff

    C:\dirpath with spaces\b.tif

    C:\dirpath with spaces\c.tif

    ...

    C:\dirpath with spaces\zzz.tif

    (the file names themselves do not have a pattern)

    And ffmpeg is invoked in the server (ASP.Net WebAPI) when a user submits a query.

    Right now I am having a hard time getting it to work because part of the problem might be how I am passing the file names to ffmpeg.

    The command I am using is :

    ffmpeg -y -pix_fmt rgb24 -s 640x540 -framerate 24 -i "C:\dirpath with spaces\a.tif" "C:\dirpath with spaces\b.tif" "C:\dirpath with spaces\c.tif" ... "C:\dirpath with spaces\zzz.tif" -an out.mp4

    The problem is that the resulting video is 0 seconds long and ffmpeg does not throw any error.

    My question is, is how do I make this work while working with a set of images using their full path, maybe using a wrapper library around it ?

  • Transcode livestream on the fly and output to another server

    3 juillet 2014, par user2757842

    Currently I have my live stream transcoding and saving to a destination on my desktop, but what I would like is to transcode it and send it to another server.

    I create the outstream I would like my stream to go but it returns this error :

    events.js:72
           throw er; // Unhandled 'error' event
                 ^
    Error: ENOENT, open 'C:\Users\Jay\workspace\FFMPEGtest\http:\192.168.201.237\LiveSmoothStreaming.isml\Streams(video)'

    Any help would be appreciated

    Here is my code :

    var ffmpeg = require('./index.js');
    var fs = require('fs');

    var outStream = fs.createWriteStream('http://192.168.201.237/LiveSmoothStreaming.isml/Streams(video)');

    //set the path to the live stream
    var proc = new ffmpeg({ source: 'rtmp://localhost/livepkgr/livestream live=1', nolog: true, timeout: 432000, inputlive:true})

       //set video bitrate
       .withVideoBitrate(1024)

       //set h264 preset
       //.addOption('preset', 'superfast')

       //set target codec
       .withVideoCodec('libx264')

       //set audio bitrate
       .withAudioBitrate('128k')

       //set audio codec
       //.withAudioCodec('libfaac')

       //set number of audio channels
       .withAudioChannels(2)

       .toFormat('ismv')

       .on('error', function(err, stdout, stderr) {
           console.log("ffmpeg stdout:\n" + stdout);
           console.log("ffmpeg stderr:\n" + stderr);
       })

       .on('end', function() {
           console.log('file has been converted successfully');
       })

       .on('error', function(err){
           console.log('an error happened: ' + err.message);
       })

       .writeToStream(outStream, { end: true}); // &lt;-- Where I would like my stream to go
       //save to file
       //.saveToFile('C:/Users/Jay/Documents/movie/liveStream.ismv');