Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (73)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (6930)

  • aacdec : Tables for length 480 AAC ELD.

    22 janvier 2015, par Niel van der Westhuizen
    aacdec : Tables for length 480 AAC ELD.
    
    • [DBH] libavcodec/aacdec.c
    • [DBH] libavcodec/aactab.c
    • [DBH] libavcodec/aactab.h
  • split audio into 3s, and discard if the length is less than it

    4 septembre 2019, par BarCodeReader

    I am using ffmpeg to split a batch of audio files into 3s pieces.
    However, let’s say for a 25s long raw audio, the previous 8 splits are good, no problem, but last piece will still be 3s with only 1s sound inside.

    I dont want the last piece and want ffmpeg to eigher discard or move to next audio..

    Is there such a command ?

    code I’m currently using :

       ffmpeg input.mp3 -f segment -segment_time 3 -c copy output.mp3
  • Incorrect length of video produced with ffmpeg libraries [closed]

    28 mars, par ivan.ukr

    I'm writing a C program that takes series of PNG images and converts them into a video. Video consists of the initial black screen and then each of those images, shown for the same constant amount of time, say 200 ms. I'm using libx264 as codec and mp4 as output format. I'm compiling my program with GCC 12 on Ubuntu 22.04 LTS. I'm using ffmpeg version from Ubuntu repositories.
In order to achieve above behavior I've set time base to 1/5 in the both stream and codec.

    


    // assume imageDuration = 200
AVRational timeBase;
av_reduce(&timeBase.num, &timeBase.den, imageDuration, 1000, INT_MAX);

const AVCodec *c = avcodec_find_encoder(codecId);
AVStream *s = avformat_new_stream(fc, c);
s->time_base = timeBase;
s->nb_frames = numImages + 1; // inital black screen + images
s->duration = numImages + 1;

AVCodecContext *cc = avcodec_alloc_context3(c);
cc->width = width;
cc->height = height;
cc->pix_fmt = pixelFormat;
cc->time_base = timeBase;

// ffmpeg headers suggest: Set to time_base ticks per frame.
// Default 1, e.g., H.264/MPEG-2 set it to 2.
cc->ticks_per_frame = 2;

cc->framerate = av_inv_q(timeBase);
if (fc->oformat->flags & AVFMT_GLOBALHEADER) {
    cc->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
}



    


    Then I'm encoding 11 frames.

    


    Finally, I'm getting video with the following characteristics :

    


    $ ffprobe v.mp4

....

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'v.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:00.01, start: 0.000000, bitrate: 68414 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360, 69073 kb/s, 10333.94 fps, 10240 tbr, 10240 tbn, 10 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]



    


    Please pay attention to :

    


    Duration: 00:00:00.01


    


    and

    


    10333.94 fps


    


    That's totally NOT what I've expected (2.2s video length and 5 fps frame rate).

    


    Note : The content of video is correct, this can be verified by looking into the generated video file frame-by-frame in some program like Avidemux. But video length and frame rate are incorrect.

    


    Please advise, how to fix this ?