Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (70)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11383)

  • Downsampling / Filtering Data Stream with FFMPEG

    15 septembre 2021, par sds

    We have a .ts input file that contains (among other streams) a video stream and MISB 0604-compliant KLV data stream. The output of ffprobe for these stream are :

    


    Stream #0:0[0x111]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
...
Stream #0:2[0x1001]: Data: klv (KLVA / 0x41564C4B)


    


    We are hoping to extract every Nth frame of the video as a .tiff. We also need to associate each of these frames with a corresponding KLV packet from the MISB 0604-compliant data stream.

    


    The following command that select filters and adjusts the original FPS by the corresponding ratio does result in the expected frames being saved out as TIFF (in this case the original video has 1187 frames, and I expect to get 12 frames from the select filter).

    


    ffmpeg -y -i 2205Z.ts -map 0:0 -vf "select='not(mod(n,100))'",fps=30000/1001/100 -compression_algo raw -pix_fmt rgb24 %05d.tif


    


    However I can't seem to get any filters working on the data stream. For example using filter:d does not throw an error, but also doesn't seem to actually filter. My question is whether ffmpeg can be used to save out a "downsampled" data stream corresponding to the downsampling operations performed on the video stream above ?

    


  • How to force avcodec to use unaligned frame data planes ?

    26 février 2015, par user3244284

    I have been searching high and low for an option to force avcodec to use unaligned memory for its AVFrame data.

    Depending on the pixel format, the horizontal planes of an AVFrame->data may be padded with extra data to be aligned to memory for performance.

    eg : a 1920 * 1080 video with 4 bytes per pixel will have 1920 * 4 = 7680 bytes per plane.

    With avcodec if you are decoding this video it will create 7808 bytes per plane.

    This adds 7808 - 7680 = 128 bytes of extra padding.

    For my purposes I would like to force avcodec to use unaligned data so I can copy an entire continuous chunk of frame data instead of copying and formatting smaller pieces one at a time to a continuous chunk.

    The following flag found in the headers :

    /* encoding support
      These flags can be passed in AVCodecContext.flags before initialization.
      Note: Not everything is supported yet.
    */

    /**
    * Allow decoders to produce frames with data planes that are not aligned
    * to CPU requirements (e.g. due to cropping).
    */
    #define CODEC_FLAG_UNALIGNED 0x0001

    Setting this AVCodecContext.flags to be CODEC_FLAG_UNALIGNED, the assumption is that the AVFrame->data is now unaligned, this is not the case.

    I’m not sure if I am looking at the right place or using this flag correctly.

    Regards,

    Curious George

  • How to fill an AVFrame with audio data

    8 mai 2020, par Denis Gottardello

    this is a function taken from an ffmpeg example
How can I fill the frame with my data buffer (const uchar* data, int Length) ?

    



    AVFrame *frame = OutputStreamAudio.pAVFrameTemp;
int j, i, v;
int16_t *q = (int16_t*)frame->data[0];

/* check if we want to generate more frames */
if (av_compare_ts(OutputStreamAudio.next_pts, OutputStreamAudio.pAVCodecContext->time_base, STREAM_DURATION, (AVRational){ 1, 1 }) >= 0) return NULL;
for (j = 0; j nb_samples; j++) {
    v = (int)(sin(OutputStreamAudio.t) * 10000);
    for (i = 0; i < OutputStreamAudio.pAVCodecContext->channels; i++) *q++ = v;
    OutputStreamAudio.t     += OutputStreamAudio.tincr;
    OutputStreamAudio.tincr += OutputStreamAudio.tincr2;
}

frame->pts = OutputStreamAudio.next_pts;
OutputStreamAudio.next_pts  += frame->nb_samples;

return frame;