Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (109)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (7934)

  • ffmpeg - Encoding Percentage Maths

    12 juillet 2012, par Jimbo

    I've written a whole system in PHP and bash on the server to convert and stream videos in HTML5 on my VPS. The conversion is done by ffmpeg in the background and the contents is output to block.txt.

    Having looked at the following posts :

    Can ffmpeg show a progress bar ?

    and

    ffmpeg video encoding progress bar

    amongst others, I can't find a working example.

    I have always struggled with the regexes and maths, and I need to grab the currently encoded progress as a percentage.

    The first post I linked above gives :

    $log = @file_get_contents('block.txt');

    preg_match("/Duration:([^,]+)/", $log, $matches);
    list($hours,$minutes,$seconds,$mili) = split(":",$matches[1]);
    $seconds = (($hours * 3600) + ($minutes * 60) + $seconds);
    $seconds = round($seconds);

    $page = join("",file("$txt"));
    $kw = explode("time=", $page);
    $last = array_pop($kw);
    $values = explode(' ', $last);
    $curTime = round($values[0]);
    $percent_extracted = round((($curTime * 100)/($seconds)));

    echo $percent_extracted;

    The $percent_extracted variable echoes zero, and as maths is not my strong point, I really don't know how to progress here.

    Here's one line from the ffmpeg output from block.txt (if it's helpful)

    time=00:19:25.16 bitrate= 823.0kbits/s frame=27963 fps= 7 q=0.0 size=
    117085kB time=00:19:25.33 bitrate= 823.1kbits/s frame=27967 fps= 7
    q=0.0 size= 117085kB time=00:19:25.49 bitrate= 823.0kbits/s
    frame=27971 fps= 7 q=0.0 size= 117126kB

    Please help me output this percentage, once done I can create my own progress bar. Thanks.

  • Using FFMPEG in C#

    26 juin 2012, par k_1404

    I am trying to strip audio from a video file using FFMPEG in C#. I know what the code is for doing such an operation (as far as I know) but I am not 100% sure where I need to keep the ffmpe.exe file in my project and how to access it.
    My code so far is as follows :

    public void stripAudioTest(string videoFilename, ExportProgressWindow callback, string destinationAudioFile)
       {
           string FFMPEG_PATH = "*************"; //not sure what to put here??????



           string strParam = " -i " + videoFileName + " -ab 160k -ar 44100 -f wav -vn " +   destinationAudioFile;
           process(FFMPEG_PATH, strParam);
           callback.Increment(100);


       }

       public void process(string Path_FFMPEG, string strParam)
       {
           try
           {
               Process ffmpeg = new Process();

               ffmpeg.StartInfo.UseShellExecute = false;
               ffmpeg.StartInfo.RedirectStandardOutput = true;
               ffmpeg.StartInfo.FileName = Path_FFMPEG;
               ffmpeg.StartInfo.Arguments = strParam;

               ffmpeg.Start();

               ffmpeg.WaitForExit();

           }
           catch (Exception ex)
           {
               MessageBox.Show(ex.Message);
           }
       }`

    If anyone has any ideas please let me know. Anything helps !

  • Android : How to record the mobile screen without using USB cable ?

    21 juin 2012, par Rajesh

    I want to build an application which would record my screen activities and would store them in a video file.

    1) I need to take the screenshots of my screen movements at periodic intervals and store them on the SD card.

    2) How can I create the video from the images which are already available on my SD card. I have tried with the FFMPEG. But I have encountered a few problems I don't know how to solve. The truth is I don't know the program to convert them.

    3 ) Is it possible to show the picture in my camera ?? That means if a user opens the camera from my app, it should show the pictures which are available on the SD card. If so, please advice me.

    EDIT : I have made a sample which can capable of taking 7 screen shots per second.

    Thanks,
    Rajesh .