Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (83)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (15127)

  • Obtain the filtered keyframe screenshot from the video

    18 janvier 2023, par shsf

    I want to get keyframe images from the video ;In order to get the main plot of the video ;

    


    I would like to restrict keyframe generation ; For example, only one keyframe is taken every 7s or every 3s ;

    


    (In addition to generating all the key frame images. And then filter it based on pts time. Is there any other way ?)

    


    The following command can restrict pts to multiples of n(such as 7).

    


    ffmpeg -y  -i   15103.mp4    -vf "select='eq(pict_type,PICT_TYPE_I)*not(mod(n,7))'"  -vsync vfr -s 480x270 -frame_pts true p2/out-%d.png

    


    But it's still not quite what I need. I need to get one keyframe if there are key frames in these seconds. Or get zero keyframe if there is no keyframe in these seconds.

    


    How do I modify the command ?

    


    ffmpeg -y  -i   15103.mp4    -vf "select='eq(pict_type,PICT_TYPE_I)'"  -vsync vfr -s 480x270 -frame_pts true p2/out-%d.png

    


  • How to get ffprobe metadata as variable to parse in python

    29 avril 2021, par connor449

    When I run ffprobe <video></video>, I get the standard metadata as below :

    &#xA;

    ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.62)&#xA;  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-libdav1d --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;../directConversion/200mbs105_55.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.45.100&#xA;  Duration: 00:01:12.43, start: 0.000000, bitrate: 213963 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1920 [SAR 1:1 DAR 9:16], 213828 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;&#xA;

    &#xA;

    I want to get this information from python so I can parse this output and use some of it in my code. However, I can't get this to work.

    &#xA;

    I have tried the following :

    &#xA;

    data = subprocess.call(f&#x27;ffprobe {video}&#x27;, shell=True)&#xA;data = subprocess.check_output(f&#x27;ffprobe {vid}&#x27;, shell=True)&#xA;data = subprocess.Popen(f&#x27;ffprobe {vid}&#x27;, shell=True)&#xA;data = subprocess. Popen(f&#x27;ffprobe {vid}&#x27;, stdout=subprocess.PIPE ).communicate()[0]&#xA;data = run(f&#x27;ffprobe {vid}&#x27;, capture_output=True).stdout&#xA;

    &#xA;

    If I include shell=True, then the proper information prints in the terminal but I get an empty string for data. For commands without shell=True I get file not found error and it breaks. What should I do ? I got all of these solutions from SO and they seem to work for others.

    &#xA;

  • Any video format to mp4 using ffmpeg in C#

    8 juin 2015, par Sangeetha

    I am converting any format videos to mp4 format in following way using FFMPEG in c# application,

    string targetFilePath = Path.Combine(_file + @"\ffmpeg\", "ffmpeg.exe");
               string ffmpegargs = "";
               if (exten == "flv")
               {
                   ffmpegargs = " -i " + inputFileName + " -acodec libmp3lame -ar " + samplingrate + " -ab " + bitrate + " -f flv -s " + size + " " + outputFileName;
               }
               else
               {
                   ffmpegargs = " -i " + inputFileName + " " + outputFileName;
               }
              //string ffmpegargs = " -y -i " + inputFileName + " -b 2000k "+ outputFileName;
               System.Diagnostics.Process pProcess = new Process();
               pProcess.StartInfo.FileName = targetFilePath;
               pProcess.StartInfo.UseShellExecute = false;
               pProcess.StartInfo.RedirectStandardOutput = true;
               pProcess.StartInfo.CreateNoWindow = true;
               pProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
               pProcess.StartInfo.Arguments = ffmpegargs;
               pProcess.EnableRaisingEvents = true;
               pProcess.Start();
               pProcess.WaitForExit();
               pProcess.Close();
               pProcess.Dispose();
               pProcess = null;

    It works fine when convert from flv file. But when convert an avi or f4v file, able to save mp4 format in temp file. But when try to identify the file in following way it throws avformatcontext return memory corruption error.

    IntPtr pFormatContext;
               FFmpeg.av_register_all();

               int ret;
    ret = FFmpeg.av_open_input_file(out pFormatContext, this.Filename, IntPtr.Zero, 0, IntPtr.Zero);
    ret = FFmpeg.av_find_stream_info(pFormatContext);

    Throws memory corruption in the following line,

    ret = FFmpeg.av_find_stream_info(pFormatContext) ;

    What could be the reason, Or what is the mistake i am making here.

    Regards