Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (48)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (8250)

  • avcodec/mpeg12enc : Move high resolution thread check to before initializing threads

    21 janvier 2016, par Michael Niedermayer
    avcodec/mpeg12enc : Move high resolution thread check to before initializing threads
    

    Cleaner solution is welcome !

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/mpeg12enc.c
    • [DH] libavcodec/pthread_slice.c
  • opencv ffmpeg vaapi 1080p resolution not working

    18 avril 2023, par yeo

    I want to use hardware acceleration with opencv manual build.&#xA;My gpu uses an i965 intel cpu built-in graphics card, and it is a debain11 environment.

    &#xA;

    [OPENCV:FFMPEG:40] Reinit context to 1920x1088, pix_fmt: vaapi_vld&#xA;

    &#xA;

    If you look at some of the error messages below, it seems that the original file is 1920x1080 because it is converted to 1088 while reinit.&#xA;I've read that vaapi_vld reads 16 bits at a time.&#xA;In fact, it seems to work when the original file is changed to 1920x1072.&#xA;Is there a way to fix it without changing the original file resolution ?&#xA;Please advise seniors.&#xA;Sorry for my poor English skills&#xA;Thank you

    &#xA;

    manual build CMAKE option

    &#xA;

    "-DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_VA_INTEL=ON -DWITH_VA=ON -DOPENCV_FFMPEG_ENABLE_LIBAVDEVICE=ON -DOPENCV_ENABLE_GLX=ON -DOPENCV_FFMPEG_SKIP_BUILD_CHECK=ON -DWITH_OPENVINO=ON -DWITH_INF_ENGINE=ON"&#xA;&#xA;

    &#xA;

    build infomation

    &#xA;

      OpenCV modules:&#xA;    To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio&#xA;    Disabled:                    world&#xA;    Disabled by dependency:      -&#xA;    Unavailable:                 java python2 ts&#xA;    Applications:                -&#xA;    Documentation:               NO&#xA;    Non-free algorithms:         NO&#xA;&#xA;  GUI:                           GTK3&#xA;    GTK&#x2B;:                        YES (ver 3.24.24)&#xA;      GThread :                  YES (ver 2.66.8)&#xA;      GtkGlExt:                  NO&#xA;    VTK support:                 NO&#xA;  Media I/O: &#xA;    ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)&#xA;    JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 62)&#xA;    WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x020e)&#xA;    PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37)&#xA;    TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.2.0)&#xA;    JPEG 2000:                   build (ver 2.4.0)&#xA;    OpenEXR:                     build (ver 2.3.0)&#xA;    HDR:                         YES&#xA;    SUNRASTER:                   YES&#xA;    PXM:                         YES&#xA;    PFM:                         YES&#xA;  Video I/O:&#xA;    DC1394:                      YES (2.2.6)&#xA;    FFMPEG:                      YES&#xA;      avcodec:                   YES (58.91.100)&#xA;      avformat:                  YES (58.45.100)&#xA;      avutil:                    YES (56.51.100)&#xA;      swscale:                   YES (5.7.100)&#xA;      avresample:                YES (4.0.0)&#xA;    GStreamer:                   YES (1.18.4)&#xA;    v4l/v4l2:                    YES (linux/videodev2.h)&#xA;&#xA;  Parallel framework:            pthreads&#xA;&#xA;  Trace:                         YES (with Intel ITT)&#xA;&#xA;  Other third-party libraries:&#xA;    Intel IPP:                   2020.0.0 Gold [2020.0.0]&#xA;    VA:                          YES&#xA;    Lapack:                      NO&#xA;    Eigen:                       NO&#xA;    Custom HAL:                  NO&#xA;    Protobuf:                    build (3.19.1)&#xA;&#xA;  OpenCL:                        YES (INTELVA)&#xA;    Include path:                /home/xxx&#xA;    Link libraries:              Dynamic load&#xA;&#xA;  Python 3:&#xA;    Interpreter:                 /usr/bin/python3 (ver 3.9.2)&#xA;    Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.9.so (ver 3.9.2)&#xA;    numpy:                       /home/../include (ver 1.19.3)&#xA;    install path:                python/cv2/python-3&#xA;

    &#xA;

    vainfo

    &#xA;

    libva info: VA-API version 1.10.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_8&#xA;libva info: va_openDriver() returns 0&#xA;vainfo: VA-API version: 1.10 (libva 2.10.0)&#xA;vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1&#xA;vainfo: Supported profile and entrypoints&#xA;      VAProfileMPEG2Simple            : VAEntrypointVLD&#xA;      VAProfileMPEG2Simple            : VAEntrypointEncSlice&#xA;      VAProfileMPEG2Main              : VAEntrypointVLD&#xA;      VAProfileMPEG2Main              : VAEntrypointEncSlice&#xA;      VAProfileH264ConstrainedBaseline: VAEntrypointVLD&#xA;      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice&#xA;      VAProfileH264Main               : VAEntrypointVLD&#xA;      VAProfileH264Main               : VAEntrypointEncSlice&#xA;      VAProfileH264High               : VAEntrypointVLD&#xA;      VAProfileH264High               : VAEntrypointEncSlice&#xA;      VAProfileH264MultiviewHigh      : VAEntrypointVLD&#xA;      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice&#xA;      VAProfileH264StereoHigh         : VAEntrypointVLD&#xA;      VAProfileH264StereoHigh         : VAEntrypointEncSlice&#xA;      VAProfileVC1Simple              : VAEntrypointVLD&#xA;      VAProfileVC1Main                : VAEntrypointVLD&#xA;      VAProfileVC1Advanced            : VAEntrypointVLD&#xA;      VAProfileNone                   : VAEntrypointVideoProc&#xA;      VAProfileJPEGBaseline           : VAEntrypointVLD&#xA;

    &#xA;

    import os&#xA;import cv2&#xA;&#xA;os.environ["OPENCV_FFMPEG_CAPTURE_OPTIONS"] = "hw_decoders_any;vaapi,vdpau" &#x2B;&#xA;&#xA;cap = cv2.VideoCapture(file_name,cv2.CAP_FFMPEG(cv2.CAP_PROP_HW_ACCELERATION,cv2.VIDEO_ACCELERATION_ANY))  &#xA;&#xA;

    &#xA;

    error code

    &#xA;

    [ INFO:0@0.187] global /home/u/opencv-python/opencv/modules/videoio/src/videoio_registry.cpp (223) VideoBackendRegistry VIDEOIO: Enabled backends(8, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); V4L2(970); CV_IMAGES(960); CV_MJPEG(950); FIREWIRE(940); UEYE(930)&#xA;[OPENCV:FFMPEG:40] Reinit context to 1920x1088, pix_fmt: yuv420p&#xA;[OPENCV:FFMPEG:40] Trying to use DRM render node for device 0.&#xA;[OPENCV:FFMPEG:40] libva: VA-API version 1.10.0&#xA;libva: User environment variable requested driver &#x27;i965&#x27;&#xA;libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so&#xA;libva: Found init function __vaDriverInit_1_8&#xA;libva: va_openDriver() returns 0&#xA;Initialised VAAPI connection: version 1.10&#xA;[OPENCV:FFMPEG:40] VAAPI driver: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1.&#xA;[OPENCV:FFMPEG:40] Driver not found in known nonstandard list, using standard behaviour.&#xA;[ INFO:0@0.228] global /home/u/opencv-python/opencv/modules/videoio/src/cap_ffmpeg_hw.hpp (276) hw_check_device FFMPEG: Using vaapi video acceleration on device: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1&#xA;[ INFO:0@0.228] global /home/u/opencv-python/opencv/modules/videoio/src/cap_ffmpeg_hw.hpp (566) hw_create_device FFMPEG: Created video acceleration context (av_hwdevice_ctx_create) for vaapi on device &#x27;default&#x27;&#xA;[ INFO:0@0.228] global /home/u/opencv-python/opencv/modules/core/src/ocl.cpp (1186) haveOpenCL Initialize OpenCL runtime...&#xA;[ INFO:0@0.228] global /home/u/opencv-python/opencv/modules/core/src/ocl.cpp (1192) haveOpenCL OpenCL: found 0 platforms&#xA;File open : ./videoplayback1.mp4&#xA;[OPENCV:FFMPEG:40] Reinit context to 1920x1088, pix_fmt: vaapi_vld&#xA;[OPENCV:FFMPEG:16] Failed to read image from surface 0x4000014: 18 (invalid parameter).&#xA;[ERROR:0@0.245] global /home/u/opencv-python/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1575) retrieveFrame Error copying data from GPU to CPU (av_hwframe_transfer_data)&#xA;Play video ... size=1920x1080, file=./videoplayback1.mp4&#xA;[OPENCV:FFMPEG:16] Failed to read image from surface 0x4000012: 18 (invalid parameter).&#xA;[ERROR:0@0.277] global /home/u/opencv-python/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1575) retrieveFrame Error copying data from GPU to CPU (av_hwframe_transfer_data)&#xA;OpenCV(4.6.0) Error: Assertion failed (!image.empty()) in imencode, file /home/u/opencv-python/opencv/modules/imgcodecs/src/loadsave.cpp, line 976&#xA;err =  OpenCV(4.6.0) /home/u/opencv-python/opencv/modules/imgcodecs/src/loadsave.cpp:976: error: (-215:Assertion failed) !image.empty() in function &#x27;imencode&#x27;&#xA;&#xA;

    &#xA;

    I tried to do video capture by ffmpeg hwacceleration with opencv, but an error message occurred

    &#xA;

  • why reducing the resolution a percentage doesn't reduce the video the same proportion using ffmpeg ?

    14 mars 2023, par user44551

    I'm using this command :

    &#xA;

    -y -r -i $inVideoUri -movflags faststart -c:v libx265 -s $videoResolution -c:a copy -preset ultrafast $outPutUri"&#xA;

    &#xA;

    However, if "videoResolution" is a 50% of the original video resolution, the resulting file size is not 50% of the original one. I assume there are some headers or metadata added during the process but I would like to know how to estimate the final video size.

    &#xA;