Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (14)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (4694)

  • Native function in Vitamio

    1er août 2014, par hclee

    I am now looking the code beind the Vitamio (media framework) cause I want to know what API does it use to retrieve the buffer percentage/download rate and how it interect with the android OS to retrieve other information about the streaming video.

    But I realized that it does use some native functions which enable it use some code written in C/C++ language.

    I try to investigate on the C++ code but I don’t know where are they.
    I guessed they are stored inside the res/raw/librarm.so.
    I unzipped the file but all I can find is some machine code but what I want is the implementation of the native function.

    For example, I want to know the implementation of the following function :

    public native int getVideoTrack() ; // What is this function for ? What does it mean by the track
    // number of a straming video ?

    or

    private static native boolean loadFFmpeg_native(String ffmpegPath) ;

    and when will this function be called :

    private static void postEventFromNative(Object mediaplayer_ref, int what, int arg1, int arg2, Object obj)

    Do anyone know where can I investigate the implementation of such native function.
    It should be some C++ code but I don’t want machine code...

    I went to
    https://www.vitamio.org/en/2013/Tutorial_0509/13.html

    but they didn’t have the thing that I want

    Thanks in advance !!!

  • asyncio.create_subprocess_shell error : Future exception was never retrieved - BrokenPipeError

    10 juin 2021, par Abdelmalek

    Whenever I use asyncio.create_subprocess_shell() with sp.communicate() I get this error at the end of my program.

    


    If I run multiple suprocesses using asyncio, the error would be print at the end for each one of them.

    


    Aulthough it doesn't affect my program, I want to find the source and fix the issue. Thanks for the help !

    


    Traceback :

    


    Future exception was never retrieved&#xA;future: <future finished="finished" exception="BrokenPipeError(32," pipe="pipe" has="has" been="been">&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\subprocess.py", line 153, in _feed_stdin&#xA;    await self.stdin.drain()&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\streams.py", line 387, in drain&#xA;    await self._protocol._drain_helper()&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\streams.py", line 197, in _drain_helper&#xA;    await waiter&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 379, in _loop_writing&#xA;    f.result()&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 812, in _poll&#xA;    value = callback(transferred, key, ov)&#xA;  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 538, in finish_send&#xA;    return ov.getresult()&#xA;BrokenPipeError: [WinError 109] The pipe has been ended&#xA;</future>

    &#xA;

    Code :

    &#xA;

    async def get(cs, url):&#xA;    async with cs.get(url) as r:&#xA;        b = b&#x27;&#x27;&#xA;        while True:&#xA;            chunk = await r.content.read(4000000)&#xA;            b &#x2B;= chunk&#xA;            if not chunk:&#xA;                break&#xA;        &#xA;        if int(r.headers[&#x27;content-length&#x27;]) &lt; 8000000:&#xA;            result = BytesIO(b)&#xA;            return [result, &#x27;full&#x27;]&#xA;        else:&#xA;            command = f"ffmpeg -y -i - -c:v copy -fs 8000000 -f matroska -"&#xA;            sp = await asyncio.create_subprocess_shell(command, stdin=asyncio.subprocess.PIPE,&#xA;                stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)&#xA;            stdout, stderr = await sp.communicate(b)&#xA;            sp.wait()&#xA;&#xA;            print(stderr.decode())&#xA;            print(len(stdout))&#xA;            output = str(stderr)&#xA;            index_d = output.find(&#x27;Duration: &#x27;)&#xA;            index_t = output.rfind(&#x27;time=&#x27;)&#xA;            duration = await get_sec(output[index_d &#x2B; 10:].split(",")[0])&#xA;            time_ = await get_sec(output[index_t &#x2B; 5:].split(" ")[0])&#xA;            percentage = f"{round((time_ / duration) * 100)}%"&#xA;&#xA;            result = BytesIO(stdout)&#xA;            return [result, &#x27;preview&#x27;, percentage]&#xA;&#xA;async def main(urls):&#xA;    async with aiohttp.ClientSession() as cs:&#xA;            &#xA;        tasks = []&#xA;        for url in urls:&#xA;            task = asyncio.create_task(get(cs, url))&#xA;            tasks.append(task)&#xA;        &#xA;        results = []&#xA;        for task in tasks:&#xA;            result = await task&#xA;            results.append(result)&#xA;        &#xA;        return results&#xA;&#xA;loop = asyncio.get_event_loop()&#xA;results = loop.run_until_complete(main(urls))&#xA;

    &#xA;

  • Anomalie #3177 (Nouveau) : padding auto n’existe pas

    4 mars 2014, par b b

    On a une règle qui tente de coller la valeur auto en tant que padding dans la dist :

    http://zone.spip.org/trac/spip-zone/browser/_core_/plugins/dist/css/layout.css#L73

    Pourtant cette valeur n’est pas reconnue et ne semble pas être "valide", cf :

    padding : [ | ] 1,4

    https://developer.mozilla.org/fr/docs/CSS/padding

    Si ce n’est pas voulu il serait bon supprimer ce padding : auto !important ;