Recherche avancée

Médias (91)

Autres articles (88)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (7684)

  • avformat/av1 : filter out tile list OBUs from samples

    17 août 2018, par James Almer
    avformat/av1 : filter out tile list OBUs from samples
    

    As per the updated spec.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavformat/av1.c
    • [DH] libavformat/version.h
  • How to build list of tasks for asyncio.gather in Python 3.8

    22 juillet 2020, par mcgregor94086

    Below I have attached a test program to demonstrate a problem I am having with asyncio.gather throwing a TypeError.

    &#xA;

    My objective : To make multiple concurrent asynchronous calls to capture camera images to files from an array of USB cameras attached to my computer. When all cameras have completed their async captures, I want then resume processing.

    &#xA;

    The async coroutine take_image() shown here makes a system call to the "ffmpeg" application that captures an image from the specified camera to a specified file.

    &#xA;

    import asyncio&#xA;import os&#xA;import subprocess&#xA;import time&#xA;&#xA;async def take_image(camera_id, camera_name, image_file_path, image_counter):&#xA;    image_capture_tic = time.perf_counter()&#xA;    try:&#xA;        run_cmd = subprocess.run( ["ffmpeg", &#x27;-y&#x27;, &#x27;-hide_banner&#x27;, &#x27;-f&#x27;, &#x27;avfoundation&#x27;, &#x27;-i&#x27;, camera_id,&#xA;                                   &#x27;-frames:v&#x27;, &#x27;1&#x27;, &#x27;-f&#x27;, &#x27;image2&#x27;, image_file_path], universal_newlines=True,&#xA;                                 stdout=subprocess.PIPE, stderr=subprocess.PIPE)  # Note, ffmpeg writes to stderr, not stdout!&#xA;    except Exception as e:&#xA;        print("Error: Unable to capture image for", image_file_path)&#xA;        return "NO IMAGE!"&#xA;&#xA;    image_capture_toc = time.perf_counter()&#xA;    print(f"{image_counter}: Captured {camera_name} image in: {image_capture_toc - image_capture_tic:0.0f} seconds")&#xA;    return camera_name&#xA;

    &#xA;

    The main() routine shown below takes a list of multiple cameras, and iterating over each camera in the list, main() makes creates an asyncio task for each camera using asyncio.create_task(). Each task is added to a list of tasks.

    &#xA;

    Once all image capture tasks have been started, I await their completion using await asyncio.gather(tasks).

    &#xA;

    async def main():&#xA;    tic = time.perf_counter()&#xA;    camera_list = [(&#x27;0&#x27;, &#x27;FHD Camera #1&#x27;),  (&#x27;1&#x27;, &#x27;FHD Camera #2&#x27;), (&#x27;2&#x27;, &#x27;FHD Camera #3&#x27;), ]&#xA;    image_counter = 1&#xA;    tasks = []&#xA;    for camera_pair in camera_list:&#xA;        camera_id, camera_name = camera_pair&#xA;        image_file_name = &#x27;img&#x27; &#x2B; str(image_counter) &#x2B; "-cam" &#x2B; str(camera_id)  &#x2B; "-" &#x2B; camera_name &#x2B; &#x27;.jpg&#x27;&#xA;        image_file_path = os.path.join("/tmp/test1/img", image_file_name)&#xA;&#xA;        # schedule all image captures calls *concurrently*:&#xA;        tasks.append(asyncio.create_task(take_image(camera_id, camera_name, image_file_path, image_counter),&#xA;                     name=image_file_name))&#xA;        image_counter = image_counter &#x2B; 1&#xA;&#xA;    await asyncio.gather(tasks) # &lt;-- This line throws a TypeError!&#xA;    toc = time.perf_counter()&#xA;    print(f"Captured list of {image_counter - 1} cameras in: {toc - tic:0.0f} seconds")&#xA;&#xA;asyncio.run(main())&#xA;

    &#xA;

    Unfortunately, when I attempt to run this program, I am getting this error :

    &#xA;

    TypeError : unhashable type : 'list'

    &#xA;

    and the following Traceback :

    &#xA;

    Traceback (most recent call last):&#xA;  File "scratch_10.py", line 41, in <module>&#xA;    asyncio.run(main())&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/runners.py", line 43, in run&#xA;    return loop.run_until_complete(main)&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete&#xA;    return future.result()&#xA;  File "scratch_10.py", line 36, in main&#xA;    await asyncio.gather(tasks)&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/tasks.py", line 805, in gather&#xA;    if arg not in arg_to_fut:&#xA;TypeError: unhashable type: &#x27;list&#x27;&#xA;</module>

    &#xA;

    I have been trying to puzzle through the 3.8 documentation on asyncio, but I don't understand what is wrong.

    &#xA;

    How can I have each take_image request run asynchronously, and then resume processing in my calling routine once each task is complete ?

    &#xA;

  • avformat/mov : move edit list heuristics into mov_build_index()

    12 novembre 2014, par Clément Bœsch
    avformat/mov : move edit list heuristics into mov_build_index()
    

    mov_read_elst() is now only responsible from storing the table in a data
    structure ; this is consistent with other table readers functions.

    • [DH] libavformat/isom.h
    • [DH] libavformat/mov.c