Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (51)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8587)

  • ffmpeg.exe freezes

    31 octobre 2017, par Ayhan Dorman

    I’m using Asp.Net C# Framework 4 and currently developing a video conversion application. I’m also using ffmpeg to convert from all uploaded formats to flv. I’m first converting uploaded file to mpg and after to flv due to problems I encountered while trying conversion directly to flv from mp4 sometimes. But ffmpeg freezes as soon as it’s done with conversion process to mpg file. When I run task manager and check the processes list, it just stands there using no CPU resource. When I end the ffmpeg process directly from task manager, other process take place which converts from mpg to flv and preview file (jpg) and works smoothly. Due to freezing of first process, the second process cannot start when I try to upload from my web page’s file upload form. I appreciate any response from now. Here is my code :

           string duration = "00:00:00";

           //converting video
           Process ffmpeg;
           ffmpeg = new Process();

           // convert to mpg 1st
           ffmpeg.StartInfo.Arguments = " -i \"" + Server.MapPath("static/user/vid/") + videolink + "\" -f mpeg -b 300k -ac 2 -ab 128k -ar 44K \"" + Server.MapPath("static/user/vid/") + mpglink + "\"";
           ffmpeg.StartInfo.FileName = Page.MapPath("bin/ffmpeg.exe");
           ffmpeg.StartInfo.CreateNoWindow = true;
           ffmpeg.StartInfo.UseShellExecute = false;
           ffmpeg.StartInfo.RedirectStandardOutput = true;
           ffmpeg.StartInfo.RedirectStandardError = true;
           ffmpeg.Start();

           ffmpeg.WaitForExit();
           ffmpeg.Close();


           // mpg 2 flv
           ffmpeg = new Process();
           ffmpeg.StartInfo.Arguments = " -i \"" + Server.MapPath("static/user/vid/") + mpglink + "\" -f flv -s 624x352 \"" + Server.MapPath("static/user/vid/") + flvlink + "\"";
           ffmpeg.StartInfo.FileName = Page.MapPath("bin/ffmpeg.exe");
           ffmpeg.StartInfo.CreateNoWindow = true;
           ffmpeg.StartInfo.UseShellExecute = false;
           ffmpeg.StartInfo.RedirectStandardOutput = true;
           ffmpeg.StartInfo.RedirectStandardError = true;
           ffmpeg.Start();

           ffmpeg.BeginOutputReadLine();
           string error = ffmpeg.StandardError.ReadToEnd();
           ffmpeg.WaitForExit();

           try
           {
               duration = error.Substring(error.IndexOf("Duration: ") + 10, 8);
           }
           catch
           {
           }

           if (ffmpeg.ExitCode != 0)
           {
               ltrUpload.Text = "<div class="\&quot;resultbox-negative\&quot;">Problem occured during upload process. Error code: " + error + "<br />" + "</div>";
               return;
           }
           ffmpeg.Close();


           // generate preview image
           ffmpeg.StartInfo.Arguments = " -i \"" + Server.MapPath("static/user/vid/") + flvlink + "\" -s 624x352 -ss 00:00:03 -an -vframes 1 -f image2 -vcodec mjpeg \"" + Server.MapPath("static/user/vid/") + flvlink.Replace(".flv", ".jpg") + "\"";
           ffmpeg.StartInfo.FileName = Page.MapPath("bin/ffmpeg.exe");
           ffmpeg.StartInfo.CreateNoWindow = true;
           ffmpeg.StartInfo.UseShellExecute = false;
           ffmpeg.StartInfo.RedirectStandardOutput = true;
           ffmpeg.StartInfo.RedirectStandardError = true;
           ffmpeg.Start();
           ffmpeg.WaitForExit();
           ffmpeg.Close();

           // deleting original file and mpg
           FileInfo fi = new FileInfo(Server.MapPath("static/user/vid/") + videolink);
           if (fi.Exists) fi.Delete();
           fi = new FileInfo(Server.MapPath("static/user/vid/") + mpglink);
           if (fi.Exists) fi.Delete();
  • How to import and use FFmpegInteropX.FFmpegUWP ?

    14 janvier, par Boris

    I am writing a WinUI3 app. I need it to play a .mkv video file using MediaPlayerElement control. Out of box, .mkv file types are not supported. So I came upon a package FFmpegInteropX.FFmpegUWP (current v5.1.100) and installed it to the solution via Visual Studio NuGet Package Manager. The installation went fine and the package is definitely part of the project :

    &#xA;

    <packagereference include="FFmpegInteropX.FFmpegUWP" version="5.1.100"></packagereference>

    &#xA;

    The problem I have is that when I type using FFmpegInteropX; it is not recognized and I cannot use it. I've noticed there is also a FFmpegInteropX package (so without the ".FFmpegUWP" part) and I tried installing that one too, as I was trying to make the using statement work. However, it appears that that package is not intended for WinUI3 projects and NuGet removed it.

    &#xA;

    Now, I am clueless on how to use the FFmpegInteropX.FFmpegUWP in the project. Could anyone please explain why I might be experiencing this problem ?

    &#xA;

  • libvpx 0.9.1 and FFmpeg 0.6

    18 juin 2010, par Multimedia Mike — VP8

    Great news : Hot on the heels of FFmpeg’s 0.6 release, the WebM project released version 0.9.1 of their libvpx. I can finally obsolete my last set of instructions on getting FFmpeg-svn working with libvpx 0.9.

    Building libvpx 0.9.1
    Do this to build libvpx 0.9.1 on Unix-like systems :

    libvpx’s build system has been firmed up a bit since version 0.9. It’s now smart enough to install when said target is invoked and it also builds the assembly language optimizations. Be advised that on 32- and 64-bit x86 machines, Yasm must be present (install either from source or through your package manager).

    Building FFmpeg 0.6
    To build the newly-released FFmpeg 0.6 :

    • Install Vorbis through your package manager if you care to encode WebM files with audio ; e.g., ’libvorbis-dev’ is the package you want on Ubuntu
    • Download FFmpeg 0.6 from the project’s download page
    • Configure FFmpeg with at least these options : ./configure --enable-libvpx --enable-libvorbis --enable-pthreads ; the final link step still seems to fail on Linux if the pthreads option is disabled
    • ’make’

    Verifying
    Check this out :

    $ ./ffmpeg -formats 2> /dev/null | grep WebM
      E webm            WebM file format
    

    $ ./ffmpeg -codecs 2> /dev/null | grep libvpx
    DEV libvpx libvpx VP8

    That means that this FFmpeg binary can mux a WebM file and can both decode and encode VP8 video via libvpx. If you’re wondering why the WebM format does not list a ’D’ indicating the ability to demux a WebM file, that’s because demuxing WebM is handled by the general Matroska demuxer.

    Doing Work
    Encode a WebM file :

    ffmpeg -i &lt;input_file&gt; &lt;output_file.webm&gt;

    FFmpeg just does the right thing when it seems that .webm extension on the output file. It’s almost magical.

    For instant gratification that the encoded file is valid, you can view it immediately using ’ffplay’, if that binary was built (done by default if the right support libraries are present). If ffplay is not present, you can always execute this command line to see some decode operation :

    ffmpeg -i &lt;output_file.webm&gt; -f framecrc -