Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (18)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (5038)

  • FFmpeg av_dump_format showing incorrect output, but ffprobe displays correct metadata

    29 janvier, par グルグル

    I use ffmpeg 7.1 source build on windows and compilation configuration as follow :

    


    configuration:
  --toolchain=msvc
  --arch=x86_64
  --enable-x86asm
  --enable-asm
  --enable-shared
  --enable-w32threads
  --prefix=/D/build


    


    When I use av_dump_format to print metadata of test.mp3, it display the incorrect information.

    


    extern "C"&#xA;{&#xA;#include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;int main()&#xA;{ &#xA;    av_log_set_level(AV_LOG_DEBUG);&#xA;&#xA;    auto url = "D:/music/test.mp3";&#xA;&#xA;    AVFormatContext* fmt;&#xA;    auto ret = avformat_open_input(&amp;fmt, url, nullptr, nullptr);&#xA;    if (ret &lt; 0)&#xA;    {&#xA;        av_log(nullptr, AV_LOG_ERROR, "Cannot open %s format : %s", url, av_err2str(ret));&#xA;        exit(EXIT_FAILURE);&#xA;    }&#xA;&#xA;    av_dump_format(fmt, 0, url, 0);&#xA;}&#xA;

    &#xA;

    output

    &#xA;

    [AVFormatContext @ 000001768E65BC40] Opening &#x27;D:/music/test.mp3&#x27; for reading&#xA;[file @ 000001768E65C180] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[mp3 @ 000001768E65BC40] Format mp3 probed with size=4096 and score=51&#xA;id3v2 ver:4 flags:00 len:35&#xA;[mp3 @ 000001768E65BC40] pad 576 576&#xA;[mp3 @ 000001768E65BC40] Skipping 0 bytes of junk at 462.&#xA;Input #0, mp3, from &#x27;D:/music/test.mp3&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: N/A, bitrate: N/A&#xA;  Stream #0:0, 0, 1/14112000: Audio: mp3, 0 channels&#xA;      Metadata:&#xA;        encoder         : Lavc58.13&#xA;

    &#xA;

    You can see the Stream info is useless.

    &#xA;

    But I use ffprobe which is built with same configuration to print metadata of test.mp3.

    &#xA;

    It's display normal.

    &#xA;

    ffprobe version 7.0.1 Copyright (c) 2007-2024 the FFmpeg developers&#xA;  built with Microsoft (R) C/C&#x2B;&#x2B; Optimizing Compiler Version 19.41.34123 for x64&#xA;  configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --prefix=/D/build&#xA;  WARNING: library configuration mismatch&#xA;  avutil      configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  avcodec     configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  avformat    configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  avdevice    configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  avfilter    configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  swscale     configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  swresample  configuration: --toolchain=msvc --arch=x86_64 --enable-x86asm --enable-asm --enable-shared --enable-w32threads --disable-programs --disable-doc --disable-static --prefix=/D/build&#xA;  libavutil      59.  8.100 / 59. 39.100&#xA;  libavcodec     61.  3.100 / 61. 19.100&#xA;  libavformat    61.  1.100 / 61.  7.100&#xA;  libavdevice    61.  1.100 / 61.  3.100&#xA;  libavfilter    10.  1.100 / 10.  4.100&#xA;  libswscale      8.  1.100 /  8.  3.100&#xA;  libswresample   5.  1.100 /  5.  3.100&#xA;Input #0, mp3, from &#x27;D:\music\test.mp3&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:05:00.12, start: 0.025057, bitrate: 128 kb/s&#xA;  Stream #0:0: Audio: mp3 (mp3float), 44100 Hz, stereo, fltp, 128 kb/s&#xA;      Metadata:&#xA;        encoder         : Lavc58.13&#xA;

    &#xA;

    Why is av_dump_format not correctly showing stream information ? How can I fix it ?

    &#xA;

  • OpenCV on MacOS : Match Camera Index and Name

    15 janvier, par rpi_guru

    I have a builtin camera and a USB webcam connected to my MacOS.

    &#xA;

    Here is a result of system_profiler SPCameraDataType -xml command :

    &#xA;

    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;&#xA;<plist version="1.0">&#xA;<array>&#xA;    <dict>&#xA;        <key>_SPCommandLineArguments</key>&#xA;        <array>&#xA;            <string>/usr/sbin/system_profiler</string>&#xA;            <string>-nospawn</string>&#xA;            <string>-xml</string>&#xA;            <string>SPCameraDataType</string>&#xA;            <string>-detailLevel</string>&#xA;            <string>full</string>&#xA;        </array>&#xA;        <key>_SPCompletionInterval</key>&#xA;        <real>1.1997909545898438</real>&#xA;        <key>_SPResponseTime</key>&#xA;        <real>1.2810090780258179</real>&#xA;        <key>_dataType</key>&#xA;        <string>SPCameraDataType</string>&#xA;        <key>_detailLevel</key>&#xA;        <integer>-1</integer>&#xA;        <key>_items</key>&#xA;        <array>&#xA;            <dict>&#xA;                <key>_name</key>&#xA;                <string>USB Camera</string>&#xA;                <key>spcamera_model-id</key>&#xA;                <string>UVC Camera VendorID_3141 ProductID_25453</string>&#xA;                <key>spcamera_unique-id</key>&#xA;                <string>0x11000000c45636d</string>&#xA;            </dict>&#xA;            <dict>&#xA;                <key>_name</key>&#xA;                <string>FaceTime HD Camera</string>&#xA;                <key>spcamera_model-id</key>&#xA;                <string>FaceTime HD Camera</string>&#xA;                <key>spcamera_unique-id</key>&#xA;                <string>EAB7A68F-EC2B-4487-AADF-D8A91C1CB782</string>&#xA;            </dict>&#xA;        </array>&#xA;        <key>_parentDataType</key>&#xA;        <string>SPHardwareDataType</string>&#xA;        <key>_properties</key>&#xA;        <dict>&#xA;            <key>_name</key>&#xA;            <dict>&#xA;                <key>_isColumn</key>&#xA;                <string>NO</string>&#xA;                <key>_isOutlineColumn</key>&#xA;                <string>NO</string>&#xA;                <key>_order</key>&#xA;                <string>0</string>&#xA;            </dict>&#xA;            <key>spcamera</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>10</string>&#xA;            </dict>&#xA;            <key>spcamera_model-id</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>30</string>&#xA;            </dict>&#xA;            <key>spcamera_unique-id</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>40</string>&#xA;            </dict>&#xA;            <key>volumes</key>&#xA;            <dict>&#xA;                <key>_detailLevel</key>&#xA;                <string>0</string>&#xA;            </dict>&#xA;        </dict>&#xA;        <key>_timeStamp</key>&#xA;        <date>2024-11-29T21:57:28Z</date>&#xA;        <key>_versionInfo</key>&#xA;        <dict>&#xA;            <key>com.apple.SystemProfiler.SPCameraReporter</key>&#xA;            <string>1.2.0</string>&#xA;        </dict>&#xA;    </dict>&#xA;</array>&#xA;</plist>&#xA;

    &#xA;

    As you can see, I have a couple of video input devices : USB Camera & FaceTime HD Camera

    &#xA;

    The problem is that when I use cap = cv2.VideoCapture(0), it uses the FaceTime HD Camera.

    &#xA;

    Can we match the camera index in OpenCV with the camera names ?

    &#xA;

    P.S. I tried ffmpeg, but it returned similar result :

    &#xA;

    enter image description here

    &#xA;

    ioreg | grep -i cam result :

    &#xA;

    enter image description here

    &#xA;

  • ffmpeg video to rtsp not working, ffmpeg is not reading the video frame by frame [closed]

    15 janvier, par Leroy Jeslyn

    Here's the ffmpeg command :

    &#xA;

    gst-launch-1.0 videotestsrc ! decodebin ! videoconvert ! videoscale \&#xA; ! video/x-raw,width=1280,height=720 ! x264enc speed-preset=ultrafast \&#xA; tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=5000 sync=false \&#xA; ! rtspserver service=0/test&#xA;

    &#xA;

    The output was :

    &#xA;

    ffmpeg version 7.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers                                   &#xA;  built with gcc 14.2.0 (Rev1, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-&#xA;libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth &#xA;--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libqui&#xA;rc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 &#xA;--enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable&#xA;-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-&#xA;cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-lib&#xA;shaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enab&#xA;le-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --e&#xA;nable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      59. 39.100 / 59. 39.100&#xA;  libavcodec     61. 19.100 / 61. 19.100&#xA;  libavformat    61.  7.100 / 61.  7.100&#xA;  libavdevice    61.  3.100 / 61.  3.100&#xA;  libavfilter    10.  4.100 / 10.  4.100&#xA;  libswscale      8.  3.100 /  8.  3.100&#xA;  libswresample   5.  3.100 /  5.  3.100&#xA;  libpostproc    58.  3.100 / 58.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;Render/fire3.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp41isom&#xA;    creation_time   : 2025-01-08T13:10:15.000000Z&#xA;  Duration: 00:01:21.79, start: 0.000000, bitrate: 12799 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 12798 kb/s, 14 fps, 14 tbr, 14k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2025-01-08T13:10:15.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : AVC Coding&#xA;[out#0/rtsp @ 00000178486d9a00] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0000017848d200c0] using SAR=1/1&#xA;[libx264 @ 0000017848d200c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0000017848d200c0] profile High, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0000017848d200c0] 264 - core 164 r3192 c24e06c - H.264/MPEG-4 AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 d&#xA;eblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_q&#xA;p_offset=-2 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 &#xA;direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=14 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;&#xA;

    &#xA;

    This is were the output stopped, instead of reading the video frame by frame, it stops here and runs indefinitely. I tried to use VLC and python script to read the rtsp url, but that didn't work.&#xA;I tried the alternative using GStreamer, but i couldn't install rtsp-server on Windows 11.

    &#xA;

    Thank you for your time, any suggestion or answers are appreciated. The end goal is to convert a video to a rtsp url.

    &#xA;