Recherche avancée

Médias (91)

Autres articles (36)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • 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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (12822)

  • FFMPEG subtitles in c

    13 juillet 2023, par Serhii

    I want to record video from camera with subtitles using FFMPEG and C. I was used examples on main FFMPEG repository and had successfully recorded video from camera. But with subtitles I'm stuck and do not know how to make it works. I was also tried example where shows how to re-mux video with existing one - it works but I can't understand how to create my own.

    


    I have as example one video from my DJI drone. There is 2 streams : one for video and second for subtitles. I can see that codec for video is h264 and codec for subtitles is mov_text. But once I try to open this codec in my code (codec id = AV_CODEC_ID_MOV_TEXT) every time it fails.
I had installed FFMPEG from default ubuntu repository.
In debug I was noticed(but may be wrong) that stream for subtitles present and have field codec_type = AVMEDIA_TYPE_SUBTITLE, codec_id = AV_CODEC_ID_MOV_TEXT but codec itself is NULL. Is it right for subtitles ?
Any FFMPEG manuals doesn't contain hints how to manage subtitles, so I will be happy if someone help my with that.
Thanks in advance !

    


    void open_instance_codec(AVCodec *codec, OutputStream *ost, AVDictionary *opt_arg) {&#xA;    int ret;&#xA;    AVCodecContext *c = ost->encoder;&#xA;    AVDictionary *opt = NULL;&#xA;&#xA;    av_dict_copy(&amp;opt, opt_arg, 0);&#xA;    av_dict_set(&amp;opt, "loglevel", "debug", 0);&#xA;    av_dict_set(&amp;opt, "stats", "1", 0);&#xA;&#xA;&#xA;    ret = avcodec_open2(c, codec, &amp;opt); // failed to open subtitle codec&#xA;    av_dict_free(&amp;opt);&#xA;    if (ret &lt; 0) {&#xA;&#xA;        fprintf(stderr, "Could not open %s codec \n", codec->name);&#xA;        char str[AV_ERROR_MAX_STRING_SIZE];&#xA;        av_make_error_string(reinterpret_cast<char>(str), AV_ERROR_MAX_STRING_SIZE, ret);&#xA;        fprintf(stderr, "This error means: &#x27;%s&#x27;\n", str); /// This error means: &#x27;Invalid data found when processing input&#x27;&#xA;&#xA;        exit(1);&#xA;    }&#xA;&#xA;&#xA;    ret = avcodec_parameters_from_context(ost->strm->codecpar, c);&#xA;    if (ret &lt; 0) {&#xA;        fprintf(stderr, "Could not copy the stream parameters\n");&#xA;        exit(1);&#xA;    }&#xA;}&#xA;</char>

    &#xA;

  • avformat/subtitles : make dropping duplicate events optional

    21 septembre 2015, par wm4
    avformat/subtitles : make dropping duplicate events optional
    
    • [DH] libavformat/subtitles.c
    • [DH] libavformat/subtitles.h
  • avformat/subtitles : check lower bound for duration overlap seeking.

    8 septembre 2013, par Clément Bœsch
    avformat/subtitles : check lower bound for duration overlap seeking.
    
    • [DH] libavformat/subtitles.c