Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (47)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (8226)

  • Started Programming Young

    6 septembre 2011, par Multimedia Mike — Programming

    I have some of the strangest memories of my struggles to jump into computer programming.

    Back To BASIC
    I remember doing some Logo programming on Apple II computers at school in 5th grade (1987 timeframe). But that was mostly driving turtle graphics. Then I remember doing some TRS-80 BASIC in 7th grade, circa 1989. Emboldened by what very little I had learned in perhaps the week or 2 we took in a science class to do this, I tried a little GW-BASIC on my family’s “IBM-PC compatible” computer (they were still called that back then). I still remember what my first program consisted of. Even back then I was interested in manipulating graphics and color on a computer screen. Thus :

    10 color 1
    20 print "This is color 1"
    30 color 2
    40 print "This is color 2"
    ...
    

    And so on through 15 colors. Hey, it did the job– it demonstrated the 15 different colors you could set in text mode.

    What’s FOR For ?
    That 7th grade computer unit in science class wasn’t very thick on computer science details. I recall working with a lab partner to transcribe code listings into a computer (and also saving my work to a storage cassette). We also developed form processing programs that would print instructions to input text followed by an “INPUT I$” statement to obtain the user’s output.

    I remember there was some situation where we needed a brief delay between input and printing. The teacher told us to use a construct of the form :

    10 FOR I = 1 TO 20000
    20 NEXT I
    

    We had to calibrate the number based on our empirical assessment of how long it lasted but I recall that the number couldn’t be much higher than about 32000, for reasons that would become clearer much later.

    Imagine my confusion when I would read and try to comprehend BASIC program code I would find in magazines. I would of course see that FOR..NEXT construct all over the place but obviously not in the context of introducing deliberate execution delays. Indeed, my understanding of one of the fundamental building blocks of computer programming — iteration — was completely skewed because of this early lesson.

    Refactoring
    Somewhere along the line, I figured out that the FOR..NEXT could be used to do the same thing a bunch of times, possibly with different values. A few years after I had written that color program, I found it again and realized that I could write it as :

    10 for I = 1 to 15
    20 color I
    30 print I
    40 next I
    

    It still took me a few more years to sort out the meaning of WHILE..WEND, though.

  • avcodec/mpegvideo_dec : Don't use MotionEstContext as scratch space

    30 octobre 2022, par Andreas Rheinhardt
    avcodec/mpegvideo_dec : Don't use MotionEstContext as scratch space
    

    Decoders that might use quarter pixel motion estimation
    (namely MPEG-4 as well as the VC-1 family) currently
    use MpegEncContext.me.qpel_(put|avg) as scratch space
    for pointers to arrays of function pointers.
    (MotionEstContext contains such pointers as it supports
    quarter pixel motion estimation.) The MotionEstContext
    is unused apart from this for the decoding part of
    mpegvideo.

    Using the context at all is for decoding is actually
    unnecessary and easily avoided : All codecs with
    quarter pixels set me.qpel_avg to qdsp.avg_qpel_pixels_tab,
    so one can just unconditionally use this in ff_mpv_reconstruct_mb().
    MPEG-4 sets qpel_put to qdsp.put_qpel_pixels_tab
    or to qdsp.put_no_rnd_qpel_pixels_tab based upon
    whether the current frame is a b-frame with no_rounding
    or not, while the VC-1-based decoders set it to
    qdsp.put_qpel_pixels_tab unconditionally. Given
    that no_rounding is always zero for VC-1, using
    the same check for VC-1 as well as for MPEG-4 would work.
    Since ff_mpv_reconstruct_mb() already has exactly
    the right check (for hpeldsp), it can simply be reused.

    (This change will result in ff_mpv_motion() receiving
    a pointer to an array of NULL function pointers instead
    of a NULL pointer for codecs without qpeldsp (like MPEG-1/2).
    It doesn't matter.)

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/mpv_reconstruct_mb_template.c
    • [DH] libavcodec/mss2.c
    • [DH] libavcodec/vc1dec.c
  • How to use Intel Quick Sync/iGPU in OVH dedicated server

    3 octobre 2022, par Meir

    I have a dedicated server with the following HW :

    &#xA;

    CPU: Intel(R) Xeon(R) E-2386G CPU @ 3.50GHz&#xA;Motherboard: Manufacturer: ASRockRack, Product Name: E3C252D4U-2T/OVH&#xA;

    &#xA;

    According to the Intel website, E-2386G has Intel Quick Sync, and I want to use it.&#xA;I tried to check which VGA I have in the system (expected to see Intel + the local), and this is the output :

    &#xA;

    05:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)&#xA;

    &#xA;

    I.e., the Intel iGPU doesn't recognize at all in the system, I tried to check in /dev/dri what are the existing devices there, and this is the output :

    &#xA;

    ls -alh /dev/dri&#xA;total 0&#xA;drwxr-xr-x  3 root root      80 Sep 19 10:28 .&#xA;drwxr-xr-x 18 root root    4.2K Sep 20 13:05 ..&#xA;drwxr-xr-x  2 root root      60 Sep 19 10:28 by-path&#xA;crw-rw----  1 root video 226, 0 Sep 19 10:28 card0&#xA;

    &#xA;

    When I tried to run vainfo tool, I get the following results :

    &#xA;

    Vanilla run :

    &#xA;

    vainfo&#xA;error: can&#x27;t connect to X server!&#xA;libva info: VA-API version 1.7.0&#xA;libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)&#xA;vaInitialize failed with error code -1 (unknown libva error),exit&#xA;

    &#xA;

    Run after setting export LIBVA_DRIVER_NAME=i965 :

    &#xA;

    vainfo&#xA;error: can&#x27;t connect to X server!&#xA;libva info: VA-API version 1.7.0&#xA;libva info: User environment variable requested driver &#x27;i965&#x27;&#xA;libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so&#xA;libva info: Found init function __vaDriverInit_1_6&#xA;libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed&#xA;libva info: va_openDriver() returns -1&#xA;vaInitialize failed with error code -1 (unknown libva error),exit&#xA;

    &#xA;

    Run with sudo :

    &#xA;

    sudo vainfo&#xA;error: XDG_RUNTIME_DIR not set in the environment.&#xA;error: can&#x27;t connect to X server!&#xA;libva info: VA-API version 1.7.0&#xA;libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)&#xA;vaInitialize failed with error code -1 (unknown libva error),exit&#xA;

    &#xA;

    How can I use Intel Quick Sync ?

    &#xA;

    --- edit ---

    &#xA;

    Running the suggested commands :

    &#xA;

    vainfo --display DRM&#xA;libva info: VA-API version 1.7.0&#xA;libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)&#xA;vaInitialize failed with error code -1 (unknown libva error),exit&#xA;&#xA;vainfo --display wayland&#xA;error: failed to initialize display &#x27;wayland&#x27;&#xA;&#xA;vainfo --display help&#xA;Available displays:&#xA;  wayland&#xA;  x11&#xA;  DRM&#xA;&#xA;&#xA;sudo journalctl -b | grep i965  (no results)&#xA;

    &#xA;