Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (96)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9616)

  • Not sure what ffmpeg flags are needed for the proper end result

    13 avril 2016, par shaun

    Using ffmpeg vs stated below.

    ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 5.2.0 (GCC)

    We are trying to work with some AVIs and convert them to an MP4s changing the audio from pcm_s16le to AAC and keeping the video as h264. However some of our AVIs got encoded wrong and pix_fmt is missing in the ffprobe of the file. We know that the pix_fmt should be yuv420p from the files that got encoded correctly on the same devices.

    If we try to just get the probe info of the avis we get this error right away :

    C:\>ffmpeg -loglevel warning -y -i 1E03004920160411093036001.avi
    [avi @ 00000000004d2660] Could not find codec parameters for stream 0 (Video: h264 (H264 / 0x34363248), none, 720x480, 501 kb/s): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Guessed Channel Layout for  Input Stream #0.1 : mono

    So we tried to specify the pix_fmt of the incoming AVI so it would play nicely however all we get is this error :

    C:\>ffmpeg -loglevel warning -y -pix_fmt yuv420p -i 1E03004920160411093036001.avi
    Option pixel_format not found.

    Our long term goal is to convert them just like :

    ffmpeg -y -i 1E03004920160411093036001.avi -c:v copy -c:a aac -strict -2 -movflags +faststart 1E03004920160411093036001.mp4

    OR

    ffmpeg -y -i 1E03004920160411093036001.avi -c:v copy -c:a libfdk_aac -b:a 41k -movflags +faststart 1E03004920160411093036001.mp4

    Just like every other video of ours however we keep running into one of these two errors.

    Currently this is bypassed using mencoder :

    mencoder -idx 1E03004920160411093036001.avi -ovc copy -oac copy -o 1E03004920160411093036001-a.avi

    But we would like to get away from this interim step and just tell all our files what pix_fmt to use no matter what. Is there any way to do this ?

    2Mb AVI

  • FFMpeg avcodec_decode_video2 no result for first frame

    23 décembre 2015, par Max Plakhuta

    I’m trying to play video from my archive. Playing is OK except very first frame : got_picture_ptr is setting to 0. And starting from 2nd frame everything is ok. Because of this I can’t retreive an image when seeking with timeline. Frame size is same in send from archive function and in decode function. Why decoding may fail ?

    AVPacket packet;
       av_init_packet(&packet);
       packet.data = (uint8_t*) frame->data;
       packet.size = frame->size;
       int decode_count = 0;
       bool pushed = false;
    //  while(av_read_frame(formatContext, &packet) >= 0) {
           //decode_ret = avcodec_decode_video2(codec_context, pFrame, &got_picture, &packet);
       //}
       LOGDEBUG("Frame len: %d", packet.size);
       while (packet.size > 0) {
           decode_count++;
           int got_picture;
           int decode_ret = 0;
    //      LOGDEBUG("Decoding [%d] (%d/%d, %d/%d) %d", getDecoderId(), codec_context->width, width, codec_context->height, height, packet.size);

           try {
               decode_ret = avcodec_decode_video2(codec_context, pFrame, &got_picture, &packet);
               LOGDEBUG("Decoding frame size decode_ret: %d, got_picture: %d, width: %d, height: %d", decode_ret, got_picture, codec_context->width, codec_context->height);
               decoded_frame_number = frame->index;
               if (decode_ret < 0) {
                   LOGDEBUG("Decoding error %d", decode_ret);
                   return false;
               }
           } catch (...) {
               LOGDEBUG("Error decoding");
               return false;
           }
           if (packet.data) {
               packet.size -= decode_ret;
               packet.data += decode_ret;
           }
           if (!got_picture) {
               LOGDEBUG("Waiting for full picture");
               std::string packet_flags = "";
               if (packet.flags & AV_PKT_FLAG_KEY) {
                   packet_flags += "AV_PKT_FLAG_KEY";
               }
               if (packet.flags & AV_PKT_FLAG_CORRUPT) {
                   packet_flags += " | AV_PKT_FLAG_CORRUPT";
               }
    //          LOGDEBUG("Decoding %d frame[%ld] not complete (%d, %d) flags %s packetsize %d/%d keyframe %d for %d",
    //                  decode_ret, frame->index, codec_context->width,
    //                  codec_context->height, packet_flags.c_str(), packet.size, frame->size,
    //                  pFrame->key_frame, decode_count);
               continue;
           }

    Here is my full function : http://pastebin.com/TekkZEUa

    P.S. codec context width and height is 0 after decoding first frame.

  • avcodec/mediacodecenc : Check fifo write result and simplify fifo operation

    4 décembre 2024, par Zhao Zhili
    avcodec/mediacodecenc : Check fifo write result and simplify fifo operation
    

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>
    Reviewed-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavcodec/mediacodecenc.c