Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (111)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (12049)

  • 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;

  • avcodec/imc : cast float to int prior to comparing with int variable

    26 juin 2017, par Kostya Shishkov
    avcodec/imc : cast float to int prior to comparing with int variable
    

    Update FATE test.

    Fixes #3886.

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] libavcodec/imc.c
    • [DH] tests/fate/audio.mak
  • lavc/dxva2_internal : Cast the dxva2 and d3d11 decoders and cfgs to (void *).

    15 avril 2018, par Carl Eugen Hoyos
    lavc/dxva2_internal : Cast the dxva2 and d3d11 decoders and cfgs to (void *).
    

    Silences several warnings :
    libavcodec/dxva2_internal.h:107:98 : warning : pointer type mismatch in conditional expression
    libavcodec/dxva2_internal.h:109:94 : warning : pointer type mismatch in conditional expression

    Reported-by : Reino Wijnsma

    • [DH] libavcodec/dxva2_internal.h