Recherche avancée

Médias (91)

Autres articles (104)

  • 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

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11987)

  • avfilter/dnn : Refactor DNN parameter configuration system

    7 mai 2024, par Zhao Zhili
    avfilter/dnn : Refactor DNN parameter configuration system
    

    This patch trying to resolve mulitiple issues related to parameter
    configuration :

    Firstly, each DNN filters duplicate DNN_COMMON_OPTIONS, which should
    be the common options of backend.

    Secondly, backend options are hidden behind the scene. It's a
    AV_OPT_TYPE_STRING backend_configs for user, and parsed by each
    backend. We don't know each backend support what kind of options
    from the help message.

    Third, DNN backends duplicate DNN_BACKEND_COMMON_OPTIONS.

    Last but not the least, pass backend options via AV_OPT_TYPE_STRING
    makes it hard to pass AV_OPT_TYPE_BINARY to backend, if not impossible.

    This patch puts backend common options and each backend options inside
    DnnContext to reduce code duplication, make options user friendly, and
    easy to extend for future usecase.

    For example,

    ./ffmpeg -h filter=dnn_processing

    dnn_processing AVOptions :
    dnn_backend <int> ..FV....... DNN backend (from INT_MIN to INT_MAX) (default tensorflow)
    tensorflow 1 ..FV....... tensorflow backend flag
    openvino 2 ..FV....... openvino backend flag
    torch 3 ..FV....... torch backend flag

    dnn_base AVOptions :
    model <string> ..F........ path to model file
    input <string> ..F........ input name of the model
    output <string> ..F........ output name of the model
    backend_configs <string> ..F.......P backend configs (deprecated)
    options <string> ..F.......P backend configs (deprecated)
    nireq <int> ..F........ number of request (from 0 to INT_MAX) (default 0)
    async <boolean> ..F........ use DNN async inference (default true)
    device <string> ..F........ device to run model

    dnn_tensorflow AVOptions :
    sess_config <string> ..F........ config for SessionOptions

    dnn_openvino AVOptions :
    batch_size <int> ..F........ batch size per request (from 1 to 1000) (default 1)
    input_resizable <boolean> ..F........ can input be resizable or not (default false)
    layout <int> ..F........ input layout of model (from 0 to 2) (default none)
    none 0 ..F........ none
    nchw 1 ..F........ nchw
    nhwc 2 ..F........ nhwc
    scale <float> ..F........ Add scale preprocess operation. Divide each element of input by specified value. (from INT_MIN to INT_MAX) (default 0)
    mean <float> ..F........ Add mean preprocess operation. Subtract specified value from each element of input. (from INT_MIN to INT_MAX) (default 0)

    dnn_th AVOptions :
    optimize <int> ..F........ turn on graph executor optimization (from 0 to 1) (default 0)

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>
    Reviewed-by : Wenbin Chen <wenbin.chen@intel.com>
    Reviewed-by : Guo Yejun <yejun.guo@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_common.h
    • [DH] libavfilter/dnn/dnn_backend_openvino.c
    • [DH] libavfilter/dnn/dnn_backend_tf.c
    • [DH] libavfilter/dnn/dnn_backend_torch.cpp
    • [DH] libavfilter/dnn/dnn_interface.c
    • [DH] libavfilter/dnn_filter_common.c
    • [DH] libavfilter/dnn_filter_common.h
    • [DH] libavfilter/dnn_interface.h
    • [DH] libavfilter/vf_derain.c
    • [DH] libavfilter/vf_dnn_classify.c
    • [DH] libavfilter/vf_dnn_detect.c
    • [DH] libavfilter/vf_dnn_processing.c
    • [DH] libavfilter/vf_sr.c
  • D3D11 hardware screen recording with ffmpeg using Intel H264 QSV hardware encoding

    13 mai 2024, par Cactus

    I'm trying to screen record using ffmpeg and having it all done via hardware on my Intel integrated graphics.

    &#xA;

    Specs

    &#xA;

    For reference, here are my specs :

    &#xA;

      &#xA;
    • Windows 11 Pro Version 10.0.22631 Build 22631
    • &#xA;

    • Model : Dell Inc. OptiPlex 3090
    • &#xA;

    • Processor : 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz, 2995 Mhz, 2 Core(s), 4 Logical Processor(s)
    • &#xA;

    • Terminal : Windows Terminal using Windows Powershell
    • &#xA;

    &#xA;

    In this wiki, it looked like I could use the "Windows 8+ Desktop Duplication API" to be "directly encoded by a compatible hardware encoder" — so I thought that I could use h264_qsv to encode, allowing me to record without much performance overhead costs.

    &#xA;

    Attempt 1

    &#xA;

    I've tried copying one of the command examples, but it didn't work :

    &#xA;

    ffmpeg -init_hw_device d3d11va -filter_complex ddagrab=0 &#xA;

    &#xA;

    Output :

    &#xA;

    ffmpeg version 2024-05-02-git-71669f2ad5-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-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. 16.101 / 59. 16.101&#xA;  libavcodec     61.  5.103 / 61.  5.103&#xA;  libavformat    61.  3.103 / 61.  3.103&#xA;  libavdevice    61.  2.100 / 61.  2.100&#xA;  libavfilter    10.  2.101 / 10.  2.101&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;Stream mapping:&#xA;  ddagrab:default -> Stream #0:0 (h264_qsv)&#xA;Press [q] to stop, [?] for help&#xA;Impossible to convert between the formats supported by the filter &#x27;Parsed_ddagrab_0&#x27; and the filter &#x27;auto_scale_0&#x27;&#xA;[fc#0 @ 000001e4ed4393c0] Error configuring filter graph: Function not implemented&#xA;[fc#0 @ 000001e4ed4393c0] Task finished with error code: -40 (Function not implemented)&#xA;[fc#0 @ 000001e4ed4393c0] Terminating thread with return code -40 (Function not implemented)&#xA;[vost#0:0/h264_qsv @ 000001e4ed454000] Could not open encoder before EOF&#xA;[vost#0:0/h264_qsv @ 000001e4ed454000] Task finished with error code: -22 (Invalid argument)&#xA;[vost#0:0/h264_qsv @ 000001e4ed454000] Terminating thread with return code -22 (Invalid argument)&#xA;[out#0/matroska @ 000001e4ed453280] Nothing was written into output file, because at least one of its streams received no packets.&#xA;frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A&#xA;Conversion failed!&#xA;

    &#xA;

    Attempt 2

    &#xA;

    I then tried copying one of the command examples in the linked ddagrab wiki page, but also no luck.

    &#xA;

    ffmpeg -f lavfi -i ddagrab -c:v h264_qsv output.mkv&#xA;

    &#xA;

    Output :

    &#xA;

    ffmpeg version 2024-05-02-git-71669f2ad5-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-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. 16.101 / 59. 16.101&#xA;  libavcodec     61.  5.103 / 61.  5.103&#xA;  libavformat    61.  3.103 / 61.  3.103&#xA;  libavdevice    61.  2.100 / 61.  2.100&#xA;  libavfilter    10.  2.101 / 10.  2.101&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;Input #0, lavfi, from &#x27;ddagrab&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Video: wrapped_avframe, d3d11, 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn&#xA;File &#x27;output.mkv&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_qsv))&#xA;Press [q] to stop, [?] for help&#xA;Impossible to convert between the formats supported by the filter &#x27;Parsed_null_0&#x27; and the filter &#x27;auto_scale_0&#x27;&#xA;[vf#0:0 @ 00000115e105bd40] Error reinitializing filters!&#xA;[vf#0:0 @ 00000115e105bd40] Task finished with error code: -40 (Function not implemented)&#xA;[vf#0:0 @ 00000115e105bd40] Terminating thread with return code -40 (Function not implemented)&#xA;[vost#0:0/h264_qsv @ 00000115e105aa00] Could not open encoder before EOF&#xA;[vost#0:0/h264_qsv @ 00000115e105aa00] Task finished with error code: -22 (Invalid argument)&#xA;[vost#0:0/h264_qsv @ 00000115e105aa00] Terminating thread with return code -22 (Invalid argument)&#xA;[out#0/matroska @ 00000115e1054b80] Nothing was written into output file, because at least one of its streams received no packets.&#xA;frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A&#xA;Conversion failed!&#xA;

    &#xA;

    My main problem is that I don't know how to use really any of these encoders and the examples I've found above don't work with me. What command should I use to screen record all with hardware acceleration on my Intel system ? I don't care about any presets or other options at the moment.

    &#xA;

    Is there also a way to record audio ? When I tried to use -f dshow -i audio="Stereo Mix (Realtek(R) Audio)" by itself, which I made sure was turned on in Windows' settings and named correctly, it didn't work (is it because I'm using Bluetooth headphones that isn't connected to Realtek's system ?). Should this question be made separately than this one ?

    &#xA;

  • Is ffmpeg a good upscaler from SD to HD ? [closed]

    15 août 2014, par user3928079

    Is ffmpeg a good upscaler to convert SD videos to HD ?

    I use the AVANTI GUI. I installed it and put the ffmpeg and ffplay exe into the folder ffmpeg in the program folder. What I know is that you can only preserve the detail when you upscale from SD to HD. You don’t really gain any additional information. TV companies like Samsung, Sony, LG, Panasonic, Sharp, and others refuse to think so and push the boundaries of upscaling so that additional information can be added when the image is upscaled from SD to HD and HD to 4K and so on and so forth. I’ve run a test through the AVANTI ffmpeg GUI.

    Codec : XVID to H.264
    Bitrate : 1640 kbps to 6000 kbps
    Resolution : 640x480 to 1440x1080
    Format : AVI to M4V
    Audio Codec : AC3 to AAC
    Audio Bitrate : 192 kbps
    Audio Frequency : 48000 Hz
    Upscale method : Spline

    Will this upscale method work in any way with converting SD video to HD video. There’s a lot of SD content out that haven’t made the transition to, or probably never will be, HD.