
Recherche avancée
Autres articles (33)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe 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, parLes 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, parTo 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 RaptorI am new to macOS development via SwiftUI. I’m trying to run a FFMPEG process after I selected a MP4 file via
NSOpenPanel
. However, theFFMPEG
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 FabiotkI 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"><script>&#xA; const { createFFmpeg, fetchFile } = FFmpeg;&#xA; const ffmpeg = createFFmpeg({&#xA; corePath: &#x27;https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js&#x27;,&#xA; log: true,&#xA; });&#xA; &#xA; ffmpeg.setLogger(({ type, message }) => {&#xA; console.log(type, message); &#xA; });&#xA;&#xA; const transcode = async ({ target: { files } }) => {&#xA; console.log(&#x27;Running ffmpeg&#x27;)&#xA; const { name } = files[0];&#xA; await ffmpeg.load();&#xA; ffmpeg.FS(&#x27;writeFile&#x27;, name, await fetchFile(files[0]));&#xA; await ffmpeg.run(&#x27;-i&#x27;, name, &#x27;-hls_time&#x27;, &#x27;10&#x27;, &#x27;-hls_playlist_type&#x27;, &#x27;vod&#x27;, &#x27;-hls_segment_filename&#x27;, &#x27;part_%03d.ts&#x27;, &#x27;master.m3u8&#x27;);&#xA;&#xA; }&#xA; document.getElementById(&#x27;uploader&#x27;).addEventListener(&#x27;change&#x27;, transcode);&#xA;</code></pre>&#xA; &#xA;<p>My question is, where are the <code>part_%03d.ts</code> 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?</p>&#xA;
-
Anomalie #4589 (Nouveau) : PHP8 : Warning Trying to access array offset on value of type bool in i...
25 octobre 2020, par Franck DHello :)
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.netInstallation 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 762A 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 :)