Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (71)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (9130)

  • 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;

  • How to : stream with ffmpeg and nginx rtmp, Ubuntu

    3 décembre 2020, par WurmD

    nginx installed with https://nginx.org/en/linux_packages.html in Ubuntu 18.04

    &#xA;

    sudo apt -y install curl gnupg2 ca-certificates lsb-release ;&#xA;echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list ;&#xA;curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - ;&#xA;sudo apt update ;&#xA;sudo apt install nginx ;&#xA;

    &#xA;

    nginx up and running

    &#xA;

    $ ps -aux | grep nginx&#xA;root      5602  0.0  0.0  33348   880 ?        Ss   17:03   0:00 nginx: master process nginx&#xA;nginx     5603  0.0  0.0  33744  2748 ?        S    17:03   0:00 nginx: worker process&#xA;

    &#xA;

    with /etc/nginx/nginx.conf

    &#xA;

    rtmp {&#xA;    server {&#xA;        listen 1935;&#xA;        chunk_size 4096;&#xA;&#xA;        application live {&#xA;            live on;&#xA;            record off;&#xA;            allow publish 127.0.0.1;&#xA;            deny publish all;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p -f flv rtmp://localhost/live/test yields

    &#xA;

    ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Input #0, lavfi, from &#x27;testsrc&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc&#xA;[tcp @ 0x5611668b8c00] Connection to tcp://localhost:1935 failed: Connection refused&#xA;[rtmp @ 0x5611668b8520] Cannot open connection tcp://localhost:1935&#xA;rtmp://localhost/live: Connection refused&#xA;

    &#xA;

    Clue :&#xA;Nothing seems to be listening on port 1935. netstat -tap | grep 1935 yields nothing&#xA;Clue2 :&#xA;Albeit ps shows app as running, systemctl status nginx.service shows app status down

    &#xA;

    ● nginx.service - nginx - high performance web server&#xA;   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)&#xA;   Active: failed (Result: exit-code) since Thu 2020-12-03 19:37:17 CET; 7min ago&#xA;     Docs: http://nginx.org/en/docs/&#xA;  Process: 5709 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)&#xA;

    &#xA;

    Things checked given other stackoverflow questions :

    &#xA;

      &#xA;
    • trying to connect to rtmp://localhost/live/test and in nginx.conf the application is correctly named live
    • &#xA;

    • nginx.conf correctly placed at /etc/nginx/, no other nginx.conf files exist, and nginx -s reload called to make sure it is loaded
    • &#xA;

    • no localhost instances in the conf file, all renamed to 127.0.0.1
    • &#xA;

    &#xA;

  • asp.net core live mp4 streaming

    8 octobre 2020, par kdma

    Prologue :

    &#xA;

    I have a hikvision ipcamera that streams raw h264 from a rtsp :// url, I need to play this live feed in the browser.

    &#xA;

    I managed to get a basic RTSP->ffmpeg-> (faststart) mp4 pipeline working and I can play the video when saved to a file.

    &#xA;

    I don't understand how to make my controller action "streamable".

    &#xA;

    I've tried various approaches like writing to Response.Body, Transfer-Encoding : chunked but nothing seems to work.&#xA;Here is the basic code :

    &#xA;

    public IActionResult Play5(){    &#xA;      var ms = new MemoryStream();&#xA;      var muxer = new RTSPToMp4(ms);&#xA;      Task.Run(() => muxer.Stream());&#xA;      return new FileStreamResult(ms, "video/mp4");&#xA;}&#xA;

    &#xA;

    The memory stream contains the live feed but the response is empty here is the request\response from chrome :

    &#xA;

    Request

    &#xA;

    method: GET&#xA;:path: /api/stream/play5&#xA;:scheme: https&#xA;accept: */*&#xA;accept-encoding: identity;q=1, *;q=0&#xA;accept-language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7&#xA;cache-control: no-cache&#xA;pragma: no-cache&#xA;range: bytes=0-&#xA;referer: https://localhost:5001/Stream&#xA;sec-fetch-dest: video&#xA;sec-fetch-mode: no-cors&#xA;sec-fetch-site: same-origin&#xA;user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36&#xA;

    &#xA;

    Response

    &#xA;

    content-length: 0&#xA;content-type: video/mp4&#xA;date: Thu, 08 Oct 2020 14:31:06 GMT&#xA;server: Kestrel&#xA;status: 200&#xA;

    &#xA;

    Am I missing something ?

    &#xA;