Recherche avancée

Médias (91)

Autres articles (62)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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.

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10949)

  • Error "sys/videoio.h - not found" OpenCV 3.1.0

    22 mars 2017, par Jefferson Rodriguez

    I using Elementary OS and I’m trying to install OpenCV 3.1.0, I follow the instructions of http://docs.opencv.org/3.0-beta/doc/tutorials/introduction/linux_install/linux_install.html
    Also, I have installed libav 11.7 and ffmpeg 3.1.3
    but, after cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
    I get :

    — Looking for linux/videodev.h

    — Looking for linux/videodev.h - found

    — Looking for linux/videodev2.h

    — Looking for linux/videodev2.h - found

    — Looking for sys/videoio.h

    — Looking for sys/videoio.h - not found

    — Looking for libavformat/avformat.h

    — Looking for libavformat/avformat.h - found

    — Looking for ffmpeg/avformat.h

    — Looking for ffmpeg/avformat.h - not found

    — checking for module ’libgphoto2’

    — package ’libgphoto2’ not found
    And after make,
    I get :
    ../../lib/libopencv_videoio.so.3.1.0 : referencia a

    av_frame_alloc' sin definir <br />
    ../../lib/libopencv_videoio.so.3.1.0: referencia a

    av_frame_free’ sin definir
    collect2 : error : ld returned 1 exit status
    make[2] : * [bin/opencv_test_video] Error 1
    make[1] : *
    [modules/video/CMakeFiles/opencv_test_video.dir/all] Error 2

    someone who can help me ?

  • How can I build a custom version of opencv while enabling CUDA and opengl ?

    1er avril, par Josh

    I have a hard requirement of python3.7 for certain libraries (aeneas & afaligner). I've been using the regular opencv-python and ffmpeg libraries in my program and they've been working find.

    &#xA;

    Recently I wanted to adjust my program to use h264 instead of mpeg4 and ran down a licensing rabbit hole of how opencv-python uses a build of ffmpeg with opengl codecs off to avoid licensing issues. x264 is apparently opengl, and is disabled in the opencv-python library.

    &#xA;

    In order to solve this issue, I built a custom build of opencv using another custom build of ffmpeg both with opengl enabled. This allowed me to use the x264 encoder with the VideoWriter in my python program.

    &#xA;

    Here's the dockerfile of how I've been running it :

    &#xA;&#xA;

    FROM python:3.7-slim&#xA;&#xA;# Set optimization flags and number of cores globally&#xA;ENV CFLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;    CXXFLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;    LDFLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;    MAKEFLAGS="-j\$(nproc)"&#xA;&#xA;# Combine all system dependencies in a single layer&#xA;RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends \&#xA;    build-essential \&#xA;    cmake \&#xA;    git \&#xA;    wget \&#xA;    unzip \&#xA;    yasm \&#xA;    pkg-config \&#xA;    libsm6 \&#xA;    libxext6 \&#xA;    libxrender-dev \&#xA;    libglib2.0-0 \&#xA;    libavcodec-dev \&#xA;    libavformat-dev \&#xA;    libswscale-dev \&#xA;    libavutil-dev \&#xA;    libswresample-dev \&#xA;    nasm \&#xA;    mercurial \&#xA;    libnuma-dev \&#xA;    espeak \&#xA;    libespeak-dev \&#xA;    libtiff5-dev \&#xA;    libjpeg62-turbo-dev \&#xA;    libopenjp2-7-dev \&#xA;    zlib1g-dev \&#xA;    libfreetype6-dev \&#xA;    liblcms2-dev \&#xA;    libwebp-dev \&#xA;    tcl8.6-dev \&#xA;    tk8.6-dev \&#xA;    python3-tk \&#xA;    libharfbuzz-dev \&#xA;    libfribidi-dev \&#xA;    libxcb1-dev \&#xA;    python3-dev \&#xA;    python3-setuptools \&#xA;    libsndfile1 \&#xA;    libavdevice-dev \&#xA;    libavfilter-dev \&#xA;    libpostproc-dev \&#xA;    &amp;&amp; apt-get clean \&#xA;    &amp;&amp; rm -rf /var/lib/apt/lists/*&#xA;&#xA;# Build x264 with optimizations&#xA;RUN cd /tmp &amp;&amp; \&#xA;    wget https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 &amp;&amp; \&#xA;    tar xjf x264-master.tar.bz2 &amp;&amp; \&#xA;    cd x264-master &amp;&amp; \&#xA;    ./configure \&#xA;        --enable-shared \&#xA;        --enable-pic \&#xA;        --enable-asm \&#xA;        --enable-lto \&#xA;        --enable-strip \&#xA;        --enable-optimizations \&#xA;        --bit-depth=8 \&#xA;        --disable-avs \&#xA;        --disable-swscale \&#xA;        --disable-lavf \&#xA;        --disable-ffms \&#xA;        --disable-gpac \&#xA;        --disable-lsmash \&#xA;        --extra-cflags="-O3 -march=native -ffast-math -fomit-frame-pointer -flto -fno-fat-lto-objects" \&#xA;        --extra-ldflags="-O3 -flto -fno-fat-lto-objects" &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    cd /tmp &amp;&amp; \&#xA;    # Build FFmpeg with optimizations&#xA;    wget https://ffmpeg.org/releases/ffmpeg-7.1.tar.bz2 &amp;&amp; \&#xA;    tar xjf ffmpeg-7.1.tar.bz2 &amp;&amp; \&#xA;    cd ffmpeg-7.1 &amp;&amp; \&#xA;    ./configure \&#xA;        --enable-gpl \&#xA;        --enable-libx264 \&#xA;        --enable-shared \&#xA;        --enable-nonfree \&#xA;        --enable-pic \&#xA;        --enable-asm \&#xA;        --enable-optimizations \&#xA;        --enable-lto \&#xA;        --enable-pthreads \&#xA;        --disable-debug \&#xA;        --disable-static \&#xA;        --disable-doc \&#xA;        --disable-ffplay \&#xA;        --disable-ffprobe \&#xA;        --disable-filters \&#xA;        --disable-programs \&#xA;        --disable-postproc \&#xA;        --extra-cflags="-O3 -march=native -ffast-math -fomit-frame-pointer -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;        --extra-ldflags="-O3 -flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        --prefix=/usr/local &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    ldconfig &amp;&amp; \&#xA;    rm -rf /tmp/*&#xA;&#xA;# Install Python dependencies first&#xA;RUN pip install --no-cache-dir --upgrade pip setuptools wheel &amp;&amp; \&#xA;    pip install --no-cache-dir numpy py-spy&#xA;&#xA;# Build OpenCV with optimized configuration&#xA;RUN cd /tmp &amp;&amp; \&#xA;    # Download specific OpenCV version archives&#xA;    wget -O opencv.zip https://github.com/opencv/opencv/archive/4.8.0.zip &amp;&amp; \&#xA;    wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.8.0.zip &amp;&amp; \&#xA;    unzip opencv.zip &amp;&amp; \&#xA;    unzip opencv_contrib.zip &amp;&amp; \&#xA;    mv opencv-4.8.0 opencv &amp;&amp; \&#xA;    mv opencv_contrib-4.8.0 opencv_contrib &amp;&amp; \&#xA;    rm opencv.zip opencv_contrib.zip &amp;&amp; \&#xA;    cd opencv &amp;&amp; \&#xA;    mkdir build &amp;&amp; cd build &amp;&amp; \&#xA;    cmake \&#xA;        -D CMAKE_BUILD_TYPE=RELEASE \&#xA;        -D CMAKE_C_FLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;        -D CMAKE_CXX_FLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections -Wno-deprecated" \&#xA;        -D CMAKE_EXE_LINKER_FLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        -D CMAKE_SHARED_LINKER_FLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        -D CMAKE_INSTALL_PREFIX=/usr/local \&#xA;        -D ENABLE_FAST_MATH=ON \&#xA;        -D CPU_BASELINE_DETECT=ON \&#xA;        -D CPU_BASELINE=SSE3 \&#xA;        -D CPU_DISPATCH=SSE4_1,SSE4_2,AVX,AVX2,AVX512_SKX,FP16 \&#xA;        -D WITH_OPENMP=ON \&#xA;        -D OPENCV_ENABLE_NONFREE=ON \&#xA;        -D WITH_FFMPEG=ON \&#xA;        -D FFMPEG_ROOT=/usr/local \&#xA;        -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv_contrib/modules \&#xA;        -D PYTHON_EXECUTABLE=/usr/local/bin/python3.7 \&#xA;        -D PYTHON3_EXECUTABLE=/usr/local/bin/python3.7 \&#xA;        -D PYTHON3_INCLUDE_DIR=/usr/local/include/python3.7m \&#xA;        -D PYTHON3_LIBRARY=/usr/local/lib/libpython3.7m.so \&#xA;        -D PYTHON3_PACKAGES_PATH=/usr/local/lib/python3.7/site-packages \&#xA;        -D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/local/lib/python3.7/site-packages/numpy/core/include \&#xA;        -D BUILD_opencv_python3=ON \&#xA;        -D INSTALL_PYTHON_EXAMPLES=OFF \&#xA;        -D BUILD_TESTS=OFF \&#xA;        -D BUILD_PERF_TESTS=OFF \&#xA;        -D BUILD_EXAMPLES=OFF \&#xA;        -D BUILD_DOCS=OFF \&#xA;        -D BUILD_opencv_apps=OFF \&#xA;        -D WITH_OPENCL=OFF \&#xA;        -D WITH_CUDA=OFF \&#xA;        -D WITH_IPP=OFF \&#xA;        -D WITH_TBB=OFF \&#xA;        -D WITH_V4L=OFF \&#xA;        -D WITH_QT=OFF \&#xA;        -D WITH_GTK=OFF \&#xA;        -D BUILD_LIST=core,imgproc,imgcodecs,videoio,python3 \&#xA;        .. &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    ldconfig &amp;&amp; \&#xA;    rm -rf /tmp/*&#xA;&#xA;# Set working directory and copy application code&#xA;WORKDIR /app&#xA;&#xA;COPY requirements.txt .&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends ffmpeg&#xA;&#xA;RUN pip install --no-cache-dir aeneas afaligner &amp;&amp; \&#xA;    pip install --no-cache-dir -r requirements.txt&#xA;&#xA;COPY . .&#xA;&#xA;# Make entrypoint executable&#xA;RUN chmod &#x2B;x entrypoint.sh&#xA;ENTRYPOINT ["./entrypoint.sh"]&#xA;

    &#xA;

    My trouble now, is I've been considering running parts of my program on my GPU, it's creating graphics for a video after all. I have no idea how to edit my Dockerfile to make the opencv build run with CUDA enabled, every combination I try leads to issues.

    &#xA;

    How can I tell which version of CUDA, opencv and ffmpeg are compatible with python 3.7 ?

    &#xA;

  • How can I build a custom version of opencv while enabling CUDA and opengl ? [closed]

    10 février, par Josh

    I have a hard requirement of python3.7 for certain libraries (aeneas & afaligner). I've been using the regular opencv-python and ffmpeg libraries in my program and they've been working find.

    &#xA;

    Recently I wanted to adjust my program to use h264 instead of mpeg4 and ran down a licensing rabbit hole of how opencv-python uses a build of ffmpeg with opengl codecs off to avoid licensing issues. x264 is apparently opengl, and is disabled in the opencv-python library.

    &#xA;

    In order to solve this issue, I built a custom build of opencv using another custom build of ffmpeg both with opengl enabled. This allowed me to use the x264 encoder with the VideoWriter in my python program.

    &#xA;

    Here's the dockerfile of how I've been running it :

    &#xA;&#xA;

    FROM python:3.7-slim&#xA;&#xA;# Set optimization flags and number of cores globally&#xA;ENV CFLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;    CXXFLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;    LDFLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;    MAKEFLAGS="-j\$(nproc)"&#xA;&#xA;# Combine all system dependencies in a single layer&#xA;RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends \&#xA;    build-essential \&#xA;    cmake \&#xA;    git \&#xA;    wget \&#xA;    unzip \&#xA;    yasm \&#xA;    pkg-config \&#xA;    libsm6 \&#xA;    libxext6 \&#xA;    libxrender-dev \&#xA;    libglib2.0-0 \&#xA;    libavcodec-dev \&#xA;    libavformat-dev \&#xA;    libswscale-dev \&#xA;    libavutil-dev \&#xA;    libswresample-dev \&#xA;    nasm \&#xA;    mercurial \&#xA;    libnuma-dev \&#xA;    espeak \&#xA;    libespeak-dev \&#xA;    libtiff5-dev \&#xA;    libjpeg62-turbo-dev \&#xA;    libopenjp2-7-dev \&#xA;    zlib1g-dev \&#xA;    libfreetype6-dev \&#xA;    liblcms2-dev \&#xA;    libwebp-dev \&#xA;    tcl8.6-dev \&#xA;    tk8.6-dev \&#xA;    python3-tk \&#xA;    libharfbuzz-dev \&#xA;    libfribidi-dev \&#xA;    libxcb1-dev \&#xA;    python3-dev \&#xA;    python3-setuptools \&#xA;    libsndfile1 \&#xA;    libavdevice-dev \&#xA;    libavfilter-dev \&#xA;    libpostproc-dev \&#xA;    &amp;&amp; apt-get clean \&#xA;    &amp;&amp; rm -rf /var/lib/apt/lists/*&#xA;&#xA;# Build x264 with optimizations&#xA;RUN cd /tmp &amp;&amp; \&#xA;    wget https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 &amp;&amp; \&#xA;    tar xjf x264-master.tar.bz2 &amp;&amp; \&#xA;    cd x264-master &amp;&amp; \&#xA;    ./configure \&#xA;        --enable-shared \&#xA;        --enable-pic \&#xA;        --enable-asm \&#xA;        --enable-lto \&#xA;        --enable-strip \&#xA;        --enable-optimizations \&#xA;        --bit-depth=8 \&#xA;        --disable-avs \&#xA;        --disable-swscale \&#xA;        --disable-lavf \&#xA;        --disable-ffms \&#xA;        --disable-gpac \&#xA;        --disable-lsmash \&#xA;        --extra-cflags="-O3 -march=native -ffast-math -fomit-frame-pointer -flto -fno-fat-lto-objects" \&#xA;        --extra-ldflags="-O3 -flto -fno-fat-lto-objects" &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    cd /tmp &amp;&amp; \&#xA;    # Build FFmpeg with optimizations&#xA;    wget https://ffmpeg.org/releases/ffmpeg-7.1.tar.bz2 &amp;&amp; \&#xA;    tar xjf ffmpeg-7.1.tar.bz2 &amp;&amp; \&#xA;    cd ffmpeg-7.1 &amp;&amp; \&#xA;    ./configure \&#xA;        --enable-gpl \&#xA;        --enable-libx264 \&#xA;        --enable-shared \&#xA;        --enable-nonfree \&#xA;        --enable-pic \&#xA;        --enable-asm \&#xA;        --enable-optimizations \&#xA;        --enable-lto \&#xA;        --enable-pthreads \&#xA;        --disable-debug \&#xA;        --disable-static \&#xA;        --disable-doc \&#xA;        --disable-ffplay \&#xA;        --disable-ffprobe \&#xA;        --disable-filters \&#xA;        --disable-programs \&#xA;        --disable-postproc \&#xA;        --extra-cflags="-O3 -march=native -ffast-math -fomit-frame-pointer -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;        --extra-ldflags="-O3 -flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        --prefix=/usr/local &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    ldconfig &amp;&amp; \&#xA;    rm -rf /tmp/*&#xA;&#xA;# Install Python dependencies first&#xA;RUN pip install --no-cache-dir --upgrade pip setuptools wheel &amp;&amp; \&#xA;    pip install --no-cache-dir numpy py-spy&#xA;&#xA;# Build OpenCV with optimized configuration&#xA;RUN cd /tmp &amp;&amp; \&#xA;    # Download specific OpenCV version archives&#xA;    wget -O opencv.zip https://github.com/opencv/opencv/archive/4.8.0.zip &amp;&amp; \&#xA;    wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.8.0.zip &amp;&amp; \&#xA;    unzip opencv.zip &amp;&amp; \&#xA;    unzip opencv_contrib.zip &amp;&amp; \&#xA;    mv opencv-4.8.0 opencv &amp;&amp; \&#xA;    mv opencv_contrib-4.8.0 opencv_contrib &amp;&amp; \&#xA;    rm opencv.zip opencv_contrib.zip &amp;&amp; \&#xA;    cd opencv &amp;&amp; \&#xA;    mkdir build &amp;&amp; cd build &amp;&amp; \&#xA;    cmake \&#xA;        -D CMAKE_BUILD_TYPE=RELEASE \&#xA;        -D CMAKE_C_FLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections" \&#xA;        -D CMAKE_CXX_FLAGS="-O3 -march=native -ffast-math -flto -fno-fat-lto-objects -ffunction-sections -fdata-sections -Wno-deprecated" \&#xA;        -D CMAKE_EXE_LINKER_FLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        -D CMAKE_SHARED_LINKER_FLAGS="-flto -fno-fat-lto-objects -Wl,--gc-sections" \&#xA;        -D CMAKE_INSTALL_PREFIX=/usr/local \&#xA;        -D ENABLE_FAST_MATH=ON \&#xA;        -D CPU_BASELINE_DETECT=ON \&#xA;        -D CPU_BASELINE=SSE3 \&#xA;        -D CPU_DISPATCH=SSE4_1,SSE4_2,AVX,AVX2,AVX512_SKX,FP16 \&#xA;        -D WITH_OPENMP=ON \&#xA;        -D OPENCV_ENABLE_NONFREE=ON \&#xA;        -D WITH_FFMPEG=ON \&#xA;        -D FFMPEG_ROOT=/usr/local \&#xA;        -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv_contrib/modules \&#xA;        -D PYTHON_EXECUTABLE=/usr/local/bin/python3.7 \&#xA;        -D PYTHON3_EXECUTABLE=/usr/local/bin/python3.7 \&#xA;        -D PYTHON3_INCLUDE_DIR=/usr/local/include/python3.7m \&#xA;        -D PYTHON3_LIBRARY=/usr/local/lib/libpython3.7m.so \&#xA;        -D PYTHON3_PACKAGES_PATH=/usr/local/lib/python3.7/site-packages \&#xA;        -D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/local/lib/python3.7/site-packages/numpy/core/include \&#xA;        -D BUILD_opencv_python3=ON \&#xA;        -D INSTALL_PYTHON_EXAMPLES=OFF \&#xA;        -D BUILD_TESTS=OFF \&#xA;        -D BUILD_PERF_TESTS=OFF \&#xA;        -D BUILD_EXAMPLES=OFF \&#xA;        -D BUILD_DOCS=OFF \&#xA;        -D BUILD_opencv_apps=OFF \&#xA;        -D WITH_OPENCL=OFF \&#xA;        -D WITH_CUDA=OFF \&#xA;        -D WITH_IPP=OFF \&#xA;        -D WITH_TBB=OFF \&#xA;        -D WITH_V4L=OFF \&#xA;        -D WITH_QT=OFF \&#xA;        -D WITH_GTK=OFF \&#xA;        -D BUILD_LIST=core,imgproc,imgcodecs,videoio,python3 \&#xA;        .. &amp;&amp; \&#xA;    make &amp;&amp; \&#xA;    make install &amp;&amp; \&#xA;    ldconfig &amp;&amp; \&#xA;    rm -rf /tmp/*&#xA;&#xA;# Set working directory and copy application code&#xA;WORKDIR /app&#xA;&#xA;COPY requirements.txt .&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends ffmpeg&#xA;&#xA;RUN pip install --no-cache-dir aeneas afaligner &amp;&amp; \&#xA;    pip install --no-cache-dir -r requirements.txt&#xA;&#xA;COPY . .&#xA;&#xA;# Make entrypoint executable&#xA;RUN chmod &#x2B;x entrypoint.sh&#xA;ENTRYPOINT ["./entrypoint.sh"]&#xA;

    &#xA;

    My trouble now, is I've been considering running parts of my program on my GPU, it's creating graphics for a video after all. I have no idea how to edit my Dockerfile to make the opencv build run with CUDA enabled, every combination I try leads to issues.

    &#xA;

    How can I tell which version of CUDA, opencv and ffmpeg are compatible with python 3.7 ? I've tried so so many combinations and they all lead to different issues, I've asked various AI agents and they all flounder. Where can I find a reliable source of information about this ?

    &#xA;