Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (43)

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

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (7714)

  • Revision f085d128f7 : Remove brightness weighting in two pass. This code dates from the ancient past

    23 mai 2014, par Paul Wilkins

    Changed Paths :
     Modify /vp9/encoder/vp9_firstpass.c



    Remove brightness weighting in two pass.

    This code dates from the ancient past and
    applied an error score weighting based on pixel
    brightness. This not seem to be providing any
    benefit metrics wise and could be making some
    visual issues in dark frames worse.

    The field is left in place in the FIRSTPASS_STATS data
    structure in this patch, pending changes to unit tests that
    use a pre-defined first pass file.

    Change-Id : Id50f04205230234858e7548ce523f11acaf3567d

  • FFMPEG Decoding - Memory Leak

    1er mai 2013, par Spamdark

    Developing an application for a test, I encountered an error. Meanwhile the packets were proccessed, I got a very horrible problem, a memory leak.

    The av_free_packet is applied correctly, I think (See the code). When I run the app, the memory grows up to 500MB meanwhile it's playing the audio file, that's not normal. VLC or WMplayer (Windows Media Player) just wastes 30/20mb reading that file.

    Here is the code :

    static AVPacket pkt;
    static uint8_t *audio_pkt_data = NULL;
    static int audio_pkt_size = 0;
    static AVFrame frame;
    static bool first_time = true;

    if(first_time){
       first_time=false;
    }

    int len1, data_size = 0;

    for(;;){
       bool do_rt = false;

       while(audio_pkt_size > 0){
           int obt_frame = 0;

           len1 = avcodec_decode_audio4(_audio_ccontext,&frame,&obt_frame,&pkt);
           if(len1 < 0){
               audio_pkt_size = 0;
               break;
           }
           audio_pkt_data+=len1;
           audio_pkt_size-=len1;
           if(obt_frame){
               data_size = av_samples_get_buffer_size(NULL,channel_count,sample_fr,_audio_ccontext->sample_fmt,1);
               memcpy((int16_t*)audio_buf,frame.data[0],data_size);

           }
           if(data_size <= 0){
               continue;
           }
           do_rt = true;
       }

       if(pkt.data){
           //MessageBox(0,"hi","Hi",MB_OK); // This is only for test if the app si reaching this av_free_packet
           av_free_packet(&pkt);
       }

       if(do_rt){
           return data_size;
       }

       // Try to get a new packet
       if(!audio_packets.empty()){
           WaitForSingleObject(Queue_Audio_Mutex,INFINITE);
               pkt = *audio_packets.front();
               audio_packets.pop();
           ReleaseMutex(Queue_Audio_Mutex);

           audio_pkt_size = pkt.size;
           audio_pkt_data = pkt.data;
       }else{
           return -1;
       }
    }
    return 0;
    }

    I would appreciate your help. Thank you very much.

  • 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