Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (81)

  • 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" ;

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (3406)

  • Revision 3239e22a42 : Conditionally use recursive transform block partition search If the frame heade

    3 juin 2015, par Jingning Han

    Changed Paths :
     Modify /vp9/encoder/vp9_rdopt.c



    Conditionally use recursive transform block partition search

    If the frame header sets to use fixed transform block size, use
    the univariate transform block partition search flow.

    Change-Id : Ic422ecb6565642cd8ddb96dc67a37109ef3ce90f

  • Extracting frames from image in C#

    12 août 2015, par Atom Scott

    I`ve seen some stackover flow on how to do this but i cant get it to work for myself in visual studio.

    What is wrong with code ? I have downloaded FFMpeg and im using it as reference. yet, I get the error

    "Could not load file or assembly Aforge.Video.FFMPEG. dll or one of
    its dependencies"

    Here is the code.

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using AForge;
    using AForge.Video;
    using AForge.Video.FFMPEG;

    namespace WindowsFormsApplication6
    {
    public partial class Form1 : Form
    {
       public Form1()
       {
           InitializeComponent();
       }

       private void button1_Click(object sender, EventArgs e)
       {
           // create instance of video reader
           VideoFileReader reader = new VideoFileReader( );
           // open video file
           reader.Open( "test.avi" );
           // read 100 video frames out of it
           for ( int i = 0; i < 100; i++ )
           {
           Bitmap videoFrame = reader.ReadVideoFrame( );

           videoFrame.Save(i + ".bmp");

           // dispose the frame when it is no longer required
           videoFrame.Dispose( );
           }
           reader.Close( );
       }
    }
    }

    The program stop when i click the button and comes with an error.

  • Run PHP exec() asynchronously, but check for completion ?

    1er septembre 2015, par PeregrineStudios

    I’m coding up a website back-end that will include user-uploaded video. In order to ensure maximum accessibility, I’m compressing the uploaded videos and re-saving them as .mp4 and .webm format to cover all browsers (or as many as possible anyway). To do this, I’m running an avconv command in the PHP exec() function.

    I don’t want to make the user wait for the script to finish before the page loads, so I’m running the code asynchronously. My code so far is below.

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 > /dev/null 2>/dev/null &"');
    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');

    In addition to running the exec functions, I also save the video to a database and send the user an email thanking them for uploading their video.

    Here’s the rub : I want the server to WAIT until the video conversion is finished, and THEN add it to the database and send the user an email. Basically, the program flow would be :

    User uploads video.
    Video is placed in a temp folder.
    User is taken to a thank you page indicating their video will be up shortly.
    The server executes two avconv commands to convert and compress the video for web use.
    Once BOTH conversions are finished, the video info is added to a MySQL database, an email is sent to the user, and the original uploaded video is deleted.

    It may just be my ignorance of the command line (in fact it almost definitely is), but how could I ’queue up’ these commands ? First do both conversions, then call a PHP script to add to the database, then delete the original video, all while being asynchronous with the original PHP script ?

    EDIT : I’ve tried queuing them up with an ’&&’ operator, like below :

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 && avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');

    However, that seems to cancel out the fact that I’m running it asynchronously, since the page now seems to wait for the command to finish.