Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (15)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (3854)

  • FFmpeg with PHP causes Internal Server Error

    19 novembre 2015, par Scott Heath

    I have a PHP script that calls exec() to convert video files using ffmpeg. The script works fine with smaller files, but larger files, usually around 20MB, produce a 500 Internal Server Error after the conversion has run for about 45 seconds.

    The max_execution_time is set to 600 seconds (10 minutes) and the max post and upload sizes are set to 1000 MB. The server is Unix based and is not running in safe mode.

    Although the issue only happens with larger sizes, I’m not even sure it’s a file size issue. The script will pass with a 12.6MB MOV file but will fail with an 11MB MP4 file.

    Below is the exec() line from my script :

    exec('ffmpeg -y -i '.escapeshellarg($uploadFile).' -vcodec libx264 -ab 128k -ac 2 -b 640k -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 '.$convertFile);

    Thanks !

  • What are the specifications of Flex usable FLV videos ?

    26 septembre 2011, par Riduidel

    I have a server which streams FLV files to a Flex client.
    In this flex client, the video timeline advances incoherently, and no video can be seen on screen (only the sound can be heard).

    My FLV file has been generated using ffmpeg, which says (about this generated file)

    FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
     built on Aug  8 2010 04:24:04 with gcc 4.3.2
     configuration: --prefix=/home/marpada/ffmpegfull --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-libfaac --enable-libvpx --enable-libfaad --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxvid --enable-libx264 --enable-libtheora --extra-ldflags=-static --extra-libs='-lvorbis -logg -lxvidcore -lx264 -lopencore-amrnb -lopencore-amrwb -lfaad -lfaac -lvpx -ltheora -lm -lpthread' --enable-small --enable-runtime-cpudetect
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libswscale     0.11. 0 /  0.11. 0
    [flv @ 0x95c6aa0]Estimating duration from bitrate, this may be inaccurate

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
    Input #0, flv, from '/appli/perigee_70ri/data/files/ged_bur%0/Imagettes/70ri/279/2/8/20_109021138o.70ri_FLV_preview_.flv':
     Metadata:
       hasMetadata     : true
       hasVideo        : true
       hasAudio        : true
       duration        : 589
       lasttimestamp   : 589
       lastkeyframetimestamp: 589
       width           : 352
       height          : 288
       videodatarate   : 199
       framerate       : 25
       audiodatarate   : 125
       audiosamplerate : 44100
       audiosamplesize : 16
       stereo          : true
       filesize        : 25058444
       videosize       : 15195503
       audiosize       : 9690850
       datasize        : 23027
       metadatacreator : flvmeta 1.1-r202
       audiocodecid    : 2
       videocodecid    : 2
       audiodelay      : 0
       canSeekToEnd    : false
       hasCuePoints    : false
       hasKeyframes    : true
     Duration: 00:09:48.78, start: 0.000000, bitrate: 332 kb/s
       Stream #0.0: Video: flv, yuv420p, 352x288, 204 kb/s, 25 tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
    At least one output file must be specified

    Which, as far as it seems to me, is OK.

    Furthermore, the video plays nice in VLC.

  • How to capture camera devices on Windows using Libav ?

    22 septembre 2011, par Occulta

    Is there any way to capture frames from as many camera types as DirectShow do on Windows platform using Libav ? I need to capture a camera output without using DirectShow filters and I want my application to work with many camera devices types.

    I have searched the Internet about this capability of libav and found that it can be done via libav using special input format "vfwcap". Something like that (don't sure about code correctness - I wrote it by myself) :

    AVFormatParameters formatParams = NULL;
    AVInputFormat* pInfmt = NULL;
    pInFormatCtx*  pInFormatCtx = NULL;

    av_register_all();

    //formatParams.device = NULL; //this was probably deprecated and then removed
    formatParams.channel = 0;
    formatParams.standard = "ntsc"; //deprecated too but still available
    formatParams.width = 640;
    formatParams.height = 480;
    formatParams.time_base.num = 1000;
    formatParams.time_base.den = 30000; //so we want 30000/1000 = 30 frames per second
    formatParams.prealloced_context = 0;


    pInfmt = av_find_input_format("vfwcap");
    if( !pInfmt )
    {
     fprintf(stderr,"Unknown input format\n");
     return -1;
    }

    // Open video file (formatParams can be NULL for autodetecting probably)
    if (av_open_input_file(&pInFormatCtx, 0, pInfmt, 0, formatParams) < 0)
      return -1; // Couldn't open device

    /* Same as video4linux code*/

    So another question is : how many devices are supported by Libav ? All I have found about capture cameras output with libav on windows is advice to use DirectShow for this purpose because libav supports too few devices. Maybe situation has already changed now and it does support enough devices to use it in production applications ?

    If this isn't possible.. Well I hope my question won't be useless and this composed from different sources piece of code will help someone interested in this theme 'coz there are really too few information about it in the whole internet.