Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (6)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (4908)

  • FFMpeg extremely slow - when called from asp.net

    9 juillet 2013, par Daveo

    I have a C# .NET website hosted on WIN2003 IIS6. This calls a .exe I have made (also in .net) using System.Diagnostics.Process which in turn calls a .bat script to convert a video into web formats (h264/MP4 and WEBM)

    ::Make MP4 ffmpeg.exe -i "%1" -y -vcodec libx264 -pix_fmt yuv420p
    -vprofile high -b:v 600k -maxrate 600k -bufsize 1200k -s 480x320 -threads 0 -acodec libvo_aacenc -b:a 128k "%2\video.mp4"

    ::Make WemM (VP8 / Vorbis) ffmpeg.exe -i "%1" -y -vcodec libvpx -b:v
    600k -maxrate 600k -bufsize 1200k -s 480x320 -threads 3 -acodec
    libvorbis -f webm "%2\video.webm"

    When I test it it seems to work fine a 70Mb input file will take about 4 minute to convert to mp4 then 6 minutes to convert to webm. Which is fine ! However whenever the customer test it the ffmpeg encoding taking HOURS (5 - 10 hours for one video) .

    When I look at windows task manager it shows a 2-3 instances of ffmpeg using cpu. When I refresh the output folder I can see the file increasing at 1Kb / second very slow. Why could this be happening ?

    my .net code

    private  bool Convert(string inputFile, string outputFolder)
           {
               string exePath = ConfigurationManager.AppSettings["BatchFile"];
               ProcessStartInfo startInfo = new ProcessStartInfo(exePath);

               startInfo.Arguments = string.Format("{0} {1}", inputFile, outputFolder);
               startInfo.FileName = exePath;
               startInfo.UseShellExecute = true;
               startInfo.CreateNoWindow = true;


               using (Process process = new Process())
               {
                   process.StartInfo = startInfo;

                   try
                   {
                       bool success;
                       int waitTimeInMinutes = int.Parse(ConfigurationManager.AppSettings["VideoConversionTimeout"]);
                       process.Start();
                       process.WaitForExit(1000 * 60 * waitTimeInMinutes); // Give up after Xmins

                       success = (process.ExitCode == 0);

                       return success;

                   }
                   catch (Exception e)
                   {
                       log.ErrorException("Main exception", e);
                       return false;
                   }
               }
           }
  • How to detect Audio or Video or Both exist in converted file

    28 juillet 2016, par Khaja Hussain

    I am trying to convert mp4 or 3gp video files into Flash (flv) format (using Perl script), using following (mencoder) command :

    mencoder test.mp4 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=1000:mbd=2 -fps 20.80 -ofps 20.80 -oac mp3lame -lameopts abr:br=32 -srate 22050 -o test.flv

    It works fine, but some files which comes as attachments from mobile phone has problem, the converted FLV file has only audio.

    I also used ffmpeg command as follows :

    ffmpeg -i test.mp4 -ar 22050 -acodec libmp3lame -ab 32K -r 25 -vcodec flv test.flv

    This ffmpeg command helps to convert to flv, which is failed by mencoder.

    I am thinking some solution like, need to check whether converted flv has audio and video then will take action depends on it. Could you help me to solve this issue ?

    Here is some more info (log) :

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6b9a3a0]multiple edit list entries, a/v desync might occur, patch welcome
    ** MUXER_LAVF *************************************
    REMEMBER : MEncoder’s libavformat muxing is presently broken and can generate
    INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong !


    Unsupported PixelFormat 61
    Unsupported PixelFormat 53
    Unsupported PixelFormat 81
    [flv @ 0xb6b9a3a0]Codec for stream 0 does not use global headers but container format requires global headers
    [flv @ 0xb6b9a3a0]Codec for stream 1 does not use global headers but container format requires global headers
    [flv @ 0xb6b9a3a0]pts < dts in stream 0
    Error while writing frame.

    [flv @ 0xb6b9a3a0]pts < dts in stream 0
    Error while writing frame.

    [flv @ 0xb6b9a3a0]pts < dts in stream 0
    Error while writing frame.

    [flv @ 0xb6b9a3a0]pts < dts in stream 0
    Error while writing frame.

    [flv @ 0xb6b9a3a0]pts < dts in stream 0
    Error while writing frame.

    Skipping frame !

    .........................

  • ffmpeg split avi into frames with known frame rate

    31 mai 2016, par Myx

    I posted this as comments under this related thread. However, they seem to have gone unnoticed =(

    I’ve used

    ffmpeg -i myfile.avi -f image2 image-%05d.bmp

    to split myfile.avi into frames stored as .bmp files. It seemed to work except not quite. When recording my video, I recorded at a rate of 1000fps and the video turned out to be 2min29sec long. If my math is correct, that should amount to a total of 149,000 frames for the entire video. However, when I ran

    ffmpeg -i myfile.avi -f image2 image-%05d.bmp

    I only obtained 4472 files. How can I get the original 149k frames ?

    I also tried to convert the frame rate of my original AVI to 1000fps by doing

    ffmpeg -i myfile.avi -r 1000 otherfile.avi

    but this didn’t seem to fix my concern.