Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (59)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

  • FFmpeg drawtext=enable'between(t,0,5)' not working

    24 juillet 2018, par Avani

    I’m trying to draw text on a video at different time intervals using ffmpeg. Below is my instruction :

       ffmpeg -i input.mp4 -vf "drawtext=fontfile='C:\arial.ttf':text='Text1':x=5:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:box=1:boxcolor=black@0.5:boxborderw=5:enable='between(t,0,20)', drawtext=fontfile='C:\arial.ttf':text='Text2':x=100:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,5,20)', drawtext=fontfile='C:\arial.ttf':text='Text3':x=200:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,10,20)'" output.mp4

    I’m trying to draw text in a horizontal line and I want only Text1 for the first 5 seconds, and then Text2 starting from 5 seconds to 20 seconds, and Text3 starting from 10 seconds till the end.

    When I do this, my first text stays for about 15 seconds and the last two show up in the last 4 seconds of the video. Is there something wrong with my instruction ? Am I using the enable between correctly ?

    Below is the Log for ffmpeg -i input.mp4 -vf showinfo -vsync 0 -f null - :

       ffmpeg version N-91399-g9f0077cc03 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 18.102 / 56. 18.102
     libavcodec     58. 20.104 / 58. 20.104
     libavformat    58. 17.101 / 58. 17.101
     libavdevice    58.  4.101 / 58.  4.101
     libavfilter     7. 25.100 /  7. 25.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'onlyVideo.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf56.37.100
     Duration: 00:00:20.00, start: 0.000000, bitrate: 73 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x720 [SAR 1:1 DAR 8:9], 73 kb/s, 0.20 fps, 0.20 tbr, 16384 tbn, 1 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> wrapped_avframe (native))
    Press [q] to stop, [?] for help
    [Parsed_showinfo_0 @ 0000019e4ef73140] config in time_base: 1/16384, frame_rate: 1/5
    [Parsed_showinfo_0 @ 0000019e4ef73140] config out time_base: 0/0, frame_rate: 0/0
    [Parsed_showinfo_0 @ 0000019e4ef73140] n:   0 pts:      0 pts_time:0       pos:       44 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:1 type:I checksum:850631B2 plane_checksum:[6C2678F8 6C5D6575 C2075336] mean:[191 121 133 ] stdev:[67.7 11.8 8.5 ]
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 17 (1845 bytes)
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 16 (8 bytes)
    Output #0, null, to 'pipe:':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf58.17.101
       Stream #0:0(und): Video: wrapped_avframe, yuv420p, 640x720 [SAR 1:1 DAR 8:9], q=2-31, 200 kb/s, 0.20 fps, 0.20 tbn, 0.20 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc58.20.104 wrapped_avframe
    [Parsed_showinfo_0 @ 0000019e4ef73140] n:   1 pts:  81920 pts_time:5       pos:    37980 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:D4B0BD28 plane_checksum:[E0310E7B DC71FA0B 97BCB493] mean:[31 127 132 ] stdev:[25.6 28.9 27.1 ]
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 17 (1845 bytes)
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 16 (8 bytes)
    frame=    2 fps=0.0 q=-0.0 size=N/A time=00:00:10.00 bitrate=N/A speed=11.1x    
    [Parsed_showinfo_0 @ 0000019e4ef73140] n:   2 pts: 163840 pts_time:10      pos:    67732 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:9FC30D4F plane_checksum:[1F10F7EB 45F39329 BED7821D] mean:[60 123 125 ] stdev:[61.8 11.0 5.5 ]
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 17 (1845 bytes)
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 16 (8 bytes)
    [Parsed_showinfo_0 @ 0000019e4ef73140] n:   3 pts: 245760 pts_time:15      pos:   133778 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:9F501A92 plane_checksum:[D1B4E4A7 C4CD0DFA EB7E27E2] mean:[162 129 139 ] stdev:[71.7 27.3 37.2 ]
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 17 (1845 bytes)
    [Parsed_showinfo_0 @ 0000019e4ef73140]   side data - unknown side data type 16 (8 bytes)
    frame=    4 fps=0.0 q=-0.0 Lsize=N/A time=00:00:20.00 bitrate=N/A speed=21.7x    
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  • How to swap package configuration for environment

    24 juillet 2018, par Finn Maunsell

    I’d like to change the location that I get ffmpeg from for my anaconda environment. The problem has occured because I want to use the ffmpeg configuration for my base system instead of the configuration meant for the environment.

    If I use ffmpeg in ubuntu bash then I get this for my active environment :

     ffmpeg version N-91510-gd134b8d Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/home/notebook/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/notebook/ffmpeg_build/include --extra-ldflags=-L/home/notebook/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/notebook/bin --enable-gpl --enable-libaom --enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree

    and for non-environment :

    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-15)
     configuration: --prefix=/home/notebook/anaconda2/envs/tensorflow --disable-doc --enable-shared --enable-static --extra-cflags='-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC -I/home/notebook/anaconda2/envs/tensorflow/include' --extra-cxxflags='=-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC' --extra-libs=
    '-L/home/notebook/anaconda2/envs/tensorflow/lib -lz' --enable-pic --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --enable-libx264

    Solving this will allow me to use the 2nd ffmpeg installation in my conda environment.

  • ASP.NET MVC - Converting Video Format From Email Attachment Scanner

    24 juillet 2018, par BenHayward

    We have a Quartz scheduler that scans the company email account every 60 seconds, and will process those emails accordingly. Any attachments are stored in a byte array.

    Video attachments need to be converted to an MP4 and then back to a byte array to be stored in the DB ; I am trying to use FFMPEG (fflib) to complete this, however I’m having trouble figuring out how it can be done with a byte array as the source - the company have stated that this conversion must be done before it enters the database.

    Is the conversion of a byte array possible using the Process Class to access the FFMPEG CLI ?

    Here is the code I currently have, just using local file locations (using fflib ffmpeg library).

    public IList<documentstoreattachment> AddDocumentsToDocumentStore(IList<fileattachment> documentsToStore, Guid personId, IList<documentattributedto> documentAttributes)
           {
               var storedDocuments = new List<documentstoreattachment>();

               foreach (var documentToStore in documentsToStore)
               {
                   try
                   {
                       if (IsExtensionAllowed(documentToStore.AttachmentName))
                       {

                           if (documentToStore.MimeType == "mpeg")
                           {
                               Job2Convert job = new Job2Convert()
                               {
                                   pszSrcFile = @"..\..\Amigo Loans 2018 Advert MPG.mpg",
                                   pszDstFile = @"C:\Users\ben.hayward\Desktop\Amigo Loans 2018 Advert MPG.mp4",

                                   pszDstFormat = "mp4",
                                   pszAudioCodec = "aac",

                                   nAudioChannels = 2,
                                   nAudioBitrate = -1,
                                   nAudioRate = -1,

                                   pszVideoCodec = "h264",

                                   nVideoBitrate = -1,
                                   nVideoFrameRate = -1,
                                   nVideoFrameWidth = -1,
                                   nVideoFrameHeight = -1

                               };

                               _sut.ConvertFile(job);

                           }

                           storedDocuments.Add(AddDocumentToDocumentStore(documentToStore.AttachmentName, documentToStore.ByteArray, documentToStore.MimeType, personId, documentAttributes));
                       }
                       else
                       {
                           Logger.WarnFormat("AddDocumentsToDocumentStore: File extension not allowed for file name: {0}, person id: {1}", documentToStore.AttachmentName, personId);
                       }
                   }
                   catch (Exception e)
                   {
                       #region Error

                       Logger.Error(String.Format("There was a problem saving the document to the document store. The file name was {0}, person id: {1}",
                           documentToStore.AttachmentName, personId), e);

                       #endregion
                   }
               }

               return storedDocuments;
           }
    </documentstoreattachment></documentattributedto></fileattachment></documentstoreattachment>

    Thank you in advance.