Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (58)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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

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

  • Ubuntu12.04 : libavformat header trouble when compiling C program

    30 mai 2013, par Juneyoung Oh

    My code is super simple, just include "avformat.h" and call "av_register_all".

    full code is below.

     1 #include
     2 #include
     3 #include
     4 //#include <libavcodec></libavcodec>avcodec.h>
     5 #include <libavformat></libavformat>avformat.h>
     6 //#include "libavcodec/avcodec.h"
     7 //#include "libavformat/avformat.h"
     8
     9
    10 int main (int argc, char* argv[]){
    11         av_register_all();
    12 /*
    13         AVFormatContext* pFormatCtx;
    14         const char* filename = "/home/juneyoungoh/Videos/CON1234ID.ts";
    15
    16         if(av_open_input_file(&amp;pFormatCtx, filename, NULL, 0, NULL) != 0)
    17         {
    18                 handle_error();
    19         }
    20
    21         if(av_find_stream_info(pFormatCtx) &lt; 0)
    22         {
    23                 handle_error();
    24         }
    25
    26         dump_format(pFormatCtx, 0, filename, 1);
    27
    28         //av_get_audio_frame_duration();
    29 */
    30         return 0;
    31 }

    The problem is when I compile this in Terminal it show error.

    /tmp/ccvgpGjv.o: In function `main&#39;:
    getDuration.c:(.text+0x10): undefined reference to `av_register_all&#39;
    collect2: ld returned 1 exit status

    my avformat.h file is in /usr/local/include/libavformat/avformat.h.

    Here is something I have already tried.

    1. gcc getDuration.c
    2. gcc -I/usr/local/include/ getDuration.c
    3. gcc -I/usr/local/include/libavformat/ getDuration.c
    4. gcc -L/usr/local/include/ getDuration.c
    5. gcc -L/usr/local/include/libavformat/ getDuration.c
    6. gcc getDuration.c -lavformat

    Give me the light of hope +_+

  • avi encoded to streaming mp4 or webmnot playing in html5 player

    30 mai 2013, par Vprnl

    [EDIT]

    I'm trying to get ffmpeg to encode various AVI files to mp4 for streaming purposes

    I use this nodejs to start FFMPEG.

    When I try this (webm) (some settings are wrapped by the node module but produce the default FFMPEG command) with this command :

           .withVideoCodec(&#39;libvpx&#39;)
           .addOptions([&#39;-bf 8&#39;,&#39;-bt 240k&#39;,&#39;-preset fast&#39;,&#39;-strict -2&#39;,&#39;-b:v 320K&#39;,&#39;-bufsize 62000&#39;, &#39;-maxrate 620k&#39;,&#39;-movflags +empty_moov&#39;,&#39;-y&#39;])
           .withAudioBitrate(&#39;192k&#39;)
           .withAudioCodec(&#39;libvorbis&#39;)
           .toFormat(&#39;webm&#39;)

    The video get's streamed properly to the client but the duration isn't passed on. So the video has a duration of 'infinite'.

    So I tried to encode with H264. Which also works (I see the duration being set in the client) but no picture sadly.

    For H264 I use :

      .addOptions([&#39;-y&#39;,&#39;-vcodec libx264&#39;,&#39;-bf 8&#39;,&#39;-bt 240k&#39;,&#39;-preset fast&#39;,&#39;-strict -2&#39;,&#39;-b:v 320K&#39;,&#39;-bufsize 62000&#39;, &#39;-maxrate 620k&#39;,&#39;-acodec aac&#39;,&#39;-ab 128k&#39;,&#39;-movflags +empty_moov&#39;])
      .toFormat(&#39;mp4&#39;)

    I get this log :

    enter image description here

    I hope someone can point me in the right direction. Thanks !

    The client just gives an undefined error.
    I hope someone can point me in the right direction.

    Thanks

  • Static image and a folder of mp3's ?

    28 juin 2013, par Shirohige

    I want to create a bunch of videos consisting of an single image which is shown throughout the whole video but each video has a different audio file. I can do it manually with various tools but the problem is that I have a lot of audio files and I can't optimize the frame rate (more on that later) and it takes a lot of time to do it that way but ffmpeg offers everything I need but the problem is that I don't know how to batch process everything.

    The basic code :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4

    What I want to achieve :
    Let's say that I have a folder which consists of several audio files : song-name-1.mp3, song-name-2.mp3, ..., song-name-n.mp3 and cover.jpg.

    I need a batch file which takes the name of every mp3 file in a folder (a FOR loop I suppose) and processes it with the same command :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4

    So the image is always the same for every video. The song length can be taken with the tool mp3info and the corresponding command :
    mp3info.exe -p %S song-name.mp3

    Since I only have one image throughout the whole video, the optimal frame rate would be the inverse of the video length which is 1/length (where length is a variable in seconds which we get from mp3info).

    So the final code should look something like this :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r 1/length -t length -acodec copy song-name.mp4

    Where "song-name" is a variable which changes for every iteration of the FOR loop (i.e. for every audio file in the folder) and length is a variable whose value we get with the command :
    mp3info.exe -p %S song-name.mp3

    I found examples of a FOR loop to fetch all file names of all mp3's in a specific folder but I do not know how to integrate mp3info. I hope that somebody can help me and I have some knowledge of the C programming language if that can be used in any way.