Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (52)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (3511)

  • FFMpeg with PHP-7.0 on Ubuntu

    25 octobre 2018, par Gabriel Bueno Lemes da Silva

    I have a NGINX server with PHP-7.0 and I would like to install the ffmpeg-php extension. I’ve been trying for a few days now and in many ways.

    The method that worked so far was compiling ffmpeg (https://ffmpeg.org/releases/ffmpeg-4.0.2.tar.bz2) manually, but when trying to compile ffmpeg-php (https: // sourceforge. net / projects / ffmpeg-php / files / ffmpeg-php / 0.6.0 / ffmpeg-php-0.6.0.tbz2 / download) I am encountering the following error message :

    root@zumbiserver-mercury : /php7-ffmpeg# make /bin/bash

    /root/php7-ffmpeg/libtool —mode=compile cc -I. -I/root/php7-ffmpeg
    -DPHP_ATOM_INC -I/root/php7-ffmpeg/include -I/root/php7-ffmpeg/main -I/root/php7-ffmpeg -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/php7-ffmpeg/ffmpeg-php.c -o ffmpeg-php.lo libtool : compile : cc
    -I. -I/root/php7-ffmpeg -DPHP_ATOM_INC -I/root/php7-ffmpeg/include -I/root/php7-ffmpeg/main -I/root/php7-ffmpeg -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/php7-ffmpeg/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o In
    file included from /usr/include/x86_64-linux-gnu/sys/stat.h:104:0,
    from /usr/include/php/20151012/Zend/zend_stream.h:28,
    from /usr/include/php/20151012/Zend/zend.h:41,
    from /usr/include/php/20151012/main/php.h:36,
    from /root/php7-ffmpeg/ffmpeg-php.c:40 : /usr/include/x86_64-linux-gnu/bits/stat.h:91:21 : error : field
    ‘st_atim’ has incomplete type
    struct timespec st_atim ; /* Time of last access. /
    ^ /usr/include/x86_64-linux-gnu/bits/stat.h:92:21 : error : field
    ‘st_mtim’ has incomplete type
    struct timespec st_mtim ; /
    Time of last modification. /
    ^ /usr/include/x86_64-linux-gnu/bits/stat.h:93:21 : error : field
    ‘st_ctim’ has incomplete type
    struct timespec st_ctim ; /
    Time of last status change. /
    ^ /usr/include/x86_64-linux-gnu/bits/stat.h:152:21 : error : field
    ‘st_atim’ has incomplete type
    struct timespec st_atim ; /
    Time of last access. /
    ^ /usr/include/x86_64-linux-gnu/bits/stat.h:153:21 : error : field
    ‘st_mtim’ has incomplete type
    struct timespec st_mtim ; /
    Time of last modification. /
    ^ /usr/include/x86_64-linux-gnu/bits/stat.h:154:21 : error : field
    ‘st_ctim’ has incomplete type
    struct timespec st_ctim ; /
    Time of last status change. /
    ^ In file included from /usr/include/php/20151012/Zend/zend_stream.h:28:0,
    from /usr/include/php/20151012/Zend/zend.h:41,
    from /usr/include/php/20151012/main/php.h:36,
    from /root/php7-ffmpeg/ffmpeg-php.c:40 : /usr/include/x86_64-linux-gnu/sys/stat.h:364:31 : error : array type has
    incomplete element type ‘struct timespec’
    const struct timespec __times[2],
    ^ /usr/include/x86_64-linux-gnu/sys/stat.h:371:54 : error : array type has
    incomplete element type ‘struct timespec’ extern int futimens (int
    __fd, const struct timespec __times[2]) __THROW ;
    ^ In file included from /usr/include/php/20151012/main/php.h:395:0,
    from /root/php7-ffmpeg/ffmpeg-php.c:40 : /usr/include/php/20151012/Zend/zend_virtual_cwd.h:218:2 : error :
    unknown type name ‘time_t’ time_t expires ;
    ^ /usr/include/php/20151012/Zend/zend_virtual_cwd.h:248:86 : error :
    unknown type name ‘time_t’ CWD_API realpath_cache_bucket

    realpath_cache_lookup(const char *path, int path_len, time_t t) ;
    ^ /root/php7-ffmpeg/ffmpeg-php.c : In function ‘zm_startup_ffmpeg’ :
    /root/php7-ffmpeg/ffmpeg-php.c:108:5 : warning : implicit declaration of
    function ‘avcodec_init’ [-Wimplicit-function-declaration]
    avcodec_init() ;
    ^ /root/php7-ffmpeg/ffmpeg-php.c:111:5 : warning : ‘av_register_all’ is deprecated [-Wdeprecated-declarations]
    av_register_all() ;
    ^ In file included from /root/php7-ffmpeg/ffmpeg-php.c:43:0 : /usr/local/include/libavformat/avformat.h:2025:6 : note : declared here
    void av_register_all(void) ;

     ^ Makefile:194: recipe for target 'ffmpeg-php.lo' failed make: *** [ffmpeg-php.lo] Error 1

    Can someone give me a light ? I do not know what else to do !

  • ffmpeg how to select the audio channel with the biggest bps ?

    31 octobre 2018, par Kris Roofe

    I have mp4 file with below format,

    $ ffprobe -i 70_1.mp4 -hide_banner
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '70_1.mp4':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2018-10-30T08:57:38.000000Z
     Duration: 00:13:55.76, start: 0.000000, bitrate: 2246 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/unknown, progressive), 1440x1920, 2118 kb/s, 58.75 fps, 60 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2018-10-30T08:57:38.000000Z
         handler_name    : Core Media Video
         encoder         : 'avc1'
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
       Metadata:
         creation_time   : 2018-10-30T08:57:38.000000Z
         handler_name    : Core Media Audio
       Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 119 kb/s (default)
       Metadata:
         creation_time   : 2018-10-30T08:57:38.000000Z
         handler_name    : Core Media Audio

    As the auto channel is special, there is no sound when play in the browser.

    So I use ffmpeg to transfer it with ffmpeg -i 70_1.mp4 -crf 30 -b:a 23k -b:v 96k -threads 4 -map 0:0 -map 0:2 -y ooo.mp4, the generated mp4 file can play in the browser.

    $ ffprobe.exe ooo.mp4 -hide_banner
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ooo.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.17.101
     Duration: 00:13:55.79, start: 0.000000, bitrate: 246 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1440x1920, 209 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
       Metadata:
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 23 kb/s (default)
       Metadata:
         handler_name    : Core Media Audio

    But there is one issue, I need to process mp4 file with many formats, some with 1 audio channel, some with 2, So I want to know how to select the audio channel with the biggest bps.

  • x264 options for colorprim

    25 septembre 2018, par Kumar Swaminathan

    I have a source with the following color characteristics (as determined by ffprobe using "ffprobe -v error -show_format -show_streams source") colormatrix=smpte170m:colorprim=reserved:transfer=reserved.

    I would like to preserve this and so I encoded with ffmpeg with libx264 by specifying the following x264 specific options :

    "-vcodec libx264 -profile:v baseline -level 3.1 -b:v 2400k -preset medium -x264opts ref=3:keyint=90:colormatrix=smpte170m:colorprim=reserved:transfer=reserved -r 30000/1001"

    But now I get an error =>

    [libx264 @ 0x2234820] bad value for ’colorprim’ : ’reserved’

    Error initializing output stream 0:1 — Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    What should the ideal mapping here be to preserve the input color characteristics ?