Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (104)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (11224)

  • Set protocol-level metadata in AVFormatContext any time a packet is read.

    1er août 2014, par Andrew Stone
    Set protocol-level metadata in AVFormatContext any time a packet is read.
    

    If any option named "metadata" is set inside the context, it is pulled up to
    the context and then the option is cleared.

    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] libavformat/utils.c
  • Why can't I set "aspect ratio" by ffmpeg -aspect ? [on hold]

    7 août 2014, par yasi

    I want to generate an h264 (avc) file by a jpg file. I generated it by command :

    • ffmpeg -f image2 -i img%d.jpg -vcodec libx264 sample.h264
    • mv avatar.h264 sample-320.avc

    the img%d.jpg is 0.jpg, 1.jpg, 2.jpg ... 24.jpg, all of which is the same, resolution is 320x180

    When sample.avc is generated, I checked information of it by ESEyE, it’s like below.
    enter image description here

    As you can see, the resolution is correct, but aspect ratio is weird since original jpg sequence is 320x180, whose aspect ratio is 16:9. So, I tried to keep 16:9 by the command below

    • ffmpeg -r 25 -f image2 -i img%d.jpg -vcodec libx264 -profile:v baseline -level:v 1.1 -aspect "16:9" sample.h264

    However, it doesn’t work, the generated avc aspect ratio is still 5x3.

    How can I keep aspect ratio of 16:9 ?

    P.S.
    I guess h264 miminal block is 16x16, and avc width could be padded as 192 (16 * 12), so aspect ratio is 320:192 = 5:3.

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