Recherche avancée

Médias (91)

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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 (...)

Sur d’autres sites (11355)

  • Building ffmpeg on Windows from Chromium - make : *** No rule to make target 'libavcodec\avcodec-57.dll'. Stop

    14 septembre 2016, par Catalin Fratila

    I am trying to compile ffmpeg on a Windows machine, using mingw64 and msys2.

    But when I run : "build_ffmpeg.py win ia32" (same result with x64), I get :

    /c/libchromiumcontent/src/third_party/ffmpeg/chromium/scripts
    $ ./build_ffmpeg.py win ia32
    install prefix            /usr/local
    source path               /c/libchromiumcontent/src/third_party/ffmpeg
    C compiler                gcc
    C library                 mingw64
    ARCH                      x86 (generic)
    big-endian                no
    runtime cpu detection     yes
    yasm                      yes
    MMX enabled               yes
    MMXEXT enabled            yes
    3DNow! enabled            yes
    3DNow! extended enabled   yes
    SSE enabled               yes
    SSSE3 enabled             yes
    AESNI enabled             yes
    AVX enabled               yes
    XOP enabled               yes
    FMA3 enabled              yes
    FMA4 enabled              yes
    i686 features enabled     yes
    CMOV is fast              yes
    EBX available             yes
    EBP available             yes
    debug symbols             yes
    strip symbols             yes
    optimize for size         no
    optimizations             yes
    static                    yes
    shared                    no
    postprocessing support    no
    new filter support        no
    network support           no
    threading support         w32threads
    safe bitstream reader     yes
    SDL support               no
    opencl enabled            no
    texi2html enabled         no
    perl enabled              no
    pod2man enabled           no
    makeinfo enabled          no
    makeinfo supports HTML    no

    Enabled programs:

    External libraries:

    Enabled decoders:
    pcm_alaw                  pcm_f32le                 pcm_mulaw                 pcm_s16be                 pcm_s16le                 pcm_s24be                 pcm_s24le                 pcm_s32le                 pcm_u8                    vorbis

    Enabled encoders:

    Enabled hwaccels:

    Enabled parsers:
    opus                      vorbis

    Enabled demuxers:
    matroska                  ogg                       wav

    Enabled muxers:

    Enabled protocols:

    Enabled filters:

    Enabled bsfs:

    Enabled indevs:

    Enabled outdevs:

    License: LGPL version 2.1 or later
    Creating config.mak, config.h, and doc/config.texi...
    make: *** No rule to make target 'libavcodec\avcodec-57.dll'.  Stop.
    System information:
    Host OS       : win
    Target OS     : win
    Host arch     : x64
    Target arch   : ia32
    Parallel jobs : 4

    Chromium configure/build:
    Running ['sh.exe', 'C:\\libchromiumcontent\\src\\third_party\\ffmpeg\\configure', '--disable-everything', '--disable-all', '--disable-doc', '--disable-htmlpages', '--disable-manpages', '--disable-podpages', '--disable-txtpages', '--disable-static', '--enable-avcodec', '--enable-avformat', '--enable-avutil', '--enable-fft', '--enable-rdft', '--enable-static', '--disable-bzlib', '--disable-error-resilience', '--disable-iconv', '--disable-lzo', '--disable-network', '--disable-schannel', '--disable-sdl', '--disable-symver', '--disable-xlib', '--disable-zlib', '--disable-securetransport', '--disable-d3d11va', '--disable-dxva2', '--disable-vaapi', '--disable-vda', '--disable-vdpau', '--disable-videotoolbox', '--enable-decoder=vorbis', '--enable-decoder=pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le', '--enable-decoder=pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw', '--enable-demuxer=ogg,matroska,wav', '--enable-parser=opus,vorbis', '--optflags="-O2"', '--enable-decoder=theora,vp8', '--enable-parser=vp3,vp8', '--toolchain=msvc', '--cpu=opteron', '--enable-yasm', '--extra-cflags=-IC:\\libchromiumcontent\\src\\third_party\\ffmpeg\\chromium/include/win', '--target-os=mingw32', '--enable-memalign-hack', '--cc=gcc-sjlj']
    Running ['make', '-j4', 'libavcodec\\avcodec-57.dll', 'libavformat\\avformat-57.dll', 'libavutil\\avutil-55.dll']
    Traceback (most recent call last):
     File "./build_ffmpeg.py", line 631, in <module>
       sys.exit(main(sys.argv[1:]))
     File "./build_ffmpeg.py", line 596, in main
       configure_args)
     File "./build_ffmpeg.py", line 588, in do_build_ffmpeg
       options.config_only, branding, configure_flags)
     File "./build_ffmpeg.py", line 217, in BuildFFmpeg
       ['make', '-j%d' % parallel_jobs] + libraries, cwd=config_dir)
     File "./build_ffmpeg.py", line 92, in PrintAndCheckCall
       subprocess.check_call(argv, *args, **kwargs)
     File "C:\Python27\lib\subprocess.py", line 541, in check_call
       raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', '-j4', 'libavcodec\\avcodec-57.dll', 'libavformat\\avformat-57.dll', 'libavutil\\avutil-55.dll']' returned non-zero exit status 2
    </module>

    Has anyone seen this issue before ? Have all the pre-requisites from here : https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW

    Thanks.

  • ffmpeg - Build HLS stream with all tracks of the input source

    25 juillet 2021, par Kaydee Dunlop

    I would like to create HLS streams for videos. I'm working since more than 2 days now to find a solution that might work but no luck till now to get all tracks of the input inside my HLS output.

    &#xA;

    What I want in the end is a small script that can merge all tracks form a mp4 imput together and create a proper master.m3u8 playlist referencing all other m3u8 playlists of my m4s, webvtt and audio snippets. Currently I don't have adaptive streaming implemented. To save bandwidth I only want to have one video stream output at a max resolution of 1080p @ 3 Mbit/s.

    &#xA;

    This is my current state of work, please feel free to to use it :

    &#xA;

    #!/usr/bin/env bash&#xA;LC_NUMERIC="en_US.UTF-8"&#xA;START_TIME=$SECONDS&#xA;set -e&#xA;&#xA;echo "-----START GENERATING HLS STREAM-----"&#xA;# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]&#xA;[[ ! "${1}" ]] &amp;&amp; echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" &amp;&amp; exit 1&#xA;&#xA;# comment/add lines here to control which renditions will be created&#xA;renditions=(&#xA;# resolution  bitrate  audio-rate&#xA;  "1920x1080  3000k    128k"&#xA;)&#xA;&#xA;segment_target_duration=20      # try to create a new segment every 10 seconds&#xA;max_bitrate_ratio=1.07          # maximum accepted bitrate fluctuations&#xA;rate_monitor_buffer_ratio=1.5   # maximum buffer size between bitrate conformance checks&#xA;&#xA;#########################################################################&#xA;&#xA;source="${1}"&#xA;target="${2}"&#xA;if [[ ! "${target}" ]]; then&#xA;  target="${source##*/}" # leave only last component of path&#xA;  target="${target%.*}"  # strip extension&#xA;fi&#xA;mkdir -p ${target}&#xA;&#xA;# ----CUSTOM----&#xA;sourceResolution="$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 ${source})"&#xA;# echo ${sourceResolution}&#xA;arrIN=(${sourceResolution//x/ })&#xA;sourceWidth="${arrIN[0]}"&#xA;sourceHeight="${arrIN[1]}"&#xA;&#xA;echo ${sourceWidth}&#xA;echo ${sourceHeight}&#xA;&#xA;sourceAudioBitRate="$(ffprobe -v error -select_streams a:0 -show_entries stream=bit_rate -of csv=s=x:p=0 ${source})"&#xA;sourceAudioBitRateFormatted=$((sourceAudioBitRate / 1000))&#xA;# ----END CUSTOM----&#xA;&#xA;key_frames_interval="$(echo `ffprobe ${source} 2>&amp;1 | grep -oE &#x27;[[:digit:]]&#x2B;(.[[:digit:]]&#x2B;)? fps&#x27; | grep -oE &#x27;[[:digit:]]&#x2B;(.[[:digit:]]&#x2B;)?&#x27;`*2 | bc || echo &#x27;&#x27;)"&#xA;key_frames_interval=${key_frames_interval:-50}&#xA;key_frames_interval=$(echo `printf "%.1f\n" $(bc -l &lt;&lt;&lt;"$key_frames_interval/10")`*10 | bc) # round&#xA;key_frames_interval=${key_frames_interval%.*} # truncate to integer&#xA;&#xA;# static parameters that are similar for all renditions&#xA;static_params="-c:s webvtt -c:a aac -ar 48000 -c:v copy -sc_threshold 0"&#xA;static_params&#x2B;=" -g ${key_frames_interval} -keyint_min ${key_frames_interval} -hls_time ${segment_target_duration}"&#xA;static_params&#x2B;=" -hls_playlist_type vod -hls_segment_type fmp4"&#xA;static_params&#x2B;=" -var_stream_map v:0,a:0,s:0"&#xA;&#xA;# misc params&#xA;misc_params="-hide_banner -y"&#xA;&#xA;master_playlist="#EXTM3U&#xA;#EXT-X-VERSION:3&#xA;"&#xA;cmd=""&#xA;resolutionValid=0&#xA;prevHeight=0&#xA;for rendition in "${renditions[@]}"; do&#xA;  # drop extraneous spaces&#xA;  rendition="${rendition/[[:space:]]&#x2B;/ }"&#xA;&#xA;  # rendition fields&#xA;  resolution="$(echo ${rendition} | cut -d &#x27; &#x27; -f 1)"&#xA;  bitrate="$(echo ${rendition} | cut -d &#x27; &#x27; -f 2)"&#xA;  audiorate="$(echo ${rendition} | cut -d &#x27; &#x27; -f 3)"&#xA;&#xA;  audioBitRateFormatted=${audiorate%?} # remove "k" at the last index&#xA;&#xA;  # take highest possible audio bit rate&#xA;  if [ $audioBitRateFormatted -gt $sourceAudioBitRateFormatted ]; then&#xA;      audiorate=${sourceAudioBitRateFormatted}k&#xA;  fi&#xA;&#xA;  # calculated fields&#xA;  width="$(echo ${resolution} | grep -oE &#x27;^[[:digit:]]&#x2B;&#x27;)"&#xA;  height="$(echo ${resolution} | grep -oE &#x27;[[:digit:]]&#x2B;$&#x27;)"&#xA;  maxrate="$(echo "`echo ${bitrate} | grep -oE &#x27;[[:digit:]]&#x2B;&#x27;`*${max_bitrate_ratio}" | bc)"&#xA;  bufsize="$(echo "`echo ${bitrate} | grep -oE &#x27;[[:digit:]]&#x2B;&#x27;`*${rate_monitor_buffer_ratio}" | bc)"&#xA;  bandwidth="$(echo ${bitrate} | grep -oE &#x27;[[:digit:]]&#x2B;&#x27;)000"&#xA;  name="stream"&#xA;  &#xA;  widthParam=0&#xA;  heightParam=0&#xA;&#xA;  if [ $(((width / sourceWidth) * sourceHeight)) -gt $height ]; then&#xA;    widthParam=-2&#xA;    heightParam=$height&#xA;  else&#xA;    widthParam=$width&#xA;    heightParam=-2&#xA;  fi&#xA;  &#xA;  #cmd&#x2B;=" ${static_params} -vf scale=w=${widthParam}:h=${heightParam}"&#xA;  cmd&#x2B;=" -b:v ${bitrate} -maxrate ${maxrate%.*}k -bufsize ${bufsize%.*}k -b:a ${audiorate}"&#xA;  cmd&#x2B;=" -hls_segment_filename ${target}/${name}_%03d.m4s ${target}/${name}.m3u8"&#xA;  &#xA;  # add rendition entry in the master playlist&#xA;  master_playlist&#x2B;="#EXT-X-STREAM-INF:BANDWIDTH=${bandwidth},RESOLUTION=${resolution}\n${name}.m3u8\n"&#xA;&#xA;  resolutionValid=1&#xA;  prevHeight=${height}&#xA;done&#xA;&#xA;if [ $resolutionValid -eq 1 ]; then&#xA;  # start conversion&#xA;  echo -e "Executing command:\nffmpeg ${misc_params} -i ${source} ${cmd}\n"&#xA;  ffmpeg ${misc_params} -i ${source} ${cmd}&#xA;  # create master playlist file&#xA;  echo -e "${master_playlist}" > ${target}/playlist.m3u8&#xA;  echo "Done - encoded HLS is at ${target}/"&#xA;else&#xA;  echo "Video source is too small"&#xA;  exit 1&#xA;fi&#xA;&#xA;ELAPSED_TIME=$(($SECONDS - $START_TIME))&#xA;&#xA;echo "Elapsed time: ${ELAPSED_TIME}"&#xA;echo "-----FINISH GENERATING HLS STREAM-----"&#xA;

    &#xA;

  • Open VideoStream using OpenCV 4.5.1 works on Windows but fails on Docker python:3.9.2-slim-buster for specific IP cam

    18 mai 2021, par Qua285

    I have 2 ip cameras - one of Hikvision and another of Provision ISR. Both use Onvif and work on VLC.&#xA;I've written a simple python script to record images every 5 sec from their video stream.&#xA;On Windows 10, using VSCode they both work as expected. Once deployed to a Docker container, my script works as expected with the Hikvision but fails with the Provision ISR - it doesn't open the stream.

    &#xA;

    Running python -c "import cv2; print(cv2.getBuildInformation())" on windows (venv 3.9.2) and on docker machine bring slightly different results but it's beyond my understanding to take something out of it...&#xA;Here is the Windows one :

    &#xA;

    General configuration for OpenCV 4.5.1 =====================================&#xA;  Version control:               4.5.1&#xA;&#xA;  Platform:&#xA;    Timestamp:                   2021-01-02T14:30:58Z&#xA;    Host:                        Windows 6.3.9600 AMD64&#xA;    CMake:                       3.18.4&#xA;    CMake generator:             Visual Studio 14 2015 Win64&#xA;    CMake build tool:            C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe&#xA;    MSVC:                        1900&#xA;&#xA;  CPU/HW features:&#xA;    Baseline:                    SSE SSE2 SSE3&#xA;      requested:                 SSE3&#xA;    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2&#xA;      requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX&#xA;      SSE4_1 (15 files):         &#x2B; SSSE3 SSE4_1&#xA;      SSE4_2 (1 files):          &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2&#xA;      FP16 (0 files):            &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX&#xA;      AVX (4 files):             &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 AVX&#xA;      AVX2 (29 files):           &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2&#xA;&#xA;  C/C&#x2B;&#x2B;:&#xA;    Built as dynamic libs?:      NO&#xA;    C&#x2B;&#x2B; standard:                11&#xA;    C&#x2B;&#x2B; Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe  (ver 19.0.24241.7)&#xA;    C&#x2B;&#x2B; flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 &#xA;/MP  /MT /O2 /Ob2 /DNDEBUG&#xA;    C&#x2B;&#x2B; flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 &#xA;/MP  /MTd /Zi /Ob0 /Od /RTC1&#xA;    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe&#xA;    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /MP   /MT /O2 /Ob2 /DNDEBUG&#xA;    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /MP /MTd /Zi /Ob0 /Od /RTC1&#xA;    Linker flags (Release):      /machine:x64  /NODEFAULTLIB:atlthunk.lib /INCREMENTAL:NO  /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:libcpmtd.lib /NODEFAULTLIB:msvcrtd.lib&#xA;    Linker flags (Debug):        /machine:x64  /NODEFAULTLIB:atlthunk.lib /debug /INCREMENTAL  /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:msvcrt.lib&#xA;    ccache:                      NO&#xA;    Precompiled headers:         YES&#xA;    Extra dependencies:          ade wsock32 comctl32 gdi32 ole32 setupapi ws2_32&#xA;    3rdparty dependencies:       ittnotify libprotobuf zlib libjpeg-turbo libwebp libpng libtiff libopenjp2 IlmImf quirc ippiw ippicv&#xA;&#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;  Windows RT support:            NO&#xA;&#xA;  GUI:&#xA;    Win32 UI:                    YES&#xA;    VTK support:                 NO&#xA;&#xA;  Media I/O:&#xA;    ZLib:                        build (ver 1.2.11)&#xA;    JPEG:                        build-libjpeg-turbo (ver 2.0.6-62)&#xA;    WEBP:                        build (ver encoder: 0x020f)&#xA;    PNG:                         build (ver 1.6.37)&#xA;    TIFF:                        build (ver 42 - 4.0.10)&#xA;    JPEG 2000:                   build (ver 2.3.1)&#xA;    OpenEXR:                     build (ver 2.3.0)&#xA;    HDR:                         YES&#xA;    SUNRASTER:                   YES&#xA;    PXM:                         YES&#xA;    PFM:                         YES&#xA;&#xA;  Video I/O:&#xA;    DC1394:                      NO&#xA;    FFMPEG:                      YES (prebuilt binaries)&#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:                   NO&#xA;    DirectShow:                  YES&#xA;    Media Foundation:            YES&#xA;      DXVA:                      NO&#xA;&#xA;  Parallel framework:            Concurrency&#xA;&#xA;  Trace:                         YES (with Intel ITT)&#xA;&#xA;  Other third-party libraries:&#xA;    Intel IPP:                   2020.0.0 Gold [2020.0.0]&#xA;           at:                   C:/Users/appveyor/AppData/Local/Temp/1/pip-req-build-wvn_it83/_skbuild/win-amd64-3.9/cmake-build/3rdparty/ippicv/ippicv_win/icv&#xA;    Intel IPP IW:                sources (2020.0.0)&#xA;              at:                C:/Users/appveyor/AppData/Local/Temp/1/pip-req-build-wvn_it83/_skbuild/win-amd64-3.9/cmake-build/3rdparty/ippicv/ippicv_win/iw&#xA;    Lapack:                      NO&#xA;    Eigen:                       NO&#xA;    Custom HAL:                  NO&#xA;    Protobuf:                    build (3.5.1)&#xA;&#xA;  OpenCL:                        YES (NVD3D11)&#xA;    Include path:                C:/Users/appveyor/AppData/Local/Temp/1/pip-req-build-wvn_it83/opencv/3rdparty/include/opencl/1.2&#xA;    Link libraries:              Dynamic load&#xA;&#xA;  Python 3:&#xA;    Interpreter:                 C:/Python39-x64/python.exe (ver 3.9)&#xA;    Libraries:                   C:/Python39-x64/libs/python39.lib (ver 3.9.0)&#xA;    numpy:                       C:/Users/appveyor/AppData/Local/Temp/1/pip-build-env-sk7r7w_5/overlay/Lib/site-packages/numpy/core/include (ver 1.19.3)&#xA;    install path:                python&#xA;&#xA;  Python (for build):            C:/Python27-x64/python.exe&#xA;&#xA;  Java:&#xA;    ant:                         NO&#xA;    JNI:                         C:/Program Files/Java/jdk1.8.0/include C:/Program Files/Java/jdk1.8.0/include/win32 C:/Program Files/Java/jdk1.8.0/include&#xA;    Java wrappers:               NO&#xA;    Java tests:                  NO&#xA;&#xA;  Install to:                    C:/Users/appveyor/AppData/Local/Temp/1/pip-req-build-wvn_it83/_skbuild/win-amd64-3.9/cmake-install&#xA;-----------------------------------------------------------------&#xA;

    &#xA;

    this is the Docker one (python:3.9.2-slim-buster) :

    &#xA;

    General configuration for OpenCV 4.5.1 =====================================&#xA;  Version control:               4.5.1-dirty&#xA;&#xA;  Platform:&#xA;    Timestamp:                   2021-01-02T13:04:10Z&#xA;    Host:                        Linux 4.15.0-1077-gcp x86_64&#xA;    CMake:                       3.18.4&#xA;    CMake generator:             Unix Makefiles&#xA;    CMake build tool:            /bin/gmake&#xA;    Configuration:               Release&#xA;&#xA;  CPU/HW features:&#xA;    Baseline:                    SSE SSE2 SSE3&#xA;      requested:                 SSE3&#xA;    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX&#xA;      requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX&#xA;      SSE4_1 (15 files):         &#x2B; SSSE3 SSE4_1&#xA;      SSE4_2 (1 files):          &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2&#xA;      FP16 (0 files):            &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX&#xA;      AVX (4 files):             &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 AVX&#xA;      AVX2 (29 files):           &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2&#xA;      AVX512_SKX (4 files):      &#x2B; SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX&#xA;&#xA;  C/C&#x2B;&#x2B;:&#xA;    Built as dynamic libs?:      NO&#xA;    C&#x2B;&#x2B; standard:                11&#xA;    C&#x2B;&#x2B; Compiler:                /usr/lib/ccache/compilers/c&#x2B;&#x2B;  (ver 9.3.1)&#xA;    C&#x2B;&#x2B; flags (Release):         -Wl,-strip-all   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG&#xA;    C&#x2B;&#x2B; flags (Debug):           -Wl,-strip-all   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG&#xA;    C Compiler:                  /usr/lib/ccache/compilers/cc&#xA;    C flags (Release):           -Wl,-strip-all   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG&#xA;    C flags (Debug):             -Wl,-strip-all   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG&#xA;    Linker flags (Release):      -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -L/root/ffmpeg_build/lib  -Wl,--gc-sections -Wl,--as-needed&#xA;    Linker flags (Debug):        -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -L/root/ffmpeg_build/lib  -Wl,--gc-sections -Wl,--as-needed&#xA;    ccache:                      YES&#xA;    Precompiled headers:         NO&#xA;    Extra dependencies:          ade Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent /lib64/libpng.so /lib64/libz.so dl m pthread rt&#xA;    3rdparty dependencies:       ittnotify libprotobuf libjpeg-turbo libwebp libtiff libopenjp2 IlmImf quirc ippiw ippicv&#xA;&#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:&#xA;    QT:                          YES (ver 5.15.0)&#xA;      QT OpenGL support:         NO&#xA;    GTK&#x2B;:                        NO&#xA;    VTK support:                 NO&#xA;&#xA;  Media I/O:&#xA;    ZLib:                        /lib64/libz.so (ver 1.2.7)&#xA;    JPEG:                        libjpeg-turbo (ver 2.0.6-62)&#xA;    WEBP:                        build (ver encoder: 0x020f)&#xA;    PNG:                         /lib64/libpng.so (ver 1.5.13)&#xA;    TIFF:                        build (ver 42 - 4.0.10)&#xA;    JPEG 2000:                   build (ver 2.3.1)&#xA;    OpenEXR:                     build (ver 2.3.0)&#xA;    HDR:                         YES&#xA;    SUNRASTER:                   YES&#xA;    PXM:                         YES&#xA;    PFM:                         YES&#xA;&#xA;  Video I/O:&#xA;    DC1394:                      NO&#xA;    FFMPEG:                      YES&#xA;      avcodec:                   YES (58.109.100)&#xA;      avformat:                  YES (58.61.100)&#xA;      avutil:                    YES (56.60.100)&#xA;      swscale:                   YES (5.8.100)&#xA;      avresample:                NO&#xA;    GStreamer:                   NO&#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;           at:                   /tmp/pip-req-build-ddpkm6fn/_skbuild/linux-x86_64-3.9/cmake-build/3rdparty/ippicv/ippicv_lnx/icv&#xA;    Intel IPP IW:                sources (2020.0.0)&#xA;              at:                /tmp/pip-req-build-ddpkm6fn/_skbuild/linux-x86_64-3.9/cmake-build/3rdparty/ippicv/ippicv_lnx/iw&#xA;    Lapack:                      NO&#xA;    Eigen:                       NO&#xA;    Custom HAL:                  NO&#xA;    Protobuf:                    build (3.5.1)&#xA;&#xA;  OpenCL:                        YES (no extra features)&#xA;    Include path:                /tmp/pip-req-build-ddpkm6fn/opencv/3rdparty/include/opencl/1.2&#xA;    Link libraries:              Dynamic load&#xA;&#xA;  Python 3:&#xA;    Interpreter:                 /opt/python/cp39-cp39/bin/python (ver 3.9)&#xA;    Libraries:                   libpython3.9.a (ver 3.9.0)&#xA;    numpy:                       /tmp/pip-build-env-jqrfyj0w/overlay/lib/python3.9/site-packages/numpy/core/include (ver 1.19.3)&#xA;    install path:                python&#xA;&#xA;  Python (for build):            /bin/python2.7&#xA;&#xA;  Java:&#xA;    ant:                         NO&#xA;    JNI:                         NO&#xA;    Java wrappers:               NO&#xA;    Java tests:                  NO&#xA;&#xA;  Install to:                    /tmp/pip-req-build-ddpkm6fn/_skbuild/linux-x86_64-3.9/cmake-install&#xA;-----------------------------------------------------------------&#xA;

    &#xA;

    If relevant, the docker is installed on an Intel NUC with Ubuntu Desktop 20.04

    &#xA;

    If relevant, this is the dockerfile I've used to build the image :

    &#xA;

    FROM python:3.9.2-slim-buster as builder&#xA;&#xA;# Keeps Python from generating .pyc files in the container&#xA;ENV PYTHONDONTWRITEBYTECODE=1&#xA;# Without this setting, Python never prints anything out.&#xA;ENV PYTHONUNBUFFERED=1&#xA;&#xA;RUN pip install --upgrade pip&#xA;COPY ./Cam/requirements.txt .&#xA;RUN pip install -r requirements.txt&#xA;RUN apt-get update&#xA;RUN apt-get install ffmpeg libsm6 libxext6 -y&#xA;&#xA;WORKDIR /app&#xA;&#xA;FROM builder&#xA;COPY ./Cam .&#xA;CMD ["python", "camStreamer.py"]&#xA;

    &#xA;

    and last, this is the script code (simplified) :

    &#xA;

    import os, logging, threading&#xA;from os.path import join&#xA;import sys, inspect, datetime, time&#xA;from pathlib import Path&#xA;import cv2&#xA;import imutils&#xA;from imutils.video import VideoStream&#xA;&#xA;def StartRecording(showVideoWindow, interval, imagePath):&#xA;    key = None&#xA;    cam = VideoStream(os.getenv("CAM_RTSP")).start()&#xA;    counter = 0&#xA;    try:&#xA;        while True:&#xA;            ## 2 min retry to connect if frame is None&#xA;            if counter > 60/interval*2: break&#xA;&#xA;            ts = time.time()&#xA;            ## Wait for [interval] seconds&#xA;            while ts &#x2B; interval > time.time():&#xA;                continue&#xA;            print(f"Counter: {counter}, ts: {str(ts)}")&#xA;&#xA;            frame = cam.read()&#xA;            if frame is None:&#xA;                counter &#x2B;= 1&#xA;                continue&#xA;            counter = 0&#xA;&#xA;            print("frame is valid")&#xA;            if showVideoWindow:&#xA;                frame = imutils.resize(frame, width=1200)&#xA;                cv2.imshow(&#x27;VIDEO&#x27;, frame)&#xA;&#xA;            imageName = f"{datetime.datetime.fromtimestamp(ts).strftime(&#x27;%Y-%m-%dT%H_%M_%S&#x27;)}.jpg"&#xA;            cv2.imwrite(join(imagePath, imageName), frame)&#xA;            print("saved image to disk")&#xA;&#xA;            key = cv2.waitKey(1) &amp; 0xFF&#xA;            if key == ord(&#x27;q&#x27;) or key == ord(&#x27;r&#x27;):&#xA;                break&#xA;&#xA;    except Exception as e:&#xA;        exc_tb = sys.exc_info()[2]&#xA;        extra = ""&#xA;        print(f"{inspect.stack()[0][3]}: {e} (lineno: {exc_tb.tb_lineno}) {extra}")&#xA;    finally:&#xA;        if showVideoWindow: cv2.destroyAllWindows()&#xA;        cam.stop()&#xA;        return key&#xA;&#xA;&#xA;while True:&#xA;    log.warning(f"Starting {Name}")&#xA;    key = StartRecording(&#xA;                showVideoWindow=(Env.startswith("development") and os.getenv("SHOW_VIDEO") == "True"),&#xA;                interval=int(os.getenv("SAVE_IMAGE_INTERVAL")),&#xA;                imagePath=os.getenv(&#x27;CAPTURE_FOLDER&#x27;)&#xA;                )&#xA;    if key == ord(&#x27;q&#x27;):&#xA;        break&#xA;

    &#xA;

    I apologize for the very long post. Hopefully someone can put me on the right direction...

    &#xA;