Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (91)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

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

Sur d’autres sites (7476)

  • FFMPEG : is there a way to keep RTSP connection alive in code ?

    14 décembre 2011, par Alex

    I'm taking frames from a RTSP connection as follows (in pseudocode) :

    av_open_input_file(&avcontext)
    while(av_read_frame(&frame) > 0) {
       doSomething(frame);
       av_free_packet(frame);
    }

    For some reason the doSomething() function takes much time and, because of this (at least, I think so) the connection interupts - av_read_frame() returns 'eof' and the loop exits.

    When I make doSomething() shorter such interruptions do not occur.

    For some reasons I can't do doSomething() in another thread.

    Therefore, I'm interested if maybe there are some parameters to avcontext which will let me keep the connection alive or increase the timeout ?

    Thank you !

  • How to split 5.1/7.1 audio input to 6x mono outputs using FFMPEG source code ?

    20 mars 2023, par CJ_Notned

    I know how to achieve this by using cmd line as :

    


    ffmpeg -i in.wav \
-filter_complex "channelsplit=channel_layout=5.1[FL][FR][FC][LFE][BL][BR]" \
-map "[FL]" front_left.wav \
-map "[FR]" front_right.wav \
-map "[FC]" front_center.wav \
-map "[LFE]" lfe.wav \
-map "[BL]" back_left.wav \
-map "[BR]" back_right.wav


    


    would do the job I want for me, but, how can I achieve the same in the source code itself ?

    


    I assume the trick would be to set some option for AVCodec context or SwrContext when setting up the encoder, but I cannot find any option, that should do this job for me.

    


    I am interested just in FFMPEG solutions and how to do it using directly the source code. The original API is in C, but any, even tiny, code sample in any language highly appreciated.

    


    I would bet on something like :
 av_set_options_string(...) or av_opt_set(...), but I am doing something wrong using these or it is done some other way.

    


  • Python code to concat images and ts files using ffmpeg

    10 décembre 2019, par srt243

    I have a folder with multiple ts files in it and I want to join the files by inserting an image for n number of duration between videos. Below is the list with the duration for which an image needs to be inserted for.

    ['00:00:06:17', '00:00:00:16', '00:00:01:05', '00:00:00:31', '00:00:01:01']
    For example, if the folder has 5 ts files (this number might change so the folder needs to be iterable) then,

    video1 + image for 00:00:06:17 + video2 + image for 00:00:00:16 + video 3, etc...

    Any pointers will be much appreciated.

    UPDATE :

    for i in new_ts3:
       for m in filename[:-1]:
           p1 = subprocess.Popen (['ffmpeg', '-loop', '1', '-i', sys.argv[2], '-c:v', 'libx264', '-profile:v', 'high', '-t', i, '-pix_fmt', 'yuvj420p', '-vf', 'scale=1280:720', '-f', 'mpegts', '{}{}_.ts'.format((os.path.splitext(sys.argv[1]) [0]), m)], stdout=subprocess.PIPE)
           out1 = p1.communicate()
       break

    where new_ts3 is ['00:00:06:17', '00:00:00:16', '00:00:01:05', '00:00:00:31', '00:00:01:01'] and

    filename is ['file1', 'file2', 'file3', 'file4', 'file5', 'file6']

    With the above, I am getting 5 files with different filenames but each file is of duration 00:00:06:17