Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (89)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

    5 mars 2010, par

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

Sur d’autres sites (3747)

  • Can I add photon to video and make this photo to be thumbnails(Cover) ? [duplicate]

    2 avril 2019, par 林炳河

    This question already has an answer here :

    I want to add thumbnail to a video, but all of my attempts have been not working.

    I already try use ffmpeg command to do this, but it didn’t help.

    what command i used :

    ffmpeg -i source.mp4 -i cover.png  -filter_complex "[1:v]scale=720:1280[oval],[0:v][oval]overlay=enable='between(n,0,1)',fps=fps=15" -pix_fmt yuv420p -c:a copy output.mp4

    Please help me.

  • FFMPEG video merging. Only first video shows

    13 mars 2019, par James Ashworth

    I’m trying to put 7 second intro video before another one, but I keep having trouble with it. I don’t need to do anything else then add intros to videos.

    This is what I’m currently getting.

    (for %i in (*.mp4) do @echo file '%i') > mylist.txt

    ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4





       C:\Users\Business>cd desktop

    C:\Users\Business\Desktop>cd testfile

    C:\Users\Business\Desktop\Testfile>(for %i in (*.mp4) do @echo file '%i') > mylist.txt

    C:\Users\Business\Desktop\Testfile>
    C:\Users\Business\Desktop\Testfile>(for %i in (*.mp4) do @echo file '%i') > mylist.txt

    C:\Users\Business\Desktop\Testfile>ffmpeg -f concat -i mylist.txt -c copy output.mp4
    ffmpeg version N-93308-g1144d5c96d Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt  

    libavutil      56. 26.100 / 56. 26.100
     libavcodec     58. 47.103 / 58. 47.103
     libavformat    58. 26.101 / 58. 26.101
     libavdevice    58.  6.101 / 58.  6.101
     libavfilter     7. 48.100 /  7. 48.100
     libswscale      5.  4.100 /  5.  4.100
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000261c7072c00] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'mylist.txt':
     Duration: N/A, start: -0.042667, bitrate: 2453 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2325 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to 'output.mp4':
     Metadata:
       encoder         : Lavf58.26.101
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 2325 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=110209 fps=3246 q=-1.0 Lsize= 1103461kB time=01:01:17.41 bitrate=2458.1kbits/s speed= 108x
    video:1042171kB audio:57353kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.358030%

    C:\Users\Business\Desktop\Testfile>

    It shows the 7 second video as the whole video. Someway i got it to change after 7 seconds, but then the rest of the video was really buddy.

  • Video Streaming shows not working in Micorsoft Edge

    22 novembre 2018, par Ragesh S

    I am newbi in using Video streaming in ASP.Net MVC project. I have a video library webpplication, most of the videos are .mp4 format. Please see my code below.

    Code

    public HttpResponseMessage Get(string filename)
       {
           var filePath = new FileStreameHelpers().GetFilePath(filename);
           if (!File.Exists(filePath))
               return new HttpResponseMessage(HttpStatusCode.NotFound);

           var response = Request.CreateResponse();
           response.Headers.AcceptRanges.Add("bytes");

           var streamer = new FileStreameHelpers();
           streamer.FileInfo = new FileInfo(filePath);
           response.Content = new PushStreamContent(streamer.WriteToStream, new FileStreameHelpers().GetMimeType(Path.GetExtension(filePath)));

           RangeHeaderValue rangeHeader = Request.Headers.Range;
           if (rangeHeader != null)
           {
               long totalLength = streamer.FileInfo.Length;
               var range = rangeHeader.Ranges.First();
               streamer.Start = range.From ?? 0;
               streamer.End = range.To ?? totalLength - 1;

               response.Content.Headers.ContentLength = streamer.End - streamer.Start + 1;
               response.Content.Headers.ContentRange = new ContentRangeHeaderValue(streamer.Start, streamer.End,
                   totalLength);
               response.StatusCode = HttpStatusCode.PartialContent;
           }
           else
           {
               response.StatusCode = HttpStatusCode.OK;
           }

           return response;
       }
     public async Task WriteToStream(Stream outputStream, HttpContent content, TransportContext context)
       {
           try
           {
               var buffer = new byte[6553600];
               using (var video = FileInfo.OpenRead())
               {
                   if (End == -1)
                   {
                       End = video.Length;
                   }
                   var position = Start;
                   var bytesLeft = End - Start + 1;
                   video.Position = Start;
                   while (position <= End)
                   {
                       var bytesRead = video.Read(buffer, 0, (int)Math.Min(bytesLeft, buffer.Length));
                       await outputStream.WriteAsync(buffer, 0, bytesRead);
                       position += bytesRead;
                       bytesLeft = End - position + 1;
                   }
               }
           }
           catch (Exception ex)
           {
               // fail silently
               Utilities.SaveException("FileStreameHelpers - WriteToStream", ex);
           }
           finally
           {
               outputStream.Close();
           }
       }

    it works fine in Firefox and Chrome but it shows error in Microsoft Edge browser like below.

    HTML

    <video width="320" height="240" controls="controls">
       <source src="/api/Media/Get?filename=SampleVideo_1280x720_1mb.mp4" type="video/mp4">
       Your browser does not support the video tag.
    </source></video>

    The remote host closed the connection. The error code is 0x800703E3.

    Please advice.