Recherche avancée

Médias (91)

Autres articles (43)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (5980)

  • fftools/ffmpeg : add a function adding a destination filter for InputStream

    11 avril 2023, par Anton Khirnov
    fftools/ffmpeg : add a function adding a destination filter for InputStream
    

    This way filtering code does not directly mess with InputStream
    internals. Will become more useful in following commits.

    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_demux.c
    • [DH] fftools/ffmpeg_filter.c
  • ffmpeg "ignore_loop 0" seems not work on specific gif

    16 mars 2023, par Peter.k

    I use code which worked for every gif I used to embed it within a video :

    


    ffmpeg -i e:\tt121b+.mp4 -ignore_loop 0 -i e:\gals\1\gif.gif -filter_complex "[1:v][0:v]scale2ref=oh*mdar:ih/10[ua][b];[ua]setsar=1,format=yuva420p,colorchannelmixer=aa=0.5[u];[b][u]overlay=(main_w-w)-(main_w*0.1):(main_h-h)-(main_h*0.125):shortest=1" -r 25 -b:v 1500k e:/tt121_logo.mp4


    


    It literally adds an animated image to video on specified place and with chosen size. But when I add a gif which has 180 frames it behaves weirdly. After 15 seconds the gif is looped one, then it stops and the whole video stops but program still codes it to the end but with higher speed. Additionally, the ram is used to the maximum after this breakdown.

    


    What's going on there ? Should I put some additional parameters ? I tried to add -loop 0, -loop 1 in different places and also removed shortest=1 parameter but its either does nothing or the gif have 1 loop and stops.

    


    EDIT

    


    Found the problem. I opened this gif in first found editor and saw that it was not saved as looped infinitely. Saved it in that format and it works. Didn't know the ffmpeg -loop parameters don't make it. However, this unlooped gif worked as looped in preview software to add more mess to the topic.

    


  • How do I fix this error in Python : RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

    11 mars 2023, par Mason Griffith

    I have been trying to mess around with some of Eleven Labs API and make a simple program that takes in a string and can use the API to retrun a voice provided by Eleven Labs speaking the string. I've seen people using similar code to this but I always get the same error telling me it couldnt find ffmpeg or avconv. Any help would be grealty appreciated. Here is the code below.

    


    from elevenlabslib import *
import pydub
import pydub.playback
import io


def play(bytesData):
    sound = pydub.AudioSegment.from_file_using_temporary_files(io.BytesIO(bytesData))
    pydub.playback.play(sound)
    return


user = ElevenLabsUser("API_KEY")  # fill in your api key as a string
voice = user.get_voices_by_name("Rachel")[0]  # fill in the name of the voice you want to use. ex: "Rachel"
play(voice.generate_audio_bytes("Test"))  # fill in what you want the ai to say as a string


    


    Ive downloaded all the suggested packages and downloaded ffmpeg for windows but nothing has worked yet. I can see that the request is going through to the Eleven Labs website as my requested string pops up in my history on Eleven Labs but because of the error no audio is returned.