Recherche avancée

Médias (91)

Autres articles (45)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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

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

  • no difference between h264 and h264_cuvid

    10 juillet 2020, par Ruslan Ablyazov

    I use libav to decode an RTSP stream. I tried two code options : with auto codec selection and with hardcoded codec.

    


    pCodec = avcodec_find_decoder (pFormatCtx->streams[p_InputVideoStreamIndex]->codecpar->codec_id);&#xA;//pCodec = avcodec_find_decoder_by_name ("h264_cuvid");&#xA;&#xA;LOG (info) &lt;&lt; "Video codec name" &lt;&lt; pCodec->name &lt;&lt; ". Full name:" &lt;&lt; (pCodec->long_name? PCodec->long_name: "<null>");&#xA;</null>

    &#xA;

    The avcodec_find_decoder() function returns h264 codec. The problem is that the speed and load on the CPU when using h264 is no different from h264_cuvid. What could be the reason ? When I use h264_cuvid, the video card is loaded by 2-3% more.

    &#xA;

    Video stream : 1920x1080 25 FPS (main and high profile).&#xA;Video card : NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1).&#xA;Processor : Intel (R) Core (TM) i5-8400 CPU @ 2.80GHz.

    &#xA;

    Compilation config ffmpeg :

    &#xA;

    ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --enable-gpl --enable-ladspa --enable-libpulse --enable-libsoxr --enable-libspeex --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --enable -libass --enable-libfreetype --enable-libmp3lame --enable-nonfree --disable-ffplay --enable-libxvid --enable-cuda --enable-cuda-nvcc --enable-cuda-sdk --enable- cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-shared --extra-cflags = -I/usr/local/cuda/include --extra-ldflags = -L/usr/local/cuda/lib64&#xA;

    &#xA;

  • Picking the right gpu for ffmpeg decoding/encoding with nvidia/cuda

    14 avril 2020, par Reza Mir

    I am writing code using ffmpeg/nvidia/cuda library to decode and encode some video. I am trying to pick one specific GPU for decoding/encoding among some existing GPUs installed on the system. Here is the list of existing GPUs :

    &#xA;&#xA;

     nvidia-smi &#xA;Tue Apr 14 00:14:59 2020       &#xA;&#x2B;-----------------------------------------------------------------------------&#x2B;&#xA;| NVIDIA-SMI 440.64.00    Driver Version: 440.64.00    CUDA Version: 10.2     |&#xA;|-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |&#xA;| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |&#xA;|===============================&#x2B;======================&#x2B;======================|&#xA;|   0  GeForce RTX 208...  On   | 00000000:1A:00.0 Off |                  N/A |&#xA;| 41%   33C    P8    20W / 260W |      0MiB / 11019MiB |      0%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;|   1  GeForce GTX 108...  On   | 00000000:1B:00.0 Off |                  N/A |&#xA;| 41%   65C    P2   182W / 250W |   7167MiB / 11178MiB |     53%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;|   2  GeForce GTX 108...  On   | 00000000:1E:00.0 Off |                  N/A |&#xA;| 14%   55C    P2    61W / 250W |   1943MiB / 11178MiB |     26%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;|   3  Quadro P5000        On   | 00000000:3D:00.0 Off |                  Off |&#xA;| 26%   33C    P8     6W / 180W |      1MiB / 16278MiB |      0%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;|   4  TITAN RTX           On   | 00000000:3E:00.0 Off |                  N/A |&#xA;| 41%   38C    P0    72W / 280W |      0MiB / 24220MiB |      0%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;|   5  TITAN RTX           On   | 00000000:41:00.0 Off |                  N/A |&#xA;| 40%   32C    P8    14W / 280W |      0MiB / 24220MiB |      0%      Default |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;&#xA;

    &#xA;&#xA;

    I would like to pick GPU #3 in my code and use it for decoding. I am using h264_nvenc and h264_cuvid as encoder and decoder in my program and setting the options of decoder/encoder using the following code :

    &#xA;&#xA;

    av_opt_set(decoder_context->priv_data, "gpu", "Quadro P5000", 0);&#xA;

    &#xA;&#xA;

    But this code doesn't pick Quadro GPU for decoding/encoding. Instead, it always goes to GPU #4 in my test :

    &#xA;&#xA;

    nvidia-smi pmon | grep tx&#xA;    4      20096     C    22     3    44    16   tx            &#xA;    4      20096     C    26     4    49    17   tx            &#xA;    4      20096     C    25     4    49    17   tx     &#xA;

    &#xA;

  • I have a TTS code what uses discord.js/Node.js And it keeps giving me this error

    1er décembre 2020, par rowisacode

    So the code gets the user input, and puts it in a fill. but it keeps fiving me this error

    &#xA;

    made "./778055120285073448-tts_message.txt" text file for tts                                      &#xA;stdout: [02:37:03] Reading text [started]                                                                                                               &#xA;[02:37:03] Reading text [completed]                                                                                                                     &#xA;[02:37:03] Splitting text [started]&#xA;[02:37:03] Splitting text [completed]                                                                                                                   &#xA;[02:37:03] Convert to audio [started]                                                                                                                   &#xA;[02:37:03] Convert to audio (0/1) [title changed]                                                                                                       &#xA;[02:37:03] Convert to audio (0/1) [title changed]                                                                                                       &#xA;[02:37:04] Convert to audio (1/1) [title changed]                                                                                                       &#xA;[02:37:04] Convert to audio (1/1) [completed]                                                                                                           &#xA;[02:37:04] Combine audio [started]                                                                                                                      &#xA;[02:37:04] Combine audio [failed]                                                                                                                       &#xA;[02:37:04] → ffmpeg returned an error (1):                                                                                                              &#xA;Error: unable to open display                                                                                                                           &#xA;ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers                                                                                     &#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)                                                                                                        &#xA;  configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm  &#xA;  libavutil      56. 51.100 / 56. 51.100                                                                                                                &#xA;  libavcodec     58. 91.100 / 58. 91.100                                                                                                                &#xA;  libavformat    58. 45.100 / 58. 45.100                                                                                                                &#xA;  libavdevice    58. 10.100 / 58. 10.100                                                                                                                &#xA;  libavfilter     7. 85.100 /  7. 85.100                                                                                                                &#xA;  libswscale      5.  7.100 /  5.  7.100                                                                                                                &#xA;  libswresample   3.  7.100 /  3.  7.100                                                                                                                &#xA;  libpostproc    55.  7.100 / 55.  7.100                                                                                                                &#xA;/tmp/a39913dc-89f3-4923-b044-10861892e959.txt: No such file or directory&#xA;

    &#xA;

    It says it is unable to open display

    &#xA;

    &#xA;

    Error : unable to open display

    &#xA;

    &#xA;

    I tried running the code from a line, and from a file. but it always gives my the same error. I don't know what is causing it but I hope someone can help.

    &#xA;