Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (89)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

Sur d’autres sites (14874)

  • ffmpeg not working on Asp.net MVC

    9 avril 2015, par Faisal Mq

    I am using ffmpeg to extract thumbnails from video files and also to get their durations.
    The code works absolutely fine in Console Application, but when I use it on Asp.Net MVC 3, it does not work at all.

    I have placed ffmpeg.exe file on my application’s root folder and set its property "Copy to Output Directory" to "Copy Always"

    ffmpeg file gets placed in my application’s Bin folder after that I compile my project but it is not doing anything. It does not give me any error but also does not giving me my intended results, which are otherwise working absolutely fine in a Console application.

    [NOTE] In QuickWatch when I see the value for "output" on statement :

    string output = SROutput.ReadToEnd();

    ffmpeg shows me following output but this output does not include Duration info like it does in Console application.

    ffmpeg version N-69422-gf5722ba Copyright (c) 2000-2015 the FFmpeg developers
     built on Jan 30 2015 22:13:10 with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --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-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 18.100 / 54. 18.100
     libavcodec     56. 21.101 / 56. 21.101
     libavformat    56. 19.100 / 56. 19.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5.  9.102 /  5.  9.102
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100

    I am pasting here the code that I am using just to get the duration of a media file using ffmpeg.

    private static TimeSpan GetVideoDurationByFFMPEG(string ffmpegPath, string filepath)
           {
               string param = string.Format("-i \"{0}\"", filepath);

               System.Text.RegularExpressions.Regex re = null;
               System.Text.RegularExpressions.Match m = null;
               TimeSpan Duration = new TimeSpan();

               //Get ready with ProcessStartInfo
               ProcessStartInfo oInfo = new ProcessStartInfo(ffmpegPath, param);
               oInfo.CreateNoWindow = true;

               //ffMPEG uses StandardError for its output.
               oInfo.RedirectStandardError = true;
               oInfo.WindowStyle = ProcessWindowStyle.Hidden;
               oInfo.UseShellExecute = false;

               // Lets start the process

               Process mProcess = Process.Start(oInfo);

               // Divert output
               StreamReader SROutput = mProcess.StandardError;

               // Read all
               string output = SROutput.ReadToEnd();

               //get duration

               re = new System.Text.RegularExpressions.Regex("[D|d]uration:.((\\d|:|\\.)*)");
               m = re.Match(output);

               if (m.Success)
               {
                   //Means the output has cantained the string "Duration"
                   string temp = m.Groups[1].Value;
                   string[] timepieces = temp.Split(new char[] { ':', '.' });
                   if (timepieces.Length == 4)
                   {

                       // Store duration
                       Duration = new TimeSpan(0, Convert.ToInt16(timepieces[0]), Convert.ToInt16(timepieces[1]), Convert.ToInt16(timepieces[2]), Convert.ToInt16(timepieces[3]));
                   }
               }

               mProcess.Close();

               return Duration;
           }

    Please someone guide me where I am getting wrong.

  • Error in ffmpeg conversion

    9 avril 2015, par Adam Mo.

    I have a VPS 1G RAM with CentOS 6 i386 minimal installed and installed ffmpeg by ffmpeginstaller.com to setup clipbucket 2.7 in the VPS.
    when I test the ffmpeg by this command :

    wget "http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_surround.avi"
    ffmpeg -i big_buck_bunny_720p_surround.avi -vcodec libx264 big_buck_bunny_720p_surround-H264.avi

    by following this tutorial I get error
    the output :

    ffmpeg version N-71343-g32e06c4-syslint Copyright (c) 2000-2015 the FFmpeg     developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
     configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-    I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-    version3 --extra-version=syslint
     libavutil      54. 22.101 / 54. 22.101
     libavcodec     56. 34.100 / 56. 34.100
     libavformat    56. 30.100 / 56. 30.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 13.101 /  5. 13.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from 'big_buck_bunny_720p_surround.avi':
     Metadata:
       encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
       JUNK            :
     Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p,     1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : BBB-Master
    [libx264 @ 0x9360de0] using SAR=1/1
    [libx264 @ 0x9360de0] using cpu capabilities: none!
    x264 [error]: malloc of size 5258784 failed
    Output #0, avi, to 'big_buck_bunny_720p_surround-H264.avi':
     Metadata:
       encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
       JUNK            :
       Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 24 fps
       Metadata:
         encoder         : Lavc56.34.100 libx264
       Stream #0:1: Audio: mp3, 0 channels, 128 kb/s
       Metadata:
         title           : BBB-Master
         encoder         : Lavc56.34.100 libmp3lame
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    I don’t know what the problem, can any one help me ?

  • Error in ffmpeg conversion

    9 avril 2015, par Adam Mo.

    I have a VPS 1G RAM with CentOS 6 i386 minimal installed and installed ffmpeg by ffmpeginstaller.com to setup clipbucket 2.7 in the VPS.
    when I test the ffmpeg by this command :

    wget "http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_surround.avi"
    ffmpeg -i big_buck_bunny_720p_surround.avi -vcodec libx264 big_buck_bunny_720p_surround-H264.avi

    by following this tutorial I get error
    the output :

    ffmpeg version N-71343-g32e06c4-syslint Copyright (c) 2000-2015 the FFmpeg     developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
     configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-    I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-    version3 --extra-version=syslint
     libavutil      54. 22.101 / 54. 22.101
     libavcodec     56. 34.100 / 56. 34.100
     libavformat    56. 30.100 / 56. 30.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 13.101 /  5. 13.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from 'big_buck_bunny_720p_surround.avi':
     Metadata:
       encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
       JUNK            :
     Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p,     1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : BBB-Master
    [libx264 @ 0x9360de0] using SAR=1/1
    [libx264 @ 0x9360de0] using cpu capabilities: none!
    x264 [error]: malloc of size 5258784 failed
    Output #0, avi, to 'big_buck_bunny_720p_surround-H264.avi':
     Metadata:
       encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
       JUNK            :
       Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 24 fps
       Metadata:
         encoder         : Lavc56.34.100 libx264
       Stream #0:1: Audio: mp3, 0 channels, 128 kb/s
       Metadata:
         title           : BBB-Master
         encoder         : Lavc56.34.100 libmp3lame
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    I don’t know what the problem, can any one help me ?