Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (33)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (4648)

  • Unable to access user selected file via NSOpenPanel in FFMPEG process in macOS app

    12 décembre 2019, par Raptor

    I am new to macOS development via SwiftUI. I’m trying to run a FFMPEG process after I selected a MP4 file via NSOpenPanel. However, the FFMPEG responded with :

    file :///Users/MyUsername/Documents/Video.mp4 : No such file or directory

    Here is my simple codes :

    import SwiftUI

    struct ContentView: View {

       @State var selectedURL: URL?

       var body: some View {
           VStack {
               if selectedURL != nil {
                   Text("Selected: \(selectedURL!.absoluteString)")
               } else {
                   Text("Nothing selected")
               }
               Button(action: {
                   let panel = NSOpenPanel()
                   panel.allowedFileTypes = ["mp4"]
                   panel.canChooseDirectories = false
                   panel.canCreateDirectories = false
                   panel.allowsMultipleSelection = false
                   let result = panel.runModal()
                   if result == .OK {
                       self.selectedURL = panel.url

                       let savePath = self.getDownloadDirectory().appendingPathComponent("video.webm")

                       self.convertVideo(inputFilePath: self.selectedURL!.absoluteString, outputFilePath: savePath.absoluteString, callback: {(s) in
                           // omit the callback at this moment
                       })
                   }
               }) {
                   Text("Select File")
               }
           }
           .frame(width: 640, height: 480)
       }

       func getDownloadDirectory() -> URL {
           let paths = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask)
           return paths[0]
       }

       func convertVideo(inputFilePath: String, outputFilePath: String,
                        callback: @escaping (Bool) -> Void) -> (Process, DispatchWorkItem)? {
           guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else {
               return nil
           }
           let process = Process()
           let task = DispatchWorkItem {
               process.launchPath = launchPath
               process.arguments = [
                   "-y",
                   "-i", inputFilePath,
                   "-vcodec", "vp8",
                   "-acodec", "libvorbis",
                   "-pix_fmt", "yuva420p",
                   "-metadata:s:v:0",
                   "alpha_mode=\"1\"",
                   "-auto-alt-ref", "0",
                   outputFilePath
               ]
               process.standardInput = FileHandle.nullDevice
               process.launch()
               process.terminationHandler = { process in
                   callback(process.terminationStatus == 0)
               }
           }
           DispatchQueue.global(qos: .userInitiated).async(execute: task)

           return (process, task)
       }
    }

    What did I miss to allow FFMPEG process to access my selected file ? Thanks !

  • where is ffmpeg wasm output directory and how to access the files ?

    15 juin 2021, par Fabiotk

    I have the following code where I convert a video file into HLS stream format. I'm doing this in browser javascript so I don't load a lot of processing into the server. Now, the code seems to be working fine according to the logs however I can't see the output. The code is :

    


    <code class="echappe-js">&lt;script&gt;&amp;#xA;   const { createFFmpeg, fetchFile } = FFmpeg;&amp;#xA;   const ffmpeg = createFFmpeg({&amp;#xA;       corePath: &amp;#x27;https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js&amp;#x27;,&amp;#xA;       log: true,&amp;#xA;   });&amp;#xA;   &amp;#xA;   ffmpeg.setLogger(({ type, message }) =&gt; {&amp;#xA;       console.log(type, message);  &amp;#xA;   });&amp;#xA;&amp;#xA;   const transcode = async ({ target: { files } }) =&gt; {&amp;#xA;       console.log(&amp;#x27;Running ffmpeg&amp;#x27;)&amp;#xA;       const { name } = files[0];&amp;#xA;       await ffmpeg.load();&amp;#xA;       ffmpeg.FS(&amp;#x27;writeFile&amp;#x27;, name, await fetchFile(files[0]));&amp;#xA;       await ffmpeg.run(&amp;#x27;-i&amp;#x27;, name, &amp;#x27;-hls_time&amp;#x27;, &amp;#x27;10&amp;#x27;, &amp;#x27;-hls_playlist_type&amp;#x27;, &amp;#x27;vod&amp;#x27;, &amp;#x27;-hls_segment_filename&amp;#x27;, &amp;#x27;part_%03d.ts&amp;#x27;, &amp;#x27;master.m3u8&amp;#x27;);&amp;#xA;&amp;#xA;   }&amp;#xA;   document.getElementById(&amp;#x27;uploader&amp;#x27;).addEventListener(&amp;#x27;change&amp;#x27;, transcode);&amp;#xA;&lt;/code&gt;&lt;/pre&gt;&amp;#xA;   &amp;#xA;&lt;p&gt;My question is, where are the &lt;code&gt;part_%03d.ts&lt;/code&gt; files (part_001.ts, etc)? I want to loop through every one of them and pass their content to another function. How to do this?&lt;/p&gt;&amp;#xA;
  • Anomalie #4589 (Nouveau) : PHP8 : Warning Trying to access array offset on value of type bool in i...

    25 octobre 2020, par Franck D

    Hello :)

    Windows 10 (1909)

    Laragon avec :
    Php 8.0.0RC2 (VS16 x64 Non Thread Safe) https://windows.php.net/qa
    Apache 2.4.46 Win64 avec mod_fcgid-2.3.10-win64-VS16 https://www.apachelounge.com/download/
    Mysql 8.0.22 (mysql-8.0.22-winx64.zip) https://dev.mysql.com/downloads/mysql/
    phpMyAdmin 5.0.4 https://www.phpmyadmin.net

    Installation en MySQL
    Prefix des tables à l’installation : "test2"
    SPIP 3.3.0-dev GIT [master : 30650cb8]

    Je fais l’activation des révisions partout, une fois avoir fait une modif dans un documents, un article, une rubrique par exemple, j’ai ce warning qui apparait lorsque je consulte la révisions en faisant un clique dessus dans la page d’accueil du site
    Warning : Trying to access array offset on value of type bool in C :\laragon\www\test2\plugins-dist\revisions\inc\revisions.php on line 762

    A savoir que pour un article, j’ai même Warning : detecter_liens_blocs() : Argument #1 ($t) must be passed by reference, value given in C :\laragon\www\test2\plugins-dist\textwheel\engine\textwheel.php on line 445 qui se rajoute, mais comme j’ai déjà fait un ticket concernant ce warning, il sera sans doute résolut en même temps :)