Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (35)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

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

  • How do I automate running a batch command with 3 arguments in C# (MVC 3) ?

    13 janvier 2014, par kheya

    I have this command in process.bat file
    This file takes 3 arguments - %1 = input file path %2=output path %3=output file name

    This is how I call it in command prompt :

    C:apps\xyz\>process.bat "c:\files\uploads" "c:\files\output" "123"

    This creates 2 files : c :\files\output\abc.mp4 and c :\files\output\123.jpg using FFMPEG
    Things work fine if I run in command prompt.

    @echo off
    set w=480
    set h=320
    for "%%a" in ("%1\*.avi")
    do (ffmpeg -i "%%a" -c:v libx264 -movflags +faststart -preset slow -crf 22 -b:v 500k -vf "scale=480:trunc(ow/a/2)*2" -threads 0 -c:a libfdk_aac -b:a 128k "%2/%%~na.mp4" -vf select="not(mod(n\\,10))" -r 1 -t 1 -ss 3 -s sqcif "%2\%3.jpg")

    But I need to automate this process. So I want a scheduled job or some other process that will process file periodically or when there are files to process.

    I was thinking to create a C# Console app that will run every x minutes.
    Console app will pass the 3 parameter to the bat file and run it.
    But I am having nightmare with the console app. It just doesn't work.
    I never see the files generated nor any error given.

    What will be the best practice to implement this automation in windows os (C#, MVC 3) ?

    Here is what I tried that never worked :

    public static string RunBatchFile(string fullPathToBatch, string args) {            
       using (var proc = new Process {
           StartInfo =
           {                                        
               FileName = fullPathToBatch,
               Arguments = args,
               UseShellExecute = false,
               CreateNoWindow = true,
               RedirectStandardOutput = false,
               RedirectStandardError = false
           }
       })
       {
           try {
               proc.Start();
               proc.WaitForExit();                  
           } catch (Win32Exception e) {
               if (e.NativeErrorCode == 2)
                   return "File not found exception";
               else if (e.NativeErrorCode == 5)
                   return "Access Denied Exception";
           }
       }

       return "OK";
    }
  • Is ffmpeg running in CPU or GPU ?

    14 juillet 2016, par Raghul Selvaraj

    It has been shown in the link

    https://dri.freedesktop.org/wiki/IntelPerformanceTuning/

    Step 2 : CPU vs GPU

    that if the CPU % is more than 90 then the app is running in CPU.

    While configuring ffmpeg, I enabled opencl. ffmpeg configurations are,

    ffmpeg version ebe0fa0 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
     configuration: --enable-gpl --enable-libx264 --enable-opencl --enable-nonfree --enable-libmfx --enable-libmp3lame --enable-libaacplus
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    But while running ffmpeg using the command

    ffmpeg -i /home/M.mp4 -c:v h264 -preset:v faster /home/out.avi

    the CPU% has been more than 90 (375%).

    In case of ImageMagick, if I enable opencl while configuring, then the app will run in GPU, i.e., the CPU% will be less than 90. I noticed that.

    But in case of ffmpeg, it is GPU accelerated one. Then, Why the CPU% is more than 90% ? Is the ffmpeg running in CPU or GPU ? If it is not, how can I make it to run in GPU ?

  • Is ffmpeg running in CPU or GPU ?

    25 mai 2021, par Raghul Selvaraj

    It has been shown in the link

    



    


    https://dri.freedesktop.org/wiki/IntelPerformanceTuning/

    
 


    Step 2 : CPU vs GPU

    


    



    that if the CPU % is more than 90 then the app is running in CPU.

    



    While configuring ffmpeg, I enabled opencl. ffmpeg configurations are,

    



    ffmpeg version ebe0fa0 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-gpl --enable-libx264 --enable-opencl --enable-nonfree --enable-libmfx --enable-libmp3lame --enable-libaacplus
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


    



    But while running ffmpeg using the command

    



    ffmpeg -i /home/M.mp4 -c:v h264 -preset:v faster /home/out.avi

    



    the CPU% has been more than 90 (375%).

    



    In case of ImageMagick, if I enable opencl while configuring, then the app will run in GPU, i.e., the CPU% will be less than 90. I noticed that.

    



    But in case of ffmpeg, it is GPU accelerated one. Then, Why the CPU% is more than 90% ? Is the ffmpeg running in CPU or GPU ? If it is not, how can I make it to run in GPU ?