Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (30)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6599)

  • OpenCV compilation : How to specify the location of FFmpeg library with cmake

    6 juin 2017, par Beanocean

    I want to compile OpenCV-2.13.2 with gcc-4.8.2, but the version installed in system path is gcc-4.4.6. So I installed gcc-4.8.2 in /opt/compiler/gcc-4.8.2. I compiled FFmpeg successfully with gcc-4.8.2. When I tried to compile OpenCV, I met with some problems.

    In linking stage, there were some libraries can not be found by /opt/compiler/gcc-4.8.2/bin/ld. The error message is as follows :
    enter image description here

    The missing libraries are related with FFmpeg, and I have installed FFmpeg in ~/local/lib. Then I checked the file module/core/CMakeFiles/opencv_pref_core.dir/link.txt, It shows as follows :
    enter image description here

    The ld just did not search the path where I installed FFmpeg. I tried two methods :

    1. add FFmpeg path to env : export LD_LIBRARY_PATH=~/local/lib:$LD_LIBRARY_PATH ;
    2. add -D FFMPEG_INCLUDE_DIRS=~/local/include -D FFMPEG_LIBRARAY_DIRS=~/local/lib to cmake options

    They did not work at all.

  • exception on ffmpeg dll from a c++ visual studio 2015 project

    1er juillet 2017, par user1019140

    I want to use ffmpeg library in a Visual Studio project.
    I want to build an app for WIN32, so I downloaded :

    C:\Users\exa\Downloads\ffmpeg-3.3.2-win32-shared.zip
    C:\Users\exa\Downloads\ffmpeg-3.3.2-win32-dev.zip

    I copied the dlls from the shared zip to the same directory as my generated exe file. And I unzipped the dev zip into a directory of a different project of the same solution called MEDIA_IO.

    Then in the project properties , I added "additional include directories" :

    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\include

    and under the linker, I added "Link library dependencies" :

    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib

    and "Additional dependencies" :

    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\swscale.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\avutil.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\avcodec.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\avformat.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\avfilter.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\postproc.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\swresample.lib
    ..\MEDIA_IO\ffmpeg-3.3.2-win32-dev\lib\avdevice.lib

    I include the headers using :

    extern "C"
    {
    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavformat></libavformat>avformat.h>
    #include <libavutil></libavutil>imgutils.h>
    #include <libavutil></libavutil>samplefmt.h>
    #include <libswscale></libswscale>swscale.h>
    #include <libavutil></libavutil>avstring.h>
    #include <libavutil></libavutil>intreadwrite.h>
    }

    The app compiles fine, but when running it, I’m getting exceptions on many different ffmpeg functions.

    For examples, when running :

    SwsContext * ctx = sws_getContext(560, 320, AV_PIX_FMT_YUV420P, 560,320, AV_PIX_FMT_RGB24, 0, NULL, NULL, NULL);

    I get exception :

    Exception thrown at 0x57E05140 (swscale-4.dll) in UnitTest1.exe: 0xC0000006: In page error executing location 0x57E05140 (status code 0xC0000008).
    Unhandled exception at 0x57E05140 (swscale-4.dll) in UnitTest1.exe: 0xC0000006: In page error executing location 0x57E05140 (status code 0xC0000008).

    It does not tell what are status codes 0xC0000006 and 0xC0000008.
    I dug a lot and could not find the source of the problem.

  • ffmpeg can't work via nginx + nginx-rtmp-module

    2 mai 2018, par Ubunkun

    nginx version : nginx/1.12.2
    ffmpeg version 3.4.2

    I’m trying to below.
    -> nginx -> ffmpeg multi encode -> HLS publish

    nginx configration is below (nginx.conf)

    worker_processes  1;

    events {
       worker_connections  1024;
    }

    http {
       include       mime.types;
       default_type  application/octet-stream;

       sendfile        on;

       keepalive_timeout  65;

       server {
           listen       80;
           server_name  localhost;

           location / {
               root   html;
               index  index.html index.htm index.php;
           }

       location ~ \.php$ {
               root           html;
               fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
               fastcgi_index  index.php;
               fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
               include        fastcgi_params;
           }

           error_page   500 502 503 504  /50x.html;
           location = /50x.html {
               root   html;
           }
       }
    }

    rtmp {
       server {
           listen 1935;
           application hls {
               live on;
               exec /usr/local/sbin/ffscript.sh $name;
           }

           application hls2 {
               live on;
               hls on;
               hls_path /usr/local/nginx/html;
               hls_nested on;
               hls_fragment 9s;
               hls_variant _low  BANDWIDTH=300000;
               hls_variant _mid  BANDWIDTH=700000;
               hls_variant _high BANDWIDTH=1200000;
           }
       }
    }

    (/usr/local/sbin/ffscript.sh)

    export LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
    export LIBVA_DRIVER_NAME=iHD
    export MFX_HOME=/opt/intel/mediasdk
    export PKG_CONFIG_PATH=/opt/intel/opencl:

    /usr/local/bin/ffmpeg -i rtmp://localhost/hls/${1} -vcodec h264_qsv -init_hw
    _device qsv:hw -b:v 128K -c:a aac -ar 44100 -ac 2 -r 30 -f flv rtmp://localhost/
    hls2/${1}_low -b:v 512k -c:a aac -ar 44100 -ac 2 -r 30 -f flv rtmp://localhost/h
    ls2/${1}_mid -b:v 1024k -c:a aac -ar 44100 -ac 2 -r 30 -f flv rtmp://localhost/h
    ls2/${1}_high

    But it can’t work. The access.log appears just one line.

    192.168.1.121 [02/May/2018:21:52:39 +0900] PUBLISH "hls" "test2" "" - 580840 753 "" "FMLE/3.0 (compatible; Lavf57.55" (21s)

    There is no "hls2" PUBLISH on access log.

    When I tried to run the ffmpeg command line while nginx is running, it was succeed.

    Why ffmpeg called by nginx doesn’t work ? If you have any solution, let me know.

    Bests,