Recherche avancée

Médias (91)

Autres articles (78)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9152)

  • I keep having the message "MovieWriter ffmpeg unavailable ; using Pillow instead." I want to save as MP4 an animation

    6 décembre 2023, par Enrra

    I am doing an animation :

    


    animation = FuncAnimation(fig, update, frames=len(time_values), interval=250, repeat=False)
with a simple frame update function, I want it save it as a MP4 format :

    


    animation.save(f'{save_path}/heat_map.mp4', writer='ffmpeg', fps=10)

    


    I get the error message "MovieWriter ffmpeg unavailable ; using Pillow instead."

    


    I tried to do the following :

    


    plt.rcParams['animation.ffmpeg_path'] ='C:\\ProgramData\\Anaconda3\\LIB\\site-packages\\ffmpeg'
FFwriter = animation.FFMpegWriter()
animation.save(f'{save_path}/heat_map.mp4', writer = FFwriter, fps=10)


    


    This gets me an error message :

    


    Traceback (most recent call last):&#xA;  File "Graph_V1-8.py", line 406, in <module>&#xA;    FFwriter = animation.FFMpegWriter()&#xA;AttributeError: &#x27;FuncAnimation&#x27; object has no attribute &#x27;FFMpegWriter&#x27;&#xA;</module>

    &#xA;

    and I also tried to do the following :&#xA;animation.save(f&#x27;{save_path}/heat_map.mp4&#x27;, writer=&#x27;ffmpeg&#x27;, fps=10, codec=&#x27;libx264&#x27;)

    &#xA;

    which also get me the error :&#xA;"MovieWriter ffmpeg unavailable ; using Pillow instead."

    &#xA;

    When I write :

    &#xA;

    pip install ffmpeg&#xA;Requirement already satisfied: ffmpeg in c:\programdata\anaconda3\lib\site-packages (1.4)&#xA;

    &#xA;

    Thank you in advance for your help

    &#xA;

  • How to save a vedostream on an event using ffmpeg

    26 janvier 2015, par Ludo

    I want to record short video sequences of an online stream (IP CCTV or Internet) on a defined event.

    For example : I want to have two minutes before and one minute after an event occures stored in a output file.

    Is it possible to do this using ffmpeg (avconv) and what are the parameters to use.

    Thanks for your help !

  • how use pipe instead of save method in fluent-ffmpeg ?

    27 juin 2019, par Mohsen Rahnamaei

    I gonna use fluent ffmpeg to write something on video
    I use this cod

    var proc = ffmpeg(req.filePath). videoFilters(
     {
       filter: 'drawtext',
       options: {
         text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
         fontsize: 36,
         fontcolor: 'white',
         x: '(main_w/2-text_w/2)',
         y: '(text_h/2)+15',
         shadowcolor: 'black',
         shadowx: 2,
         shadowy: 2
       }}

    )
    // use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
    .on('end', function() {
     console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
     console.log('an error happened: ' + err.message);
    }).save('/home/gheidar/Desktop/ffmpeg_test/rt.ts');

    and everything is correct
    but I want to export this output to stream for the response of the request
    means that I want to use pipe() instead of save method

    something like this :

    var proc = ffmpeg(req.filePath). videoFilters(
     {
       filter: 'drawtext',
       options: {
         text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
         fontsize: 36,
         fontcolor: 'white',
         x: '(main_w/2-text_w/2)',
         y: '(text_h/2)+15',
         shadowcolor: 'black',
         shadowx: 2,
         shadowy: 2
       }}

    )
    // use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
    .on('end', function() {
     console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
     console.log('an error happened: ' + err.message);
    }).pipe(res)

    its just change in the last line
    and I get this error :

    an error happened: ffmpeg exited with code 1: pipe:1: Invalid argument

    how can export this ffmpeg command to stream response ????