
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (97)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe 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 (...)
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (9161)
-
Use "this" instead of a closure variable as data parameter inside of the data.submit() method - Fixes #847.
6 décembre 2011, par Sebastian Tschanm jquery.fileupload-ui.js m jquery.fileupload.js Use "this" instead of a closure variable as data parameter inside of the data.submit() method - Fixes #847. Store the jqXHR object returned by data.submit() as property of the data (...)
-
SDL save screenshot on iOS
12 avril 2018, par Law GimenezI am trying to save a screen or frame from the SDL’s "window" into a PNG file and so I’m using SDL_image library. My code is below
IMG_Init(Int32(IMG_INIT_PNG.rawValue))
let screenShot = SDL_CreateRGBSurface(0, 640, 480, 32, 0, 0, 0, 0)
SDL_SetRenderTarget(renderer, texture)
SDL_RenderReadPixels(renderer, nil, Uint32(SDL_PIXELFORMAT_ARGB8888), screenShot?.pointee.pixels, (screenShot?.pointee.pitch)!)
let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String
IMG_SavePNG(screenShot, "\(documentsPath)/image.png")
SDL_FreeSurface(screenShot)But the
image.png
was not saved. If anyone can lead or help me. Thank you !Additional code, the image saved is just black
IMG_Init(Int32(IMG_INIT_PNG.rawValue))
let screenShot = SDL_CreateRGBSurface(Uint32(SDL_SWSURFACE), 640, 480, 32, 0, 0, 0, 0)
// SDL_SetRenderTarget(renderer, texture)
SDL_RenderReadPixels(renderer, nil, Uint32(SDL_PIXELFORMAT_ARGB8888), screenShot?.pointee.pixels, (screenShot?.pointee.pitch)!)
// Save to documents directory
let fileManager = FileManager.default
do {
let documentDirectory = try fileManager.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
let fileUrl = documentDirectory.appendingPathComponent("imageLOL.png")
if !fileManager.fileExists(atPath: fileUrl.path) {
print("File NO exists")
// Create file at path
let data = Data()
let createFile = fileManager.createFile(atPath: fileUrl.path, contents: data, attributes: nil)
if createFile {
print("Create file success")
} else {
print("Create file failed")
}
} else {
print("File exists")
}
let result = IMG_SavePNG(screenShot, fileUrl.path)
print("result = \(result)")
// After saving screenshot
let image = UIImage(contentsOfFile: fileUrl.path)
let imageData = UIImagePNGRepresentation(image!)
print("image length = \(String(describing: imageData?.count))")
UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
SDL_FreeSurface(screenShot)
} catch {
print("Error docs = \(error)")
} -
FFMPEG unable to take frame and save as image
2 mai 2013, par alexI'm trying to save an image from a video frame and save it as a jpeg.
This function works for smaller video files, but if the video is over 10 minutes it won't save the jpeg image. An error comes up as before trans.public function VideoToJpeg($localVideoPath, $localOutImgPath)
{
$Name = dirname(__FILE__) . "/ffmpeg";
$Str = "$Name -i \"$localVideoPath\" -an -ss 00:00:03 -an -r 1 -vframes 1 -y \"$localOutImgPath\"";
exec($Str);
}Here is the error I got from ffmpeg
[NULL @ 0370e760] Unable to find a suitable output format for 'path'
: Invalid argument