Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (59)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (5366)

  • ffmpeg converting mp4 to gif with color palette results in truncated video

    6 décembre 2019, par Tik0

    I want to generate a gif from my mp4 movie with ffmpeg (ffmpeg version 2.8.15-0ubuntu0.16.04.1) using a color palette. Everything works fine if I do not use a palette :

    $ ffmpeg -i in.mp4 -filter_complex "scale=160:-1" out.gif
    ...
    frame= 2003 fps=251 q=-0.0 Lsize=   21172kB time=00:01:20.12 bitrate=2164.7kbits/s    
    video:21155kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.077667%

    But using a palette like so results in Buffer queue overflow, dropping messages and a truncated video

    $ ffmpeg -i in.mp4 -filter_complex "[0:v] scale=160:-1, split [a][b];[a] palettegen [p];[b][p] paletteuse" out.gif
    ....
    [Parsed_paletteuse_3 @ 0xc56de0] [framesync @ 0xd1af08] Buffer queue overflow, dropping.
    Last message repeated 36 times
    [Parsed_paletteuse_3 @ 0xc56de0] [framesync @ 0xd1af08] Buffer queue overflow, dropping.
    Last message repeated 106 times
    ...
    [Parsed_palettegen_2 @ 0xc56d40] 255(+1) colors generated out of 1347441 colors; ratio=0.000189
    frame=   65 fps=5.4 q=-0.0 Lsize=    1036kB time=00:01:20.12 bitrate= 105.9kbits/s    
    video:1035kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.124664%
  • Matplotlib can not save animation

    1er avril 2020, par Justin Furuness

    I have a matplotlib animation and it will not save. If I do not save it, it runs totally fine and without error. When I try to save it errors with a message that is not helpful. I have googled this error and checked everything, but I cannot seem to find an answer to this problem. I have installed ffmpeg. Am I doing something wrong that is obvious ? I am running on ubuntu 19.10 with matplotlib 3.2.1 if that matters.

    



    The code to save the animation is below :

    



        def run_animation(self, total_rounds):
        anim = animation.FuncAnimation(self.fig, self.animate,
                                       init_func=self.init,
                                       frames=total_rounds * 100,
                                       interval=40,
                                       blit=True)
#        Writer = animation.writers['ffmpeg']
#        writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800)
        anim.save('animation.mp4')


    



    The error traceback :

    



    2020-04-01 02:20:58,279-INFO: MovieWriter._run: running command: ffmpeg -f rawvideo -vcodec rawvideo -s 1200x500 -pix_fmt rgba -r 25.0 -loglevel error -i pipe: -vcodec h264 -pix_fmt yuv420p -y animation.mp4
Traceback (most recent call last):
  File "/home/anon/.local/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2785, in _wait_cursor_for_draw_cm
    self.set_cursor(cursors.WAIT)
  File "/home/anon/.local/lib/python3.7/site-packages/matplotlib/backends/backend_gtk3.py", line 468, in set_cursor
    self.canvas.get_property("window").set_cursor(cursord[cursor])
AttributeError: 'NoneType' object has no attribute 'set_cursor'


    



    Thanks a million for your help

    


  • FFmpeg Commands to add text watermark to mpg2,mss,lxf,3g2 video files

    8 janvier 2021, par Avinash Modi

    I am using following command to add watermark on a video file :

    


    ffmpeg -i input.mpg2 -vf "drawtext=text='Hello World':x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white" TextOutput.mpg2


    


    Error with mpg2 input file :

    


    


    Input #0, mpeg, from 'mpg2.mpg2' :
    
Duration : 00:02:27.07, start:0.213367, bitrate : 4419 kb/s
Stream #0:0[0x1e0] : Video : mpeg2video (Main), yuv420p(tv, bt470bg/bt470m/bt4 70m, bottom first), 704x480 [SAR 1:1 DAR 22:15],
29.97 fps, 29.97 tbr, 90k tbn,59.94 tbc
Side data :
cpb : bitrate max/min/avg : 6000000/0/0 buffer size : 1835008 vbv_delay : N/A
Stream #0:1[0x1c0] : Audio : mp2, 44100 Hz, stereo, s16p, 224 kb/s [NULL @ 000000bd67d2b3c0] Unable to find a suitable output format for
'Output.mp g2'
Output.mpg2 : Invalid argument

    


    


    Similar error occurs with mss, lxf and 3g2 video files.
How can I add watermark to these video file formats ?