Recherche avancée

Médias (91)

Autres articles (104)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • 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 : (...)

  • 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 (12667)

  • 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;
       }
  • FFMPEG - 60 seconds from any part of video

    3 octobre 2014, par RussellHarrower

    What I want to do is create a 60 second FLV from a video that is uploaded.
    But I dont want to always get the first 60 seconds, if possible I would like to get the middle part of the video. but if not I want to get a random 60 second part of a video file and create the flv.

    I am using the following script to make the FLV file

    $call="/usr/bin/ffmpeg -i ".$_SESSION['video_to_convert']." -vcodec flv -f flv -r 20 -b ".$quality." -ab 128000 -ar ".$audio."  ".$converted_vids.$name.".flv -y 2> log/".$name.".txt";

    $convert = (popen($call." >/dev/null &", "r"));
    pclose($convert);

    So my question is, how do i get 60 seconds from a video randomly and convert it ?

  • Video encoding from a file which is being creating from another recorder program

    3 décembre 2011, par John Smith

    well, this is an extreme question. There's a screen capturer program which records video to a file (only this program can record from the target application !) and I would like to stream it with FFmpeg by UPD/TCP.
    The question is how to encode a file what is being writing. Sadly that program creates big file and not seems to be accept any way to change encodings.