Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (94)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6256)

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

  • I need to create a streaming app Where videos store in aws S3

    27 juillet 2023, par abuzar zaidi

    I need to create a video streaming app. where my videos will store in S3 and the video will stream from the backend. Right now I am trying to use ffmpeg in the backend but it does not work properly.

    &#xA;

    what am I doing wrong in this code ? And if ffmpeg not support streaming video that store in aws s3 please suggest other options.

    &#xA;

    Backend

    &#xA;

    const express = require(&#x27;express&#x27;);&#xA;const aws = require(&#x27;aws-sdk&#x27;);&#xA;const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;const cors = require(&#x27;cors&#x27;); &#xA;const app = express();&#xA;&#xA;//   Set up AWS credentials&#xA;aws.config.update({&#xA;accessKeyId: &#x27;#######################&#x27;,&#xA;secretAccessKey: &#x27;###############&#x27;,&#xA;region: &#x27;###############3&#x27;,&#xA;});&#xA;&#xA;const s3 = new aws.S3();&#xA;app.use(cors());&#xA;&#xA;app.get(&#x27;/stream&#x27;, (req, res) => {&#xA;const bucketName = &#x27;#######&#x27;;&#xA;const key = &#x27;##############&#x27;; // Replace with the key/path of the video file in the S3 bucket&#xA;const params = { Bucket: bucketName, Key: key };&#xA;const videoStream = s3.getObject(params).createReadStream();&#xA;&#xA;// Transcode to HLS format&#xA; const hlsStream = ffmpeg(videoStream)&#xA;.format(&#x27;hls&#x27;)&#xA;.outputOptions([&#xA;  &#x27;-hls_time 10&#x27;,&#xA;  &#x27;-hls_list_size 0&#x27;,&#xA;  &#x27;-hls_segment_filename segments/segment%d.ts&#x27;,&#xA; ])&#xA;.pipe(res);&#xA;&#xA;// Transcode to DASH format and pipe the output to the response&#xA;ffmpeg(videoStream)&#xA;.format(&#x27;dash&#x27;)&#xA;.outputOptions([&#xA;  &#x27;-init_seg_name init-stream$RepresentationID$.mp4&#x27;,&#xA;  &#x27;-media_seg_name chunk-stream$RepresentationID$-$Number%05d$.mp4&#x27;,&#xA; ])&#xA;.output(res)&#xA;.run();&#xA;});&#xA;&#xA;const port = 5000;&#xA;app.listen(port, () => {&#xA;console.log(`Server running on http://localhost:${port}`);&#xA;});&#xA;

    &#xA;

    Frontend

    &#xA;

        import React from &#x27;react&#x27;;&#xA;&#xA;    const App = () => {&#xA;     const videoUrl = &#x27;http://localhost:3000/api/playlist/runPlaylist/6c3e7af45a3b8a5caf2fef17a42ef9a0&#x27;; //          Replace with your backend URL&#xA;Please list down solution or option i can use here&#xA;    const videoUrl = &#x27;http://localhost:5000/stream&#x27;;&#xA;         return (&#xA;      <div>&#xA;      <h1>Video Streaming Example</h1>&#xA;      <video controls="controls">&#xA;        <source src="{videoUrl}" type="video/mp4"></source>&#xA;        Your browser does not support the video tag.&#xA;      </video>&#xA;    </div>&#xA;     );&#xA;     };&#xA;&#xA;    export default App;&#xA;

    &#xA;

  • Combine multiple videos into one

    10 janvier 2012, par StackedCrooked

    I have three videos :

    • a lecture that was filmed with a video camera
    • a video of the desktop capture of the computer used in the lecture
    • and the video of the whiteboard

    I want to create a final video with those three components taking up a certain region of the screen.

    Is open-source software that would allow me to do this (mencoder, ffmpeg, virtualdub..) ? Which do you recommend ?

    Or is there a C/C++ API that would enable me to create something like that programmatically ?

    Edit
    There will be multiple recorded lectures in the future. This means that I need a generic/automated solution.

    I'm currently checking out if I could write an application with GStreamer to do this job. Any comments on that ?

    Solved !
    I succeeded in doing this with GStreamer's videomixer element. I use the gst-launch syntax to create a pipeline and then load it with gst_parse_launch. It's a really productive way to implement complex pipelines.

    Here's a pipeline that takes two incoming video streams and a logo image, blends them into one stream and the duplicates it so that it simultaneously displayed and saved to disk.

     desktop. ! queue
              ! ffmpegcolorspace
              ! videoscale
              ! video/x-raw-yuv,width=640,height=480
              ! videobox right=-320
              ! ffmpegcolorspace
              ! vmix.sink_0
     webcam. ! queue
             ! ffmpegcolorspace
             ! videoscale
             ! video/x-raw-yuv,width=320,height=240
             ! vmix.sink_1
     logo. ! queue
           ! jpegdec
           ! ffmpegcolorspace
           ! videoscale
           ! video/x-raw-yuv,width=320,height=240
           ! vmix.sink_2
     vmix. ! t.
     t. ! queue
        ! ffmpegcolorspace
        ! ffenc_mpeg2video
        ! filesink location="recording.mpg"
     t. ! queue
        ! ffmpegcolorspace
        ! dshowvideosink
     videotestsrc name="desktop"
     videotestsrc name="webcam"
     multifilesrc name="logo" location="logo.jpg"
     videomixer name=vmix
                sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0
                sink_1::xpos=640 sink_1::ypos=0 sink_1::zorder=1
                sink_2::xpos=640 sink_2::ypos=240 sink_2::zorder=2
     tee name="t"