Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (106)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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 2011

    Vous 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 Cox
    avfilter/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>

    • [DH] libavfilter/bwdif.h
    • [DH] libavfilter/vf_bwdif.c
    • [DH] tests/checkasm/vf_bwdif.c
  • can someone explain this difference between H.264 and H.265 ?

    19 janvier 2017, par Muhammad Abu bakr

    I 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 psiyum

    I am currently trying to save the animation made in openGL to a video file. I have tried using openCV's videowriter but to no advantage. I have successfully been able to generate a snapshot and save it as bmp using the SDL library. If I save all snapshots and then generate the video using ffmpeg, that is like collecting 4 GB worth of images. Not practical.&#xA;How can I write video frames directly during rendering ?&#xA;Here the code i use to take snapshots when I require :

    &#xA;&#xA;

    void snapshot(){&#xA;SDL_Surface* snap = SDL_CreateRGBSurface(SDL_SWSURFACE,WIDTH,HEIGHT,24, 0x000000FF, 0x0000FF00, 0x00FF0000, 0);&#xA;char * pixels = new char [3 *WIDTH * HEIGHT];&#xA;glReadPixels(0, 0,WIDTH, HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, pixels);&#xA;&#xA;for (int i = 0 ; i <height>pixels) &#x2B; snap->pitch * i, pixels &#x2B; 3 * WIDTH * (HEIGHT-i - 1), WIDTH*3 );&#xA;&#xA;delete [] pixels;&#xA;SDL_SaveBMP(snap, "snapshot.bmp");&#xA;SDL_FreeSurface(snap);&#xA;}&#xA;</height>

    &#xA;&#xA;

    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 !

    &#xA;&#xA;

    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 ?

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

    Here W and H are the window dimensions (width,height). What is happening is I am using PIL to convert the raw pixels read from the glReadPixels command into a JPEG image. I am loading that JPEG into the openCV 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 of I/O), but right now I am not working on that. Image is a PIL module cv2 is a python-opencv module.

    &#xA;