Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (71)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (12251)

  • FFMPEG libx264 on Ubuntu 16

    20 décembre 2019, par Kanza

    I have FFMPEG installed on my Ubuntu 16 but I want to use libx264 codec which I am unable to use. My current FFMPEG version is

    ffmpeg -version
    ffmpeg version N-90418-g74c6a6d Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
    configuration: --prefix= --enable-pic --disable-yasm --enable-shared
    libavutil      56. 11.100 / 56. 11.100
    libavcodec     58. 15.100 / 58. 15.100
    libavformat    58. 10.100 / 58. 10.100
    libavdevice    58.  2.100 / 58.  2.100
    libavfilter     7. 13.100 /  7. 13.100
    libswscale      5.  0.102 /  5.  0.102
    libswresample   3.  0.101 /  3.  0.101
  • Writing only video (no audio) file using ffmpeg. av_write_header fails

    19 janvier 2018, par Kamal

    I have RTP packets with VP8 encoded data. I want to write it to a mkv file or webm file. I tried a bit, but I have not been successful yet. My code is as below

    #include
    #include
    #include
    #include
    #include

    #include <libavutil></libavutil>avassert.h>
    #include <libavutil></libavutil>channel_layout.h>
    #include <libavutil></libavutil>opt.h>
    #include <libavutil></libavutil>mathematics.h>
    #include <libavutil></libavutil>timestamp.h>
    #include <libavformat></libavformat>avformat.h>
    #include <libswscale></libswscale>swscale.h>
    #include <libswresample></libswresample>swresample.h>

    bool mfmedia_init_ffmpeg();
    void mfmedia_ffprint(void *handle, int cnt, const char *format, va_list valist);

    int main()
    {
       mfmedia_init_ffmpeg();
       return 0;
    }

    bool mfmedia_init_ffmpeg()
    {
       bool ret = false;

       AVCodecContext* context;
       AVCodec* codec;
       AVFormatContext* format;
       AVStream* stream;

       unsigned fps = 24;
       unsigned width = 768;
       unsigned height = 608;

       av_register_all();

       int err = 0;
       char errorLog[128] = { 0 };

       av_log_set_level(AV_LOG_TRACE);
       av_log_set_callback(mfmedia_ffprint);

       err = avformat_alloc_output_context2(&amp;format, NULL, NULL, "o.webm");
       if (err &lt; 0)
       {
           printf("Cannot allocate output context: %s\n", av_make_error_string(errorLog, 128, err));
           goto last;
       }

       codec = avcodec_find_encoder(AV_CODEC_ID_VP8);
       if (!codec)
       {
           printf("Cannot find an encoder\n");
           goto last;
       }

       context = avcodec_alloc_context3(codec);
       if (!context)
       {
           printf("Cannot allocate a codec context\n");
           goto last;
       }

       context->pix_fmt = AV_PIX_FMT_YUV420P;
       context->width = width;
       context->height = height;
       context->time_base = (AVRational){1, fps};

       err = avcodec_open2(context, codec, NULL);
       if(err &lt; 0)
       {
           printf("Cannot open codec: %s\n", av_make_error_string(errorLog, 128, err));
           goto last;
       }

       stream = avformat_new_stream(format, codec);
       if (!stream)
       {
           printf("Cannot create a new stream\n");
           goto last;
       }

       //av_dump_format(format, 0, "o.webm", 1);

       err = avio_open(&amp;format->pb, "o.webm", AVIO_FLAG_WRITE);
       if(err &lt; 0)
       {
           printf("Cannot open output: %s\n", av_make_error_string(errorLog, 128, err));
           goto last;
       }

       err = avformat_write_header(format, NULL);
       if(err &lt; 0)
       {
           printf("Cannot write header to stream: %s\n", av_make_error_string(errorLog, 128, err));
           goto last;
       }
       ret = true;

    last:
       return ret;
    }

    void mfmedia_ffprint(void *handle, int cnt, const char *format, va_list valist)
    {
       char *log_buf = (char *)malloc(38192);
       int length;

       if(log_buf)
       {
           time_t rawtime;
           time ( &amp;rawtime );

           length = vsprintf(log_buf ,format, valist);
           length += sprintf((log_buf + length), " : %s ", ctime (&amp;rawtime));
           *(log_buf + length) = 0x0;

           printf("%s", log_buf);
           fflush(stdout);
           free(log_buf);
       }
    }

    It is failing when I call avformat_write_header.

    From trace log (towards end) I see

    Setting default whitelist ’file,crypto’
     : Fri Jan 19 16:58:57 2018
    Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
     : Fri Jan 19 16:58:57 2018
    dimensions not set
     : Fri Jan 19 16:58:57 2018
    Cannot write header to stream : Invalid argument

    Please let me know why avformat_write_header is failing.

  • FFmpeg skips generating thumbs

    25 janvier 2018, par Awais fiaz

    I am using ffmpeg for creating thumbs out of videos within php script however ffmpeg skips creating thumbs sometimes but sometimes it goes okay and works fine i am a little confused of this strange behavior.

    Command which fails :

    Command : /opt/bin/ffmpeg -ss 00:00:06 -i /home/my/public_html/files/conversion_queue/1516767375521d6.mp4 -an -r 1 -y -f image2 -vframes 1 /home/my/public_html/files/thumbs/2018/01/24/1516767375521d6-original-1.jpg

    Output error

    [image2 @ 0x2eaab00] Could not open file : /home/my/public_html/files/thumbs/2018/01/24/1516767375521d6-original-1.jpg
    av_interleaved_write_frame(): Input/output error
    frame= 1 fps=0.0 q=7.1 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=25.3x
    video:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!

    Command which works fine :

    Command : /opt/bin/ffmpeg -ss 00:01:01 -i /home/my/public_html/files/conversion_queue/1516867108c557e.mp4 -an -r 1 -y -f image2 -vframes 1 /home/my/public_html/files/thumbs/2018/01/25/1516867108c557e-original-1.jpg

    Output

    frame= 1 fps=0.0 q=3.1 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=49.9x
    video:21kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    Although both are same but still i am facing this issue.
    Any help regarding this would be really appreciated.