Recherche avancée

Médias (91)

Autres articles (79)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6961)

  • ffmpeg : How to get list of available codecs with PHP ?

    9 août 2013, par IIIOXIII

    Problem is, I am trying to convert (through php), a .3gp (or any video format) file to ogg.

    When I do not specify -vcodec and -acodec, the video is converted, but does not have any audio.

    I had read here and other places that I need to specify -acodec libvorbis, however, when I specify the codec as libvorbis, the conversion fails : video converts to 0byte file.

    Basically, I am trying to determine if the codec specified is actually part of the ffmpeg build I am using as a process of narrowing down my issue.

    Code that produces full length video without sound :

    $srcFile = 'anyvideo.3gp';
    $destFile = 'anyvideo.ogg';
    $ffmpegPath = 'path/to/ffmpeg.exe';
    $ffmpegObj = new ffmpeg_movie($srcFile);
    $srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
    $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
    $srcFPS = $ffmpegObj->getFrameRate();
    $srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
    $srcAR = $ffmpegObj->getAudioSampleRate();
    $srcLen = $ffmpegObj->getDuration();

    exec($ffmpegPath." -i ".$srcFile." -ar ".$srcAR." -s ".$srcWidth."x".$srcHeight." ". $destFile);

    And the code that produces 0byte file :

    exec($ffmpegPath." -i ".$srcFile." -acodec libvorbis -ar ".$srcAR." -s ".$srcWidth."x".$srcHeight." ".$destFile);

    So, my question is, how do I determine the codec's available to ffmpeg using PHP ? Can it even be done ?

    UPDATED - ANSWER BELOW

  • Compiling ffmpeg : how to force it to link to a specific libx264 ?

    29 août 2012, par PaulJ

    I'm trying to compile the newest version of ffmpeg (in CentOS 5.3). I first downloaded the latest version of libx264, compiled it with --enable-static and installed it in /usr/local/. However, when I then compile ffmpeg I get this error message :

    libavcodec/libavcodec.a(libx264.o): In function `X264_init':
    /usr/local/src/ffmpeg/libavcodec/libx264.c:494: undefined reference to `x264_encoder_open_125'
    collect2: ld returned 1 exit status
    make: *** [ffmpeg_g] Error 1

    Searching on the net, I see that this can happen if ffmpeg is picking up an older version of libx264, which I indeed have (in /usr/lib) and can't uninstall because other pieces of software depend on it. The question is then : how can I force ffmpeg to link against the libx264 that I want ? The last time I had to do this (admittedly a year ago) I also had 2 versions of libx264, and I don't remember having to do anything special. Is there a configure switch that I'm forgetting ?

  • Compiling ffmpeg : how to force it to link to a specific libx264 ?

    29 août 2012, par PaulJ

    I'm trying to compile the newest version of ffmpeg (in CentOS 5.3). I first downloaded the latest version of libx264, compiled it with --enable-static and installed it in /usr/local/. However, when I then compile ffmpeg I get this error message :

    libavcodec/libavcodec.a(libx264.o): In function `X264_init':
    /usr/local/src/ffmpeg/libavcodec/libx264.c:494: undefined reference to `x264_encoder_open_125'
    collect2: ld returned 1 exit status
    make: *** [ffmpeg_g] Error 1

    Searching on the net, I see that this can happen if ffmpeg is picking up an older version of libx264, which I indeed have (in /usr/lib) and can't uninstall because other pieces of software depend on it. The question is then : how can I force ffmpeg to link against the libx264 that I want ? The last time I had to do this (admittedly a year ago) I also had 2 versions of libx264, and I don't remember having to do anything special. Is there a configure switch that I'm forgetting ?