Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (58)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5274)

  • Add overlay but output has wrong audio

    16 septembre 2017, par xuan hoang
    ffmpeg -i Knight.mp4 -i "4h.mp4" -filter_complex "scale=854:480 [v1]; [1:v][v1]overlay=20:20" output.mp4

    But output.mp4 not have Knight.mp4 audio.

  • avcodec_encode_audio2 failing with error code -22 in C++ FFMPEG

    16 juin 2014, par Godspped

    I have the following code to encode an audio stream and everything seems to be working fine until I get to the avcodec_encode_audio2 function, I am failing with -22 error code, and I dont know what that error code means. I verified that pFrame and out_fmt_ctx are allocated. Does anyone have an idea of what the problem might be ?

    Thanks in advance !

    while( res = av_read_frame( pFormatCtx, &packet ) >=0 )
    {
      if ( packet.stream_index == audioStream )
      {
     avcodec_get_frame_defaults(pFrame);
         ret = avcodec_decode_audio4(dec_ctx, pFrame, &got_frame, &packet);

         if (ret < 0)
         {
        return ret;
     }

         /* Set frame pts */
         pFrame->pts = av_frame_get_best_effort_timestamp(pFrame);

         if (got_frame)
         {

            AVPacket audioEncodedPacket;
            av_init_packet(&audioEncodedPacket);


            ret = avcodec_encode_audio2(out_fmt_ctx->streams[0]->codec,
                                        &audioEncodedPacket,
                                        pFrame, &got_packet);

            if ( ret < 0 )
            {
               //THIS IS WHERE I AM GOING WITH ERROR -22
            }
         }
    ...... // more code
    }
  • Request aid to translate from an old avconv code to ffmpeg

    27 septembre 2022, par Azankiew

    I am working on an old script which uses avconv to manipulate some videos. I wanted to ask help to convert the following code into ffmpeg as I aknowledged avconv is not supported anymore.

    


    The code is :

    


    subprocess.call('avconv -i %s -an -filter_complex "select=between(n\,%s\,%s),setpts=PTS-STARTPTS, crop=%s:%s:%s:%s, scale=-2:224" %s'%(
            input_video_folder+clip.video_name,
            clip.start_frame,
            clip.end_frame,
            crop_width,
            crop_height,
            crop_left_distance,
            crop_top_distance,
            video),
                        shell=True)