Recherche avancée

Médias (1)

Mot : - Tags -/graphisme

Autres articles (64)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (8181)

  • streaming camera captured video to another location

    28 février 2012, par Fei Su

    I am using Kinect camera capture images and compress them to video and save the video into the disk(python opencv). How can I stream and display it at another location ? Because the video is made at real-time and I also need to display and stream it in real time.

  • How to set up incoming stream in wowza from a file ?

    5 avril 2016, par Ankit Dhanna

    The problem is simple.
    There is an mkv file that is updating in real time.Say it is a destination for live video streaming so its size continuously is being increased.

    Question - How can I set up this file as an incoming stream in wowza ?

    Is it even possible ?

    Can I configure this file in real time to any format that wowza supports ?

  • Generate benchmark table

    22 juillet 2020, par Saurabh P Bhandari

    I have generated benchmarks for comparing two approaches taken for scaling video files using ffmpeg tool.

    &#xA;

    The benchmarks are logged in this format :

    &#xA;

    x.mp4 Output_Resolution : 10 p&#xA;&#xA;Parameter1 : a&#xA;&#xA;Method : A&#xA;&#xA;real    0m5.788s&#xA;user    0m16.112s&#xA;sys     0m0.313s&#xA;&#xA;Method : B, ParameterB1 : b11&#xA;&#xA;ParameterB2 : b21&#xA;&#xA;real    0m6.637s&#xA;user    0m16.618s&#xA;sys     0m0.720s&#xA;&#xA;ParameterB2 : b22&#xA;&#xA;real    0m5.486s&#xA;user    0m17.570s&#xA;sys     0m0.568s&#xA;&#xA;ParameterB2 : b23&#xA;&#xA;real    0m5.232s&#xA;user    0m18.212s&#xA;sys     0m0.718s&#xA;&#xA;Method : B, ParameterB1 : b12&#xA;&#xA;ParameterB2 : b21&#xA;&#xA;real    0m6.398s&#xA;user    0m16.790s&#xA;sys     0m0.528s&#xA;&#xA;ParameterB2 : b22&#xA;&#xA;real    0m5.449s&#xA;user    0m17.229s&#xA;sys     0m0.533s&#xA;&#xA;ParameterB2 : b23&#xA;&#xA;real    0m5.275s&#xA;user    0m18.411s&#xA;sys     0m0.522s&#xA;&#xA;##################################################################################################################&#xA;&#xA;Parameter1 : b&#xA;&#xA;Method : A&#xA;&#xA;real    0m5.927s&#xA;user    0m16.451s&#xA;sys     0m0.308s&#xA;&#xA;Method : B, ParameterB1 : b11&#xA;&#xA;ParameterB2 : b21&#xA;&#xA;real    0m6.685s&#xA;user    0m17.044s&#xA;sys     0m0.597s&#xA;&#xA;ParameterB2 : b22&#xA;&#xA;real    0m5.942s&#xA;user    0m18.971s&#xA;sys     0m0.804s&#xA;&#xA;ParameterB2 : b23&#xA;&#xA;real    0m6.119s&#xA;user    0m20.869s&#xA;sys     0m0.792s&#xA;&#xA;.&#xA;.&#xA;.&#xA;&#xA;

    &#xA;

    There are two methods (A and B). Method A and B share Parameter1 which can take values a,b,c....&#xA;Method B has other parameters B1 and B2. ParameterB1 and ParameterB2 take values b11,b12,b13... and b21,b22,b23... respectively. A line separator (which consists of multiple #) is used to separate the measurements for different values of Parameter1.

    &#xA;

    I would like to view the benchmarks in tabular format.

    &#xA;

    &#x2B;--------&#x2B;---------------------------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;| Method |                                       | Parameter1 (a) | Parameter1 (b) | Parameter1 (c) |&#xA;&#x2B;--------&#x2B;---------------------------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|    A   |                   NA                  | 4.03s          | 3.23s          | 1.4s           |&#xA;&#x2B;--------&#x2B;-------------------&#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|    B   | ParameterB1 (b11) | ParameterB2 (b21) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b22) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b23) | .              |                |                |&#xA;|        &#x2B;-------------------&#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        | ParameterB1 (b12) | ParameterB2 (b21) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b22) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b23) | .              |                |                |&#xA;|        &#x2B;-------------------&#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        | ParameterB1 (b12) | ParameterB2 (b21) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b22) | .              |                |                |&#xA;|        |                   &#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;|        |                   | ParameterB2 (b23) | .              |                |                |&#xA;&#x2B;--------&#x2B;-------------------&#x2B;-------------------&#x2B;----------------&#x2B;----------------&#x2B;----------------&#x2B;&#xA;

    &#xA;

    The cell values consists of the real time values in seconds (real 0m6.119s).

    &#xA;

    How can I generate such a table using python ?

    &#xA;


    &#xA;

    I have written a "not-so-efficient" python script with the help from a previous answer from a similar question I asked a few months ago.

    &#xA;

    import pprint&#xA;&#xA;def gettime(x):&#xA;    m,s = map(float,x[:-1].split(&#x27;m&#x27;))&#xA;    return 60 * m &#x2B; s&#xA;&#xA;with open("log") as fp:&#xA;    lines = fp.read().splitlines()&#xA;&#xA;idx = 0&#xA;A = {}&#xA;B = {}&#xA;&#xA;while idx &lt; len(lines):&#xA;    if "Parameter1" in lines[idx]:&#xA;        Parameter1 = lines[idx].split(&#x27; &#x27;)[-1]&#xA;        temp1 = {}&#xA;        idx &#x2B;= 2&#xA;        if "A" in lines[idx]:&#xA;            idx &#x2B;= 2&#xA;            A[Parameter1] = gettime(lines[idx].split(&#x27;\t&#x27;)[-1])&#xA;            while idx &lt; len(lines):&#xA;                if "B" in lines[idx]:&#xA;                    ParameterB1 = lines[idx].split(&#x27; &#x27;)[-1]&#xA;                    temp2 = {}&#xA;                    idx &#x2B;= 1&#xA;                    while idx &lt; len(lines):&#xA;                        if "ParameterB2" in lines[idx]:&#xA;                            ParameterB2 = lines[idx].split(&#x27; &#x27;)[-1]&#xA;                            idx &#x2B;= 2&#xA;                            temp2[ParameterB2] = gettime(lines[idx].split(&#x27;\t&#x27;)[-1])&#xA;                        elif "#" in lines[idx] or "B" in lines[idx]:&#xA;                            break&#xA;                        idx &#x2B;= 1&#xA;                    temp1[ParameterB1] = temp2&#xA;                elif "#" in lines[idx]:&#xA;                    B[Parameter1] = temp1&#xA;                    break&#xA;                else:&#xA;                    idx &#x2B;= 1&#xA;    else:&#xA;        idx &#x2B;= 1&#xA;        &#xA;print("A")&#xA;print(A)&#xA;&#xA;pp = pprint.PrettyPrinter(sort_dicts = False, depth = 4)&#xA;print("B")&#xA;pp.pprint(B)&#xA;

    &#xA;

    This script parses the log and stores the measurements obtained for respective methods and parameters in a dictionary.

    &#xA;

    Example output from the script :

    &#xA;

    A&#xA;{&#x27;a&#x27;: 4.03, &#x27;b&#x27;: 3.23, &#x27;c&#x27;: 1.4}&#xA;B&#xA;{&#x27;a&#x27;: {&#x27;b21&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b22&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b23&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0}},&#xA; &#x27;b&#x27;: {&#x27;b21&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b22&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b23&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0}},&#xA; &#x27;c&#x27;: {&#x27;b21&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b22&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0},&#xA;       &#x27;b23&#x27;: {&#x27;b11&#x27;: 0.0, &#x27;b12&#x27;: 0.0, &#x27;b13&#x27;: 0.0}}}&#xA;

    &#xA;

    How can I print this in tabular format as described above ?

    &#xA;