Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (54)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (4473)

  • How to play videos inside pygtk3 window using ffmpeg plugin ?

    1er octobre 2018, par Jin

    Trying to play videos inside pygtk3 windows using ffmpeg plugin.added the code for Gtk window , need help with code on how to make video appear inside the window , Im tryin to create a simple video player for a class project , requirements > should be done using the open source ffmpeg plugin. Any help would be much appreciated.

    import gi
    gi.require_version('Gtk','3.0')
    from gi.repository import Gtk

    class app(Gtk.Window):
       def __init__(self):
           Gtk.Window.__init__(self,title='TODAYS TEST & GREAT !!!')
       self.set_default_size(500,20)

       #Setting a BOX
       box=Gtk.Box()
       self.add(box)

       menubar=Gtk.MenuBar()

       # File
       filemenu=Gtk.Menu()
       filemenudrop=Gtk.MenuItem('FILE')
       file_open=Gtk.MenuItem('Open')
       file_open.connect('activate',self.fileopen)
       file_new=Gtk.MenuItem('New')



       filemenudrop.set_submenu(filemenu)
       filemenu.append(file_open)
       filemenu.append(file_new)


       #Edit
       editmenu=Gtk.Menu()
       editmenudrop=Gtk.MenuItem('EDIT')
       edit_cut=Gtk.MenuItem('Cut')
       edit_copy=Gtk.MenuItem('Copy')
       editmenudrop.set_submenu(editmenu)
       editmenu.append(edit_cut)
       editmenu.append(edit_copy)

       #Mainmenu final appends & packing to box
       menubar.append(filemenudrop)
       menubar.append(editmenudrop)
       box.pack_start(menubar,True,True,0)

    # Setting functions for menuabar items (Naturally created after menubar and its better that way ....1)  
    def fileopen(self,widget):
       print('hello')        




    window=app()
    window.connect('destroy',Gtk.main_quit)
    window.show_all()
    Gtk.main()
  • bash - Parse folder name, generate gif from images inside using ffmpeg

    16 janvier 2023, par BestMordaEver

    I have 150 folders with some nasty folder structure. Inside are animation frames helpfully named 1.png, 2.png and so on. I need to generate gifs from those images and have them named properly. Here's how I'd handle this case by case :

    


    Folder ./dragon/raw/bodies/dragon/green/old/5/down/idle has 25 .png files. I run the following commands :

    


    # pngs to gif
ffmpeg -framerate 12 -start_number 1 -i ./dragon/raw/bodies/dragon/green/old/5/down/idle/%d.png dragon-green-old-5-down-idle-intermediate.gif

# gif to boomerang gif
ffmpeg -i dragon-green-old-5-down-idle-intermediate.gif -filter_complex "[0]trim=start_frame=1:end_frame=29,setpts=PTS-STARTPTS,reverse[r];[0][r]concat=n=2:v=1:a=0,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" dragon-green-old-5-down-idle.gif

# remove the intermediate gif
rm dragon-green-old-5-down-idle-intermediate.gif


    


    Note : relevant part of the name for gif is whatever's after /raw/bodies

    


    Question : how do I put this in a loop that would iterate over all the nested folders, parse their names and feed the result in the commands above ?

    


    Bonus question : is there a way to merge the two commands and create the boomerang gif immediately, removing the need in intermediate files ?

    


  • How to video-record selenium tests running headless inside a docker ?

    1er juin 2021, par Alex

    I am running python-selenium tests inside a docker using a headless firefox.

    


    During these tests I am able to make screenshots with the selenium method for screenshots - but can I use something to 'video' record the virtual display during the whole test (several test scripts with several test methods, with many webdrivers started and stopped).

    


    So how can I video-record a complete test session ?

    


    Addendum : I have found a webpage that describes exactly what I need : here. Unfortunately I get an error when I try to do the recording. Here are the commands I am doing :

    


    xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1920x1080x24" python seltest.py &
ffmpeg -f x11grab -video_size 1920x1080 -i 127.0.0.1:44 -codec:v libx264 -r 12 /tmp/behat_1.mp4


    


    and the error is (for the second command) :

    


    [x11grab @ 0x1d289c0] Cannot open display 127.0.0.1:44, error 1.
127.0.0.1:44: Input/output error