Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (2)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (2377)

  • Screen recorder in Ubuntu using python

    3 août 2013, par mridul

    I am a hobby programmer and trying to make screen-recorder in Ubuntu using python.
    Using this code able to take screenshot.

    import wx
    app = wx.App(False)
    s = wx.ScreenDC()
    w, h = s.Size.Get()
    b = wx.EmptyBitmap(w, h)
    m = wx.MemoryDCFromDC(s)
    m.SelectObject(b)
    m.Blit(0, 0, w, h, s, 0, 0)
    m.SelectObject(wx.NullBitmap)
    b.SaveFile("screenshot.png", wx.BITMAP_TYPE_PNG)

    And using loop I take more pictures and create video using these screen shots.My code is given bellow,

    import wx,os
    app=wx.App(False)
    s = wx.ScreenDC()
    w, h = s.Size.Get()
    b = wx.EmptyBitmap(w, h)
    m = wx.MemoryDCFromDC(s)
    i=0
    while i<50:
      m.SelectObject(b)
      m.Blit(0, 0, w, h, s, 0, 0)
      m.SelectObject(wx.NullBitmap)
      b.SaveFile('{0:05d}.png'.format(i), wx.BITMAP_TYPE_PNG)
      i+=1
    os.system('ffmpeg -f image2 -r 8 -i %05d.png -vcodec mpeg4 -y movie1.mp4')
    i=0  
    while i<50:
      os.remove('{0:05d}.png'.format(i))
      i += 1   `

    In above code I take 50 pictures and store as 00000.png to 00049.png and make video using ffmpeg.
    After creating video I delete all pictures.

    Current Problems :

    • Very small delay between screen shoots. If try to record videos using this code out put is not perfect.
    • For recording long time it is not efficient. It take lot of hard drive memory to store screen shoots. And use more CPU .

    What I do for get code more efficient ? Using pure python how to create video from pictures ? Is there any alternative methods to record screen ?
    I like to improve my code.

  • ffmper with vlc - too heavy screen grabbing, resulting injumpy file, frame loss

    15 mai 2016, par OGP

    I’m using ’vlc/ffmpeg’ package to grab the screen and convert it to H.264 file.

    The problem arises when the host is heavily loaded. I need to maintain correct time stamps and use the 5 fps (relatively low frame rate). Yet sometimes the resulting file jumps few seconds forward, apparently due to frame loss.
    I can deal with the frame loss, it’s OK, but I need to duplicate lost frames to maintain correct timing.

    My configuration file :

    vlc.exe screen :// -I dummy —verbose=2 —one-instance :screen-fps=5 :screen-caching=10000 :sout=#transcodevenc=x264preset=ultrafast,tune=zerolatency,vcodec=h264,fps=5,vb=3000,width=1024,height=576,acodec=none:filedst="C :\tmp\output.mp4"

    What should I add/config to preserve proper time stamps and clip duration ?

    Many thanks for your help.

  • Trouble turning the screen horizontally in ffmpeg

    10 avril 2021, par Kam4c

    first of all I will try to explain this problem by using google translate because I do not know English well.

    


    I'm trying to post my screen recording on my webcam with ffmpeg. My screen is reversed horizontally in a way that I don't understand when I do this. I will need help for this.

    


    ffmpeg -f x11grab -r 60 -s 1366x768 -i :0+0,0 -vf hflip -vf scale=1920x1080 -pix_fmt yuv420p -f v4l2 /dev/video50


    


    I did a few researches on the internet to fix this. A few parameters like -vf vflip are used, but I have tried almost all of them.
But I couldn't get any results.

    


    Screenshot :
enter image description here

    


    I hope a solution will be found.