Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (49)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

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

  • Building a livestream page where the user will input an rtsp streaming source through an ip address

    7 décembre 2020, par Antax Md

    I am building a livestream page where the streaming source is streamed through rtsp. Currently, I am using ffmpeg to convert the incoming rtsp stream to a .m3u8 file and it is played back on the webpage through HLS.

    &#xA;

    The problem i am trying to solve now, is loading an rtsp stream based on the user's input. How do i go about solving this ? It is a requirement to able to view the stream on iOS and android.&#xA;The ffmpeg command :

    &#xA;

    ffmpeg -i "rtsp://10.193.79.185:5554" -hls_time 3 -hls_wrap 10 "C:\wamp64\www\hls\output.m3u8"&#xA;

    &#xA;

    Code of what I have at the moment that loads a hard coded rtsp stream

    &#xA;

    &#xA;&#xA;  &#xA;      <code class="echappe-js">&lt;script src=&quot;https://cdn.jsdelivr.net/npm/hls.js@latest&quot;&gt;&lt;/script&gt;&#xA;      
    &#xA;

    RTSP Stream

    &#xA; &#xA; &#xA;

    &#xA; &#xA;

    &#xA; &#xA;&#xA; &lt;script&gt;&amp;#xA;        if(Hls.isSupported()) &amp;#xA;        {&amp;#xA;            var video = document.getElementById(&amp;#x27;video&amp;#x27;);&amp;#xA;            var mystring = &quot;http://192.168.43.79/hls/output.m3u8&quot;;&amp;#xA;            var hls = new Hls({&amp;#xA;              debug: true&amp;#xA;            });&amp;#xA;            hls.loadSource(mystring);&amp;#xA;            hls.attachMedia(video);&amp;#xA;            hls.on(Hls.Events.MEDIA_ATTACHED, function() {&amp;#xA;            video.muted = true;&amp;#xA;            video.play();&amp;#xA;        });&amp;#xA;        }&amp;#xA;        // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.&amp;#xA;        // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.&amp;#xA;        // This is using the built-in support of the plain video element, without using hls.js.&amp;#xA;        else if (video.canPlayType(&amp;#x27;application/vnd.apple.mpegurl&amp;#x27;)) {&amp;#xA;            video.src = &amp;#x27;http://192.168.43.79/hls/output.m3u8&amp;#x27;;&amp;#xA;            video.addEventListener(&amp;#x27;canplay&amp;#x27;,function() {&amp;#xA;            video.play();&amp;#xA;          });&amp;#xA;        }&amp;#xA;      &lt;/script&gt;&#xA; &#xA;&#xA;

    &#xA;

  • Anomalie #2805 : Utiliser les champs nom et email de la table auteur si id_auteur est renseigné

    26 juillet 2012, par denisb -

    je ne suis pas d’accord. un forum, à mon sens, présente un lien fort avec sa temporalité (le moment où il a été posté). de ce point de vue, l’auteur (nom + mail falcultatifs si pas connecté, nom + mail + id pré-renseignés —mais modifiables— si connecté) doit y rester associé tel qu’il était (tel (...)