Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (83)

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

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

  • Using Node.js module fluent-ffmpeg to convert video but my files end up corrupt

    28 juin 2017, par El Guapo

    i am writing a node based media encoding tool and have found a few good node packages that will help me to do this, but the output files are either totally corrupt or it only encodes half the video.

    The main node package i am using is fluent-ffmpeg, and i am trying it with the following code :

    var ffmpeg = require('fluent-ffmpeg');

    var proc = new ffmpeg({ source: 'uploads/robocop-tlr1_h480p.mov', nolog: false})
     .withVideoCodec('libx264')
     .withVideoBitrate(800)
     .withAudioCodec('libvo_aacenc')
     .withAudioBitrate('128k')
     .withAudioChannels(2)
     .toFormat('mp4')
     .saveToFile('output/robocop.mp4',
       function(retcode, error){
           console.log('file has been converted succesfully');
    });

    There is not a problem with the source video as i encoded it just fine using FFmpeg normally with the following comand line string (i run it from a batch file) :

    "c:\ffmpeg\bin\ffmpeg.exe" -i %1 -acodec libvo_aacenc -b:a 128k -ac 2 -vcodec libx264 -b:v 800k -f mp4 "../output/robocop2.mp4"

    Any ideas what i am doing wrong here ?

  • "python setup.py egg_info" when installing a module

    9 novembre 2017, par Adam Kamil
    PS C:\Users\adamk\AppData\Local\Programs\Python\Python36-32\Scripts> pip install --upgrade setuptools
    Collecting setuptools
     Downloading setuptools-36.6.0-py2.py3-none-any.whl (481kB)
       100% |████████████████████████████████| 481kB 435kB/s
    Installing collected packages: setuptools
     Found existing installation: setuptools 28.8.0
       Uninstalling setuptools-28.8.0:
         Successfully uninstalled setuptools-28.8.0
    Successfully installed setuptools-36.6.0
    PS C:\Users\adamk\AppData\Local\Programs\Python\Python36-32\Scripts> pip install .\ffmpeg-3.4.tar.bz2
    Processing c:\users\adamk\appdata\local\programs\python\python36-32\scripts\ffmpeg-3.4.tar.bz2
       Complete output from command python setup.py egg_info:
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File "c:\users\adamk\appdata\local\programs\python\python36-32\lib\tokenize.py", line 452, in open
           buffer = _builtin_open(filename, 'rb')
       FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\adamk\\AppData\\Local\\Temp\\pip-rlpa5bd4-build\\setup.py'

       ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\adamk\AppData\Local\Temp\pip-rlpa5bd4-build\
    </module></string>

    I tried many things like updating my setuptools. Stil didint work. If someone could help, it would really help ! -Adam

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