Recherche avancée

Médias (91)

Autres articles (42)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7912)

  • Terminal text becomes invisible after terminating subprocess

    22 mai 2022, par wim

    After terminating an ffmpeg subprocess, the terminal gets messed up - typed characters are invisible ! The input still works in that commands can be executed, but keyboard input is not echoed to the terminal.

    



    Issuing shell command reset puts everything back to normal (or !reset from within ipython), so a workaround the issue is calling os.system('reset') inside the script.

    



    Other things I've tried : import curses; curses.initscr() before spawning the subprocess and curses.endwin() after termination, which worked somewhat but broke other stuff. Another possibly related issue is that after spawning the child process, the interactive terminal becomes laggy and sometimes fails to capture typed characters.

    



    The code to spawn the process looks like :

    



    with open('/tmp/stdout.log', 'w') as o:
    with open('/tmp/stderr.log', 'w') as e:
        proc = subprocess.Popen([args], stdout=o, stderr=e)


    



    And later to stop it :

    



    proc.terminate()
proc.communicate()


    



    What could be going wrong here ?

    


  • Terminal text becomes invisible after terminating subprocess

    21 novembre 2016, par wim

    After terminating an ffmpeg subprocess, the terminal gets messed up - typed characters are invisible ! The input still works in that commands can be executed, but keyboard input is not echoed to the terminal.

    Issuing shell command reset puts everything back to normal (or !reset from within ipython), so a workaround the issue is calling os.system('reset') inside the script.

    Other things I’ve tried : import curses; curses.initscr() before spawning the subprocess and curses.endwin() after termination, which worked somewhat but broke other stuff. Another possibly related issue is that after spawning the child process, the interactive terminal becomes laggy and sometimes fails to capture typed characters.

    The code to spawn the process looks like :

    with open('/tmp/stdout.log', 'w') as o:
       with open('/tmp/stderr.log', 'w') as e:
           proc = subprocess.Popen([args], stdout=o, stderr=e)

    And later to stop it :

    proc.terminate()
    proc.communicate()

    What could be going wrong here ?

  • Catch refreshing Terminal output in Python

    26 janvier 2019, par Aaroknight

    I have written a python script which converts movies with ffmpeg from anything to h265 (hevc). Works fine so far now and I get catch a terminal output (How can I get terminal output in python ? - Stackoverflow). I already tried this solution as well : Catching Terminal Output in Python - Stackoverflow But none of them is really what I need.

    Current code is following :

    def convert(path):
    if os.path.getsize(path) < 500000000:
       pass
    name = path.split("/")[-1]
    os.mkdir(path.replace(name, "hevc/"))
    outvid = path.replace(name, "hevc/" + name)
    cmd = ["ffmpeg", "-hwaccel", "cuvid", "-i", path, "-c:v", "hevc_nvenc", "-preset",
          "slow", "-rc", "vbr_hq", "-max_muxing_queue_size", "1000", "-map", "0", "-map_metadata",
          "0", "-map_chapters", "0", "-c:a", "copy", "-c:s", "copy", outvid]

    process = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
    print(process)

    While ffmpeg is converting something, the bottom terminal line usually actualizes itself every second showing fps, time, etc. See screenshot bottom line.

    Normal ffmpeg output

    In Python I just get a static output :

    Python IDE output

    So do you guys have any idea how to catch that refreshing output ?