Recherche avancée

Médias (91)

Autres articles (110)

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

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (9580)

  • Why am I getting an error for stream #0.1 ?

    30 juillet 2014, par Rob Avery IV

    I’m converting videos using ffmpeg-php. Here is my code :

       // Set our source file
       $srcFile = $uploadFilm.".".$film_type;
       $destFile = $uploadFilm;
       $ffmpegPath = "ffmpeg";

       // Create our FFMPEG-PHP class
       $ffmpegObj = new ffmpeg_movie($srcFile);

       // Save our needed variables
       $srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
       $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
       $srcFPS = $ffmpegObj->getFrameRate();
       if($ffmpegObj->hasAudio()){
           $srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
           $srcAR = $ffmpegObj->getAudioSampleRate();
       }else{
           $srcAB = 0;
           $srcAR = 0;
       }

       // Call our convert using exec()
       //$command = $ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . "k -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile;
       //$command = "whoami";
       $command = $ffmpegPath . ' -i ' .'"'. $srcFile . '" -ar ' . $srcAR . ' -ab ' . $srcAB . 'k -f flv -s ' . $srcWidth . 'x' . $srcHeight . ' "' . $destFile . '" 2>&1';
       $outputCommand = array();
       $status = 1;
       exec($command, $outputCommand, $status);

    The output gives out this error at the end :

    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    I know that both $srcAB and $srcAR have values because this is the command this being ran :

    ffmpeg -i source -ar 48000 -ab 160k -f flv -s 1920x1080 destination

    Of course, after the command is executed, the "convert video" has a size 0, which means it didn’t convert it.

    What am I missing here ?

    EDIT : Here is my full output :

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Jul 18 2014 08:41:45 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
     configuration: --enable-libmp3lame --disable-mmx --enable-shared
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/path/to/file/bbb_sunflower_1080p_30fps_normal.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isomavc1
       creation_time   : 2013-12-16 17:44:39
       title           : Big Buck Bunny, Sunflower version
       artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
       comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
       genre           : Animation
       composer        : Sacha Goedegebure
     Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s
       Stream #0.0(und): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
       Metadata:
         creation_time   : 2013-12-16 17:44:39
       Stream #0.1(und): Audio: mp3, 48000 Hz, 2 channels, s16, 160 kb/s
       Metadata:
         creation_time   : 2013-12-16 17:44:42
       Stream #0.2(und): Audio: ac3, 48000 Hz, 6 channels, s16, 320 kb/s
       Metadata:
         creation_time   : 2013-12-16 17:44:42
    [buffer @ 0x2231e20] w:1920 h:1080 pixfmt:yuv420p
    Output #0, flv, to '/path/to/file/bbb_sunflower_1080p_30fps_normal.flv':
       Stream #0.0(und): Video: flv, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 30 tbc
       Metadata:
         creation_time   : 2013-12-16 17:44:39
       Stream #0.1(und): Audio: libmp3lame, 48000 Hz, 6 channels, s16, 160 kb/s
       Metadata:
         creation_time   : 2013-12-16 17:44:42
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
  • Splicer Error Creating Video : Retrieving the COM class factory for component with CLSID {78530B75-61F9-11D2-8CAD-00A024580902} failed [duplicate]

    26 septembre 2014, par wrox Developer

    This question already has an answer here :

    I am trying to integrate splicer into my asp.net MVC Project.I had a problem with Splicer code (which create video from images) works at local but gives the following error at server :

    Retrieving the COM class factory for component with CLSID 78530B75-61F9-11D2-8CAD-00A024580902 failed due to the following error : 80040154 Class not registered (Exception from HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).

    Here is the link of my test sample

    http://fctdev.azurewebsites.net/Home/Test

    I know this question is already asked on this form and other forms but that doesn’t resolve my issue

    Please help to solve the error

  • Creating a movie from multiple .png files

    21 octobre 2014, par QuantumFool

    I’ve got quite a few .png files, and I need to create a movie out of them. So, I’m going through this tutorial which uses ffmpeg :

    http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/

    When I go to type the first line (sudo apt-get install ffmpeg), in Terminal and enter my password as appropriate, I get :

    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    Package ffmpeg is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'ffmpeg' has no installation candidate

    That’s funny ; I installed the latest version manually this morning ! Anyway, I proceed with the instructions assuming ffmpeg is installed properly (I’m looking at the file where it downloaded to, so that can’t be the issue) :

    cd Downloads
    cd python-meep
    cd Images
    ffmpeg -qscale 4 -r 20 -b 9600 -i Image%03d.png movie.mp4

    To my surprise, I get :

    ffmpeg: command not found

    I just installed it ! Furthermore, I dragged my manual installation folder into the very same directory with the pictures ! What’s going on ?

    Thanks !