Recherche avancée

Médias (91)

Autres articles (10)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4576)

  • Piping to FFMPEG with Python subprocess freezes

    5 décembre 2016, par Simon Streicher

    With the following code, I am able to pipe frames of a video to FFMPEG using Python, Numpy and the FFMPEG binaries :

    from __future__ import print_function
    import subprocess
    import numpy as np
    import sys

    npshape = [480, 480]
    cmd_out = ['ffmpeg',
              '-y', # (optional) overwrite output file if it exists
              '-f', 'rawvideo',
              '-vcodec','rawvideo',
              '-s', '%dx%d'%(npshape[1], npshape[0]), # size of one frame
              '-pix_fmt', 'rgb24',
              '-r', '24', # frames per second
              '-i', '-', # The input comes from a pipe
              '-an', # Tells FFMPEG not to expect any audio
              '-vcodec', 'mpeg4',
              'output.mp4']

    fout = subprocess.Popen(cmd_out, stdin=subprocess.PIPE, stderr=subprocess.PIPE).stdin

    for i in range(24*40):
       if i%(24)==0:
           print('%d'%(i/24), end=' ')
           sys.stdout.flush()

       fout.write((np.random.random(npshape[0]*npshape[1]*3)*128).astype('uint8').tostring())

    fout.close()

    This works fine if I write anything less than 37 seconds worth of frames, but if I try to write anything more, the code just hangs. What is the underlying cause for this behaviour ? How can I fix it ?

  • opencv3.1 python VideoCapture black screen

    3 mai 2017, par alex

    i’m trying to use opencv3.1 with python3.5
    following this official)tutorial
    http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html#display-video

    the camera led is "on" but the window doesn’t show any image (black)

    my current enviroment :
    - windows 10
    - python 3.5.2 (32bit)
    - numpy 1.12.0b1 (32bit) binaries downloaded from : http://www.lfd.uci.edu/ gohlke/pythonlibs/
    - opencv 3.1.0 (32bit) binaries downloaded from : http://www.lfd.uci.edu/ gohlke/pythonlibs/

    they seem installed correctly !

    as the tutorial says :

    Note Make sure proper versions of ffmpeg or gstreamer is installed. Sometimes, it is a headache to work with Video Capture mostly due to wrong installation of ffmpeg/gstreamer.

    i’ve no ffmpeg installed !!! so i suppose this is the cause of my problem
    so the questions are :
    1) which version of ffmpeg is needed ?
    2) how install ffmpeg on windows ? it seems a setup doesn’t exist(there is a binary section with a zip file ? how to use it after unzipped ?)
    3) is possible to see(in some way) if the opencv binaries(that i’ve downloaded) were compiled with ffmpeg support(flag ?)

    PS : i’ve tried to add the ffmpeg folder path the the PATH enviroment variable but nothing change

  • Discord Python - ffmpeg not Found

    22 octobre 2020, par IBgreat

    So I am making a music bot for Discord and I need ffmpeg for it. So I have Installed it and Placed in C : and also added to the Environment Variables. But whenever I run the Code I get the Error

    


    discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: ffmpeg was not found.


    


    I do not have Any Idea why this doesn't Work.

    


    https://prnt.sc/v4in62 <— This is How I add Environment Variables

    &#xA;