Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (105)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8294)

  • how spotify and other music players implement cross fading between music

    11 janvier 2023, par Arihant Jain

    I was working on a media streaming project and thought of implementing a cross fade between the next and current playing song.

    


    HLS is used for streaming music and .m3u8 file is presigned by cloudfront.

    


    Any help will be appreciated.

    


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

  • Loop movie and mix with audio by ffmpeg

    29 novembre 2020, par whitebear

    I have a movie file and an audio file with different length.

    &#xA;

    Audio file is longer than video file.

    &#xA;

    I want to loop video and mix with audio, then set length same as audio file.

    &#xA;

    ffmpeg -i "Pentagon_VJ_background_loop.mp4" -stream_loop -1 -t 60 -i "Out1.wav"  -map 0:0 -map 1:0 output.mp4&#xA;

    &#xA;

    With this I have -stream_loop -1 but movie doesn't loop. and have no way to set the length to audio file(I use -t 60 instead).

    &#xA;

    Does anyone help ??

    &#xA;