Recherche avancée

Médias (91)

Autres articles (15)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

Sur d’autres sites (3158)

  • Looping back and forth through frames with ffmpeg

    18 mai 2017, par sebb

    I have a set of ten PNG frames that I’d like to convert to a "boomerang style" mp4 file (i.e go from frame 1 to frame 10, then from 9 to 2). I’d like to find something similar to ImageMagick’s patrol cycle, but can’t figure out how to to it with ffmpeg.

    I thought it would be possible to do this using concat but :

    • I think it’s dirty
    • My command simply does not work :)

    Here’s my command so far :

    -framerate 5 -i "concat:01.png|02.png|03.png|04.png|05.png|06.png|07.png|08.png|09.png|10.png|09.png|08.png|07.png|06.png|05.png|04.png|03.png|02.png" -pix_fmt yuv420p output.mp4

    I get a video file but it just goes from 1 to 10 once.

    Here’s ffmpeg’s saying hello :

    ffmpeg version N-86098-g3fefaea Copyright (c) 2000-2017 the FFmpeg developers

     built with gcc 6.3.0 (GCC)

     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib

     libavutil      55. 63.100 / 55. 63.100

     libavcodec     57. 96.101 / 57. 96.101

     libavformat    57. 72.101 / 57. 72.101

     libavdevice    57.  7.100 / 57.  7.100

     libavfilter     6. 89.101 /  6. 89.101

     libswscale      4.  7.101 /  4.  7.101

     libswresample   2.  8.100 /  2.  8.100

     libpostproc    54.  6.100 / 54.  6.100

    Anyone has an idea ?

    Thanks !

  • C# FFmpeg Cannot process request because the process (11536) has exited

    30 avril 2016, par Martin Mazza Dawson

    I’m trying to convert an .ogg file to .mp3. I am following this link to do so : How to call ffmpeg.exe to convert audio files on Windows Azure ?

    I get the error message :

    Cannot process request because the process (11536) has exited.

    The ffmpeg.exe is in my root dir and it works when I convert the .ogg file to .mp3 in the command prompt, the ogg_path also has the correct bytes written to it when I check using debugging.
    Can anyone tell me what I am doing wrong please ?

       [HttpPost]
       public void ConvertFileToMp3(HttpPostedFileBase file)
       {
           string ogg_path = Server.MapPath("~/0477.ogg");
           string mp3_path = Server.MapPath("~/0477.mp3");

           using (var reader = new BinaryReader(file.InputStream))
           {
               System.IO.File.WriteAllBytes(ogg_path, reader.ReadBytes(file.ContentLength));
           }

           ProcessStartInfo psi = new ProcessStartInfo();
           psi.FileName = Server.MapPath("~/ffmpeg.exe");
           psi.Arguments = string.Format(@"-i ""{0}"" -y ""{1}""", ogg_path, mp3_path);
           psi.CreateNoWindow = true;
           psi.ErrorDialog = false;
           psi.UseShellExecute = false;
           psi.WindowStyle = ProcessWindowStyle.Hidden;
           psi.RedirectStandardOutput = true;
           psi.RedirectStandardInput = false;
           psi.RedirectStandardError = true;
           Process exeProcess = Process.Start(psi);

           try
           {
               exeProcess.PriorityClass = ProcessPriorityClass.High; //Fails here
               string outString = string.Empty;
               exeProcess.OutputDataReceived += (s, e) => {
                   outString += e.Data;
               };
               exeProcess.BeginOutputReadLine();
               string errString = exeProcess.StandardError.ReadToEnd();
               Trace.WriteLine(outString);
               Trace.TraceError(errString);
               exeProcess.WaitForExit();
           }
           catch (Exception e)
           {
               Trace.TraceError(e.Message);
           }

           //do other stuff with file, cut for brevity
       }
  • Generate a gif preview for a video file in-memory [on hold]

    25 avril 2016, par yeska

    I need to generate previews for video files sent by the user. I have found several questions about this but all the given solutions ( mostly using ffmpeg ) output the preview in a temp file. I have a memorystream ( a file read from azure storage ) and I need to generate a preview without touching the file system ( it’s a requirement for our project ), the preview can be for example a stream or a bit array.

    If there is a solution to get frames from a video, it’s suffisant too, I can manage to generate the gif from the frames.

    Is there any library which can be used to do this ?