Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (68)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5805)

  • Revision 6315 : La limite est automatiquement fixée à 20 si pas présente dans les ...

    7 février 2012, par kent1 — Log

    La limite est automatiquement fixée à 20 si pas présente dans les arguments $what passe en array partout. Le tri, s’il est un string, est traité en amont et transformé en array On incrémente en 0.2.7 On passe en test

  • Why does ffmpeg never finish when converting a video from my web app ?

    30 septembre 2011, par Mike

    I am trying to convert a video when the user submits a form. It seems to convert ok but the file "is being used by another proccess" when I try to do anything with it. It looks like ffmpeg.exe never exits. My code is below is there anything I should be doing different to allow the process to release the file ? If I run this manually it exits fine.

    internal class ConversionUtility : Utility
    {
       public void Convert(string videoFileName)
       {
           var video = new VideoFile(videoFileName);

           if (!video.infoGathered)
               GetVideoInfo(video);

           var Params = string.Format("-y -i \"{0}\" -coder ac -me_method full -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 20 \"{1}\"", video.Path, Path.ChangeExtension(videoFileName,".mp4"));
           //var Params = string.Format("-y -i \"{0}\" -acodec libfaac -ar 44100 -ab 96k -coder ac -me_method full -me_range 16 -subq 5 -sc_threshold 40 -vcodec libx264 -s 1280x544 -b 1600k -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -i_qfactor 0.71 -keyint_min 25 -b_strategy 1 -g 250 -r 20 c:\\output3.mp4", video.Path, videoFileName);
           //var Params = String.Format(" {0} \"{1}\"",this.FFmpegLocation, video.Path);

           var threadStart = new ParameterizedThreadStart(del => RunProcess(Params));
           var thread = new Thread(threadStart);
           thread.Start();            
           //RunProcess(Params);
       }
    }

    internal class Utility
    {
       public string FFmpegLocation { get; set; }        
       private string WorkingPath { get { return Path.GetDirectoryName(FFmpegLocation); } }

       protected string RunProcess(string Parameters)
       {
           //create a process info
           var oInfo = new ProcessStartInfo(this.FFmpegLocation, Parameters)
           {
               UseShellExecute = false,
               CreateNoWindow = true,
               RedirectStandardOutput = true,
               RedirectStandardError = true
           };

           //Create the output and streamreader to get the output
           string output = null; StreamReader srOutput = null;

           //try the process
           try
           {
               //run the process
               Process proc = System.Diagnostics.Process.Start(oInfo);

               proc.WaitForExit();
               //if (!proc.WaitForExit(10000))
               //    proc.Kill();


               //get the output
               srOutput = proc.StandardError;

               //now put it in a string
               output = srOutput.ReadToEnd();

               proc.Close();
           }
           catch (Exception)
           {
               output = string.Empty;
           }
           finally
           {
               //now, if we succeded, close out the streamreader
               if (srOutput != null)
               {
                   srOutput.Close();
                   srOutput.Dispose();
               }
           }
           return output;
       }
  • -vf unrecognized with php exec() function

    29 septembre 2011, par Rajat

    I am using php to create a video with fade effects. But exec() function gives following output :

    array(19)
    [0]=>
    string(67) "FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers"

    [1]=>
    string(74) " built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)"

    [2]=>
    string(649) " configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —mandir=/usr/share/man —incdir=/usr/include —disable-avisynth —extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' —enable-avfilter —enable-avfilter-lavf —enable-libdirac —enable-libfaac —enable-libfaad —enable-libfaadbin —enable-libgsm —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libx264 —enable-gpl —enable-nonfree —enable-postproc —enable-pthreads —enable-shared —enable-swscale —enable-vdpau —enable-version3 —enable-x11grab"

    [3]=>
    string(35) " libavutil 50.15. 1 / 50.15. 1"

    [4]=>
    string(35) " libavcodec 52.72. 2 / 52.72. 2"

    [5]=>
    string(35) " libavformat 52.64. 2 / 52.64. 2"

    [6]=>
    string(35) " libavdevice 52. 2. 0 / 52. 2. 0"

    [7]=>
    string(35) " libavfilter 1.19. 0 / 1.19. 0"

    [8]=>
    string(35) " libswscale 0.11. 0 / 0.11. 0"

    [9]=>
    string(35) " libpostproc 51. 2. 0 / 51. 2. 0"

    [10]=>
    string(122) "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/slideshow/frame1.mp4' :"

    [11]=>
    string(11) " Metadata :"

    [12]=>
    string(26) " major_brand : isom"

    [13]=>
    string(25) " minor_version : 512"

    [14]=>
    string(35) " compatible_brands : isomiso2mp41"

    [15]=>
    string(33) " encoder : Lavf52.64.2"

    [16]=>
    string(58) " Duration : 00:00:05.00, start : 0.000000, bitrate : 31 kb/s"

    [17]=>
    string(107) " Stream #0.0(und) : Video : mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29
    kb/s, 1 fps, 1 tbr, 1 tbn, 1 tbc"

    [18]=>
    string(24) "Unrecognized option 'vf'"

    Why it is giving unrecognized option 'vf' while it works fine when run directly on server.My command is : "ffmpeg -i /usr/slideshow/frame1.mp4 -vf 'fade=out:0:5' /usr/slideshow/fade1.mp4"

    I am executing it with exec() function. Why the error is coming and what should i use to apply filter to my input video. I am working on CentOS server.

    Please guide me...