
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (106)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (11205)
-
avfilter/vf_bwdif : Add a filter_line3 method for optimisation
4 juillet 2023, par John Coxavfilter/vf_bwdif : Add a filter_line3 method for optimisation
Add an optional filter_line3 to the available optimisations.
filter_line3 is equivalent to filter_line, memcpy, filter_line
filter_line shares quite a number of loads and some calculations in
common with its next iteration and testing shows that using aarch64
neon filter_line3s performance is 30% better than two filter_lines
and a memcpy.Adds a test for vf_bwdif filter_line3 to checkasm
Rounds job start lines down to a multiple of 4. This means that if
filter_line3 exists then filter_line will not sometimes be called
once at the end of a slice depending on thread count. The final slice
may do up to 3 extra lines but filter_edge is faster than filter_line
so it is unlikely to create any noticable thread load variation.Signed-off-by : John Cox <jc@kynesim.co.uk>
Signed-off-by : Martin Storsjö <martin@martin.st> -
can someone explain this difference between H.264 and H.265 ?
19 janvier 2017, par Muhammad Abu bakrI have studied this in a research paper :
"The off-the-shelf video codecs like H.264 handle all the movements equally. In our case there are some non moving region that lies in region of interest and need to be encode in high quality and there are some moving regions which don’t need such requirements. H.265 can help us in such circumstances."
How H.265 deals with movements differently ?
-
Saving the openGL context as a video output
2 juin 2023, par psiyumI am currently trying to save the animation made in
openGL
to a video file. I have tried usingopenCV
'svideowriter
but to no advantage. I have successfully been able to generate a snapshot and save it asbmp
using theSDL
library. If I save all snapshots and then generate the video usingffmpeg
, that is like collecting 4 GB worth of images. Not practical.
How can I write video frames directly during rendering ?
Here the code i use to take snapshots when I require :


void snapshot(){
SDL_Surface* snap = SDL_CreateRGBSurface(SDL_SWSURFACE,WIDTH,HEIGHT,24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0);
char * pixels = new char [3 *WIDTH * HEIGHT];
glReadPixels(0, 0,WIDTH, HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, pixels);

for (int i = 0 ; i <height>pixels) + snap->pitch * i, pixels + 3 * WIDTH * (HEIGHT-i - 1), WIDTH*3 );

delete [] pixels;
SDL_SaveBMP(snap, "snapshot.bmp");
SDL_FreeSurface(snap);
}
</height>



I need the video output. I have discovered that
ffmpeg
can be used to create videos from C++ code but have not been able to figure out the process. Please help !


EDIT : I have tried using
openCV
CvVideoWriter
class but the program crashes ("segmentation fault
") the moment it is declared.Compilation shows no errors ofcourse. Any suggestions to that ?


SOLUTION FOR PYTHON USERS (Requires
Python2.7
,python-imaging
,python-opengl
,python-opencv
, codecs of format you want to write to, I am onUbuntu 14.04 64-bit
) :


def snap():
 pixels=[]
 screenshot = glReadPixels(0,0,W,H,GL_RGBA,GL_UNSIGNED_BYTE)
 snapshot = Image.frombuffer("RGBA",W,H),screenshot,"raw","RGBA",0,0)
 snapshot.save(os.path.dirname(videoPath) + "/temp.jpg")
 load = cv2.cv.LoadImage(os.path.dirname(videoPath) + "/temp.jpg")
 cv2.cv.WriteFrame(videoWriter,load)




Here
W
andH
are the window dimensions (width,height). What is happening is I am using PIL to convert the raw pixels read from theglReadPixels
command into aJPEG
image. I am loading that JPEG into theopenCV
image and writing to the videowriter. I was having certain issues by directly using the PIL image into the videowriter (which would save millions of clock cycles ofI/O
), but right now I am not working on that.Image
is aPIL
modulecv2
is apython-opencv
module.