Advanced search

Medias (3)

Tag: - Tags -/plugin

Other articles (100)

  • MediaSPIP 0.1 Beta version

    25 April 2011, by

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

  • HTML5 audio and video support

    13 April 2011, by

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 March 2010, by

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3); le plugin champs extras v2 nécessité par (...)

On other websites (12332)

  • Running "FFMPEG" for several times in winfoms

    13 November 2015, by Ahmad

    In a C# Windows application, I try to call "ffmpeg" to multiplex video and audio. It may be called several times. In the first call, everything is fine, but in the next call I have some problems. One problem is that the earlier "ffmpeg" process isn’t closed. So, I tried to kill it if it exists. but now I got an error for a disposed object in the following code:

      public static void FFMPEG3(string exe_path, string avi_path, string mp3_path, string output_file)
       {
           const int timeout = 2000;
           Kill(exe_path);
           using (Process process = new Process())
           {
               process.StartInfo.FileName = exe_path;
               process.StartInfo.Arguments = string.Format(@"-i ""{0}"" -i ""{1}"" -acodec copy -vcodec copy ""{2}""",
                                              avi_path, mp3_path, output_file);
               process.StartInfo.UseShellExecute = false;
               process.StartInfo.CreateNoWindow = true;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.RedirectStandardError = true;

               StringBuilder output = new StringBuilder();
               StringBuilder error = new StringBuilder();

               using (AutoResetEvent outputWaitHandle = new AutoResetEvent(false))
               using (AutoResetEvent errorWaitHandle = new AutoResetEvent(false))
               {
                   process.OutputDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           outputWaitHandle.Set();
                       }
                       else
                       {
                           output.AppendLine(e.Data);
                       }
                   };
                   process.ErrorDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           errorWaitHandle.Set();
                       }
                       else
                       {
                           error.AppendLine(e.Data);
                       }
                   };

                   process.Start();

                   process.BeginOutputReadLine();
                   process.BeginErrorReadLine();

                   if (process.WaitForExit(timeout) &&
                       outputWaitHandle.WaitOne(timeout) &&
                       errorWaitHandle.WaitOne(timeout))
                   {
                       // Process completed. Check process.ExitCode here.
                       process.Close();
                   }
                   else
                   {
                       // Timed out.
                       process.Close();
                   }
               }
           }
       }

    I get ObjectDisposedException for ErrorDataRecieved event on errorWaitHandle.Set();

    First, I want to resolve this error, but if you know any better solution to run the "ffmpeg" for several times please suggest me.

  • Insert Random silence multiple times between Audios in ffmpeg

    23 September 2021, by Gracie williams

    suppose I have MP3 of around 1 minute duration and increase its duration longer.Duration can be any.

    


    I want to randomly add N seconds of silence to that audio.

    


    I can generate the silence like below

    


    ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t <seconds> -q:a 9 -acodec libmp3lame out.mp3&#xA;</seconds>

    &#xA;

    And I can insert silence to audio like below

    &#xA;

    ffmpeg -i in.wav -filter_complex "anullsrc,atrim=0:4[s];[0]atrim=0:14[a];[0]atrim=14,asetpts=N/SR/TB[b];[a][s][b]concat=3:v=0:a=1" out.wav&#xA;

    &#xA;

    Is there anyway to insert silence at multiple areas.With php I can generate random time to insert based on 60 seconds audio like below.

    &#xA;

    $arr = [];&#xA;$arr[3] = 2; //here 3 is original audio insert time and 2 is the duration of silence&#xA;$arr[6] = 3;  //here 6 is original audio insert time and 3 is the duration of silence&#xA;$arr[10] = 1;&#xA;$arr[12] = 3;&#xA;

    &#xA;

    Now I want to insert silence between seconds based on above array like

    &#xA;

    2 seconds silence at 3rd second&#xA;3 seconds silence at 6th second&#xA;1 second silence at 10th second&#xA;

    &#xA;

    and son on..

    &#xA;

  • external-downloader option not working as expected in youtube-dl

    31 March 2021, by Coder_H

    I was trying to download specific timestamps from youtube using youtube-dl as mentioned as mentioned here in the comments

    &#xA;

    youtube-dl -v "https://www.youtube.com/watch?v=1I-3vJSC-Vo" -x -k --external-downloader ffmpeg --external-downloader-args "-ss 0:30 -to 0:35"&#xA;

    &#xA;

    I got the following error:

    &#xA;

    [youtube] 1I-3vJSC-Vo: Downloading webpage&#xA;[download] Destination: ONE MINUTE OF PURE SATISFACTION _ Compilation 1-1I-3vJSC-Vo.f398.mp4&#xA;ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/incl&#xA;ude/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable&#xA;-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libf&#xA;reetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-lib&#xA;openmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-lib&#xA;soxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack&#xA; --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal -&#xA;-enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-l&#xA;ibopencv --enable-libx264 --enable-shared&#xA;  WARNING: library configuration mismatch&#xA;  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incd&#xA;ir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-lad&#xA;spa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig -&#xA;-enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg&#xA;--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy&#xA;--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enabl&#xA;e-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --ena&#xA;ble-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0&#xA;r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb&#xA;--enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Option to (record or transcode stop time) cannot be applied to input url https://r7---sn-gwpa-civk.googlevideo.com/videoplayback?exp&#xA;ire=1617150322&amp;ei=Em1jYPnzG7qr3LUP6eGr2A0&amp;ip=2409%3A4043%3A609%3A4b92%3Ad9f7%3Ad14%3A44f9%3A8525&amp;id=o-AALoNXBA9D9WAuCZn-2a9-JjLoqCOC&#xA;_11Lo7_9LdU7g0&amp;itag=398&amp;aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C394%2C395%2C396%2C397%2C398&amp;source=youtub&#xA;e&amp;requiressl=yes&amp;mh=05&amp;mm=31%2C29&amp;mn=sn-gwpa-civk%2Csn-gwpa-cvhd&amp;ms=au%2Crdu&amp;mv=m&amp;mvi=7&amp;pcm2cms=yes&amp;pl=38&amp;initcwndbps=148750&amp;vprv=1&amp;&#xA;mime=video%2Fmp4&amp;ns=_3yx5zxNR1CYgHJamv8F-s4F&amp;gir=yes&amp;clen=4733883&amp;dur=59.920&amp;lmt=1578997687942906&amp;mt=1617128452&amp;fvip=7&amp;keepalive=yes&#xA;&amp;fexp=24001373%2C24007246&amp;beids=9466588&amp;c=WEB&amp;txp=5431432&amp;n=HoSSxcQKm_nNAUWgVTbz2&amp;sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2C&#xA;requiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&amp;sig=AOq0QJ8wRQIhAN-MjT3t_kpgwkOrBiw8f-0q5iDINPxu4bjfgZS66nNGAiBOLta-kt_AuaqGH&#xA;D-hJiElj9oNALl35IsBseYOR5AU4A%3D%3D&amp;lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&amp;lsig=AG3C_xAwRAIgIf334bMxslsq&#xA;Lxpnn2BATGGV6GWoWoJQQuMMgQL-NaMCICojD-uZ1VkyxIOQrfOwlLAEJ-gCe1skejtRBk-oHejU -- you are trying to apply an input option to an output&#xA; file or vice versa. Move this option before the file it belongs to.&#xA;Error parsing options for input file https://r7---sn-gwpa-civk.googlevideo.com/videoplayback?expire=1617150322&amp;ei=Em1jYPnzG7qr3LUP6e&#xA;Gr2A0&amp;ip=2409%3A4043%3A609%3A4b92%3Ad9f7%3Ad14%3A44f9%3A8525&amp;id=o-AALoNXBA9D9WAuCZn-2a9-JjLoqCOC_11Lo7_9LdU7g0&amp;itag=398&amp;aitags=133%2&#xA;C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C394%2C395%2C396%2C397%2C398&amp;source=youtube&amp;requiressl=yes&amp;mh=05&amp;mm=31%2C29&amp;mn&#xA;=sn-gwpa-civk%2Csn-gwpa-cvhd&amp;ms=au%2Crdu&amp;mv=m&amp;mvi=7&amp;pcm2cms=yes&amp;pl=38&amp;initcwndbps=148750&amp;vprv=1&amp;mime=video%2Fmp4&amp;ns=_3yx5zxNR1CYgHJa&#xA;mv8F-s4F&amp;gir=yes&amp;clen=4733883&amp;dur=59.920&amp;lmt=1578997687942906&amp;mt=1617128452&amp;fvip=7&amp;keepalive=yes&amp;fexp=24001373%2C24007246&amp;beids=9466&#xA;588&amp;c=WEB&amp;txp=5431432&amp;n=HoSSxcQKm_nNAUWgVTbz2&amp;sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%&#xA;2Cclen%2Cdur%2Clmt&amp;sig=AOq0QJ8wRQIhAN-MjT3t_kpgwkOrBiw8f-0q5iDINPxu4bjfgZS66nNGAiBOLta-kt_AuaqGHD-hJiElj9oNALl35IsBseYOR5AU4A%3D%3D&amp;&#xA;lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&amp;lsig=AG3C_xAwRAIgIf334bMxslsqLxpnn2BATGGV6GWoWoJQQuMMgQL-NaMCICoj&#xA;D-uZ1VkyxIOQrfOwlLAEJ-gCe1skejtRBk-oHejU.&#xA;Error opening input files: Invalid argument&#xA;&#xA;&#xA;ERROR: ffmpeg exited with code 1&#xA;&#xA;

    &#xA;

    Why am I facing this error despite using the same format as mentioned in the link ?

    &#xA;