Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (111)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (5935)

  • Merge remote-tracking branch ’cus/stable’

    2 avril 2014, par Michael Niedermayer
    Merge remote-tracking branch ’cus/stable’
    

    * cus/stable :
    mpeg12enc : always set closed gop flag on the first gop
    mpeg12enc : always write closed gops for intra only outputs

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mpeg12enc.c
    • [DH] tests/ref/lavf/ffm
    • [DH] tests/ref/lavf/gxf
    • [DH] tests/ref/lavf/mpg
    • [DH] tests/ref/lavf/mxf
    • [DH] tests/ref/lavf/mxf_d10
    • [DH] tests/ref/lavf/ts
    • [DH] tests/ref/lavf/wtv
    • [DH] tests/ref/vsynth/vsynth1-mpeg1
    • [DH] tests/ref/vsynth/vsynth1-mpeg1b
    • [DH] tests/ref/vsynth/vsynth1-mpeg2
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-422
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-idct-int
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-ilace
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-thread
    • [DH] tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
    • [DH] tests/ref/vsynth/vsynth2-mpeg1
    • [DH] tests/ref/vsynth/vsynth2-mpeg1b
    • [DH] tests/ref/vsynth/vsynth2-mpeg2
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-422
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-idct-int
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-ilace
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-thread
    • [DH] tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
  • Python ThreadedTCPServer : "Name or service not known"

    11 avril 2014, par Hal

    I was developing a ThreadedTCPServer to communicate with a PHP application also residing in this same machine. This is suppose to receive requests from this PHP app and to convert some videos locally using ffmpeg.

    Here's the code :

    # -*- coding: utf-8 -*-
    import os
    import socket
    import threading
    import logging.config
    import SocketServer, time
    from queuev2 import QueueServer

    logging.basicConfig(format=&#39;[%(asctime)s.%(msecs).03d] %(message)s&#39;, datefmt=&#39;%Y-%m-%d %H:%M:%S&#39;, filename=os.path.join(os.path.dirname(os.path.realpath(__file__)), &#39;converter.log&#39;), level=logging.INFO)

    class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):

       def handle(self):
           data = self.request.recv(1024)
           cur_thread = threading.current_thread()
           response = "{}: {}".format(cur_thread.name, data)
           videoPool.add(data)
           print "Output! %s" % data
           self.request.sendall(response)

    class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
       pass

    if __name__ == "__main__":

       logging.info("Initializing...")
       videoPool = QueueServer()
       HOST, PORT = "localhost", 6666

       server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
       ip, port = server.server_address

       # Start a thread with the server -- that thread will then start one
       # more thread for each request
       server_thread = threading.Thread(target=server.serve_forever)

       # Exit the server thread when the main thread terminates
       server_thread.daemon = True
       server_thread.start()

       print("Server loop running in thread: %s" % server_thread.name)

       # "Groundhog day" time
       while True:
           time.sleep(999)
           pass

       #server.shutdown()

    This works well in my development laptop, but on the server i'm getting the following error :

    Traceback (most recent call last):
     File "server.py", line 31, in <module>
       server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
     File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
       self.server_bind()
     File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
       self.socket.bind(self.server_address)
     File "/usr/lib/python2.7/socket.py", line 224, in meth
       return getattr(self._sock,name)(*args)
    socket.gaierror: [Errno -2] Name or service not known
    </module>

    I'm guessing it has to do with the port I'm using (6666), but I've tried others and it hasn't been working. Would Unix Domain Sockets be of use here ? Can you give me an example ?

  • ffmpeg libraries turn off buffer

    12 août 2014, par Артем Суслов

    I’m trying to create an application for ios which receives rtsp frames from ip camera. But when I suspend my main thread (for example, minimize my application) and resume it after some time, I see what I read old frame. I think that ffmpeg library create new thread somewhere which fill some buffer with frames. So how can I turn that buffer off ? I suppose that I don’t need that buffer because I use rtsp over tcp.
    I know that I can handle events which suspend my ios app(disconnect and connect to camera, for example) but I need to know how to receive frames without buffering to avoid future problems.
    And I tried to use flag AVFMT_FLAG_NOBUFFER but it did not help.
    I use ffmpeg 2.3.
    Thanks

    PS

    Probably there in no away to turn this internal buffer off but how I can restrict it ? To 1 or 2 frames (or seconds). I tried a lot of variants and have no idea what to do.