Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (47)

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

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

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (6257)

  • aarch64 : x264_mbtree_propagate_{cost,list}_neon

    29 octobre 2014, par Janne Grunau
    aarch64 : x264_mbtree_propagate_cost,list_neon
    

    x264_mbtree_propagate_cost_neon is 7 times faster.
    x264_mbtree_propagate_list_neon is 33% faster.

    • [DH] common/aarch64/mc-a.S
    • [DH] common/aarch64/mc-c.c
  • 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;