Recherche avancée

Médias (91)

Autres articles (68)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (6306)

  • 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
  • Raspberry Pi > CRTMPServer > JWplayer

    18 juin 2015, par user3147697

    I’m trying to get a raspberry pi to stream to a crtmpserver, and from there to a webpage with JWplayer.

    I am able to send video successfully to crtmpserver with this :

    raspivid -t 0 -w 960 -h 540 -fps 25 -b 500000 -vf -o - | ffmpeg -i - -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1000k -f rtsp -metadata title=teststream rtsp ://192.168.1.20:5544/flvplayback

    But am having trouble viewing the stream from crtmpserver using this is my html jwplayer code :

    <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&gt;<br />
       jwplayer(&quot;myElement-teststream&quot;).setup({<br />
           playlist: [{<br />
               sources:[{<br />
                   file: 'rmtp://192.168.1.20:1935/live/teststream&quot;<br />
               }]<br />
           }],<br />
           height: 1080,<br />
           primary: 'flash',<br />
           width: 1920<br />
       });<br />
       &lt;/script&gt;

    What am I missing ?

  • invalid frame size while using ffmpeg

    3 décembre 2020, par Rishabh Mishra

    I am trying scale and convert a video :

    &#xA;&#xA;

    ffmpeg -i input.mkv -s 1920&#xD7;1080 output.mp4&#xA;

    &#xA;&#xA;

    But every time it shows error (Windows) :

    &#xA;&#xA;

    Invalid frame size: 1920├&#xF9;1080.&#xA;

    &#xA;&#xA;

    or on Linux :

    &#xA;&#xA;

    Invalid frame size: 1920&#xD7;1080.&#xA;

    &#xA;