
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (76)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (8311)
-
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