Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (36)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • 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 ????

  • 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 !

  • 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;