Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (86)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

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

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

Sur d’autres sites (17146)

  • How to create AVStream with AV_DISPOSITION_TIMED_THUMBNAILS flag

    11 mars 2020, par VGSPB

    I’m try to make audiobook using ffmpeg. m4b format support covers picture for each chapter. ffmpeg load it as well, but I’cant create AVStream with AV_DISPOSITION_TIMED_THUMBNAILS disposition flag.

    int addVideoStream( AVFormatContext *ctx, CoverData *cover) {
       const AVCodec *c = avcodec_find_encoder( AV_CODEC_ID_MJPEG );
       if ( !c )
           return -1;

       int stream_indx = ctx->nb_streams;

       AVStream *stream = avformat_new_stream( ctx, NULL );
       AVCodecContext *img_codec_ctx = avcodec_alloc_context3( c );

       img_codec_ctx->width = cover->width();
       img_codec_ctx->height = cover->height();
       img_codec_ctx->pix_fmt = AV_PIX_FMT_YUVJ420P;

       if ( ctx->oformat->flags & AVFMT_GLOBALHEADER )
           img_codec_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;

       int res = avcodec_parameters_from_context( stream->codecpar, img_codec_ctx );
       avcodec_free_context( &img_codec_ctx );


       return stream_indx;
    }

    int new_v_stream_index = addVideoStream( out_ctx, img_data );
    AVStream *v_stream = out_ctx->streams[ new_v_stream_index ];
    v_stream->disposition = AV_DISPOSITION_DEFAULT|AV_DISPOSITION_ATTACHED_PIC|AV_DISPOSITION_TIMED_THUMBNAILS;
    int error = avformat_write_header( out_ctx, NULL );

    return error = -22

    if set disposition only

    v_stream->disposition = AV_DISPOSITION_ATTACHED_PIC;

    error = 0, but it is only for one attached picture packet : stream->attached_pic

    where am i wrong ?

  • What's the easiest way to merge video, audio and image files ?

    5 novembre 2012, par Sync

    We are planning a Wep App for a Hackathon that's happening in about 2 weeks.
    The app basic functions are :

    • The users are guided step-by-step to upload a video, audio and image.
    • The image is used as a cover for the audio. Making it into a video file.
    • The two video files are merged thus creating a single video from the initial three files.

    So, my problem is :

    1. How do you create a video from an audio with an image as "cover".
    2. How do you merge this two videos.

    We are thinking of using Heroku for deployment. Is there a way to do it using something like stremio ?

    What would be the best approach ? A VPS running a C++ script ? How's the easiest way to do it ?

  • Static image and a folder of mp3's ?

    28 juin 2013, par Shirohige

    I want to create a bunch of videos consisting of an single image which is shown throughout the whole video but each video has a different audio file. I can do it manually with various tools but the problem is that I have a lot of audio files and I can't optimize the frame rate (more on that later) and it takes a lot of time to do it that way but ffmpeg offers everything I need but the problem is that I don't know how to batch process everything.

    The basic code :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4

    What I want to achieve :
    Let's say that I have a folder which consists of several audio files : song-name-1.mp3, song-name-2.mp3, ..., song-name-n.mp3 and cover.jpg.

    I need a batch file which takes the name of every mp3 file in a folder (a FOR loop I suppose) and processes it with the same command :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4

    So the image is always the same for every video. The song length can be taken with the tool mp3info and the corresponding command :
    mp3info.exe -p %S song-name.mp3

    Since I only have one image throughout the whole video, the optimal frame rate would be the inverse of the video length which is 1/length (where length is a variable in seconds which we get from mp3info).

    So the final code should look something like this :
    ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r 1/length -t length -acodec copy song-name.mp4

    Where "song-name" is a variable which changes for every iteration of the FOR loop (i.e. for every audio file in the folder) and length is a variable whose value we get with the command :
    mp3info.exe -p %S song-name.mp3

    I found examples of a FOR loop to fetch all file names of all mp3's in a specific folder but I do not know how to integrate mp3info. I hope that somebody can help me and I have some knowledge of the C programming language if that can be used in any way.