
Recherche avancée
Autres articles (99)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (14179)
-
avutil/fifo : Fix the case where func() returns less bytes than requested in av_fifo_g...
14 juillet 2015, par Zhang Rui -
ffmpeg cache whole video stream and save
19 juillet 2016, par LuizI have a security DVR that can stream a video recording using the RTSP protocol. I can record the playback using ffmpeg and save it to a file, but for a 20 min video, I have to watch the video to save or wait the whole playback time.
I’m using :ffmpeg -i "rtsp://mystream" -r 15 -acodec copy -vcodec copy myvideo.mp4
to do this
Is there any way to buffer the whole stream and just save it to a file using ffmpeg, without the need to watch or wait the whole 20 minutes playback ? I don’t need to reencode anything since the stream video format is good enough for me.
Thanks in advance
-
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)")
}