Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (18)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4649)

  • Python running ffmpeg with multiprocessing

    5 août 2021, par loretoparisi

    I'm trying to run ffmpeg command with multiprocessing in parallel tasks.
My python ffmpeg call to be parallelized is the following :

    


    def load_audio(args, kwargs):
    url = args

    start = kwargs["start"]
    end = kwargs["end"]
    sr = kwargs["sr"]
    n_channels = kwargs["n_channels"]
    mono = kwargs["mono"]

    cmd = ["ffmpeg",  "-i", url, "-acodec", "pcm_s16le", "-ac", str(n_channels), "-ar", str(sr), "-ss", _to_ffmpeg_time(start), "-t", _to_ffmpeg_time(end - start), "-sn", "-vn", "-y", "-f", "wav", "pipe:1"]

    process = subprocess.run(
        cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=10 ** 8
    )
    buffer = process.stdout
    waveform = np.frombuffer(buffer=process.stdout, dtype=np.uint16, offset=8 * 44)
    waveform = waveform.astype(dtype)
    return waveform


    


    I then read the audio by offset 60 seconds :

    


    _THREAD_POOL = BoundedThreadPoolExecutor(max_workers=NTHREADS)
tasks = []
cur_start = start
for i in range(NTHREADS):
    msg = {'start':cur_start,
           'end':min(cur_start+60,end)}
    t = execute_callback(load_audio, 
                         'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_5MG.mp3', 
                         msg)
    cur_start+=60
    tasks.append(t)


    


    where execute_callback will submit the thread to the pool :

    


    def execute_callback(fn, args, kwargs):
    try:
        futures_thread = _THREAD_POOL.submit(fn, args, kwargs)
        return futures_thread
    except Exception as e:
        return None


    


    I finally retrieve the results, and concat to a numpy array (that will go to soundfile to be read)

    


    futures_results = get_results_as_completed(tasks, return_when=ALL_COMPLETED)
waveform = []
for i,r in enumerate(futures_results):
    if not i:
        waveform = r
        print(type(r))
    else:
        waveform = np.append(waveform,r)


    


    where get_results_as_completed is

    


    def get_results_as_completed(futures, return_when=ALL_COMPLETED):
        finished = as_completed(futures)
        for f in finished:
            try:
                yield f.result()
            except Exception as e:
                pass


    


    where I'm using the bounded pool executor class here and here.
I'm using as_completed to retrieve the futures in completed states, that causes the output to not be preserved in the input order, but the "completion" order, this cause the audio output to be wrong. My questions are

    


      

    • Are the ffmpeg futures actually executed in parallel ? In my tests downloading the whole audio like :

      


           args = 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_5MG.mp3'
     kwargs = {'start':start, 
          'end':end}
     waveform = load_audio(args,kwargs)


      


    • 


    • Is it possibile to preserve the input order for the results without using semaphores, but only multiprocessing functions (map may be ?). If so, how ?

      


    • 


    


  • Tele-Arena Lives On

    25 février 2011, par Multimedia Mike — Game Hacking

    Readers know I have a peculiar interest in taking apart video games and that I would rather study a game’s inner workings than actually play it. I take an interest on others’ efforts in this same area. It’s still in my backlog to take a closer look at Clone2727’s body of work. But I wanted to highlight my friend’s work on re-implementing a game called Tele-Arena.



    Back In The Day
    As some of you are likely aware, there was a dark age of online communication that predated the era of widespread internet access. This was known as "The BBS Age". People dialed into these BBSes using modems that operated at abysmal transfer speeds and would communicate with other users, upload and download files, and play an occasional game.

    BBS software evolved and perhaps the ultimate (and final) evolution was Galacticomm’s MajorBBS (MBBS). There were assorted games that plugged into the MBBS, all rendered in glorious color ANSI graphics. One of the most famous of these games was Tele-Arena (TA). TA was a multiplayer fantasy-themed text adventure game. Perhaps you could think of it as World of Warcraft, only rendered as interactive fiction instead of a rich 3D landscape. (Disclaimer : I might not be qualified to make that comparison since I have never experienced WoW firsthand, though I did play TA on and off about 17 years ago).

    TA was often compared to multi-user dungeons — or MUDs — that were played by telneting into internet servers hosting games. Such comparisons were usually unfavorable as people who had experience with both TA and MUDs were sniffy elitists with internet access who thought they were sooooo much better than those filthy, BBS-dialing serfs.

    Sorry, didn’t mean to open old wounds.

    Modern Retelling of A Classic Tale
    Anyway, my friend Ron Kinney is perhaps the world’s biggest fan of TA. So much so that he has re-implemented the engine in Java under the project name Ether. He’s in a similar situation as the ScummVM project in that, while the independent, open source engine is fair game for redistribution, it would be questionable to redistribute the original data files. That’s why he created an AreaBuilder application that generates independent game data files.

    Ironically, you can also telnet into a server on which Ron hosts an instance of Tele-Arena (ironic in the sense that the internet/BBS conflict gets a little blurry).

    I hope that one day Ron will regale us with the strangest tales from the classic TA days. My personal favorite was "Wrath of a Sysop."

  • Merge commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7'

    4 octobre 2017, par James Almer
    Merge commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7'
    

    * commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7' :
    Use modern avconv syntax for codec selection in documentation and tests

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

    • [DH] doc/encoders.texi
    • [DH] doc/faq.texi
    • [DH] doc/filters.texi
    • [DH] doc/indevs.texi
    • [DH] doc/outdevs.texi
    • [DH] tests/fate/demux.mak
    • [DH] tests/fate/ffmpeg.mak
    • [DH] tests/fate/filter-audio.mak
    • [DH] tests/fate/h264.mak
    • [DH] tests/fate/hevc.mak
    • [DH] tests/fate/libswresample.mak
    • [DH] tests/fate/microsoft.mak
    • [DH] tests/fate/mp3.mak
    • [DH] tests/fate/mpc.mak
    • [DH] tests/fate/mxf.mak
    • [DH] tests/fate/prores.mak
    • [DH] tests/fate/utvideo.mak
    • [DH] tests/fate/vcodec.mak
    • [DH] tests/fate/video.mak
    • [DH] tests/fate/vpx.mak
    • [DH] tests/fate/vqf.mak