Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (20)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (5226)

  • How to achive exactly 25 images per second. Pygame

    14 septembre 2021, par Vax

    Each frame I take audio frequencies read them and convert them into a visual way. Then I take a picture.

    


    My problem is that the following approach takes a different amount of images each second. So when I convert images into a video it becomes shorter than the audio that played as input ( 5-10 seconds shorter).

    


    FPS = 25
clock = pygame.time.Clock()

pygame.mixer.music.load(filename)
pygame.mixer.music.play(0)

running = True 
while running and pygame.mixer.music.get_busy():

    print(clock.get_fps()) #output 21 - 25 FPS

    t = pygame.time.get_ticks()
    deltaTime = (t - getTicksLastFrame) / 1000.0
    getTicksLastFrame = t

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    screen.fill((0, 0, 0))

    for b in bars:
        b.update(deltaTime, get_decibel(pygame.mixer.music.get_pos() / 1000.0, b.freq))
        b.render(screen)

    pygame.display.flip()

    pygame.display.update()
    video.make_png(screen)
    clock.tick(FPS)


    


    I was thinking about slow down audio, so I will take only (12+- images per second), but this approach wouldn't work either because the FPS cap isn't stable.
Another way I was thinking about is to stretch somehow the video to the length of the audio with an FFmpeg... However, I believe that there should be a more elegant solution.

    


    Will really appreciate any advice !

    


  • converting youtube audio into .mp3 with ffmpeg : ERROR : audio conversion failed : encoder : Lavc58.91.100 libmp3lame

    12 mars 2021, par letgomyleghoe

    I'm getting the error below when trying to play audio through my discord bot, I have all the dependencies installed and afaik ffmpeg is working.

    


    The bot has connected to General

Downloading audio now

[youtube] X9zaArvqZXM: Downloading webpage
[download] Destination: Wombo Combo _ Shotgun Willy ft. Lil Kapow _ Lyrics-X9zaArvqZXM.webm
[download] 100% of 2.87MiB in 00:00
[ffmpeg] Destination: Wombo Combo _ Shotgun Willy ft. Lil Kapow _ Lyrics-X9zaArvqZXM.mp3
ERROR: audio conversion failed:       encoder         : Lavc58.91.100 libmp3lame


    


    my ydl_opts are below

    


    ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '128',
    }],
}


    


    any help is appreciated, thanks

    


  • Audio Conversion Failed Issue Discord.py

    8 mars 2021, par letgomyleghoe

    I'm getting this error when I try to play audio through my discord bot, the file gets turned from a .webm file into a .mp3 and I can see it in the directory, but it seems to be corrupted.

    


    [youtube] X9zaArvqZXM: Downloading webpage
[download] Wombo Combo _ Shotgun Willy ft. Lil Kapow _ Lyrics- 
X9zaArvqZXM.webm has already been downloaded
[download] 100% of 2.87MiB
[ffmpeg] Destination: Wombo Combo _ Shotgun Willy ft. Lil Kapow _ Lyrics- 
X9zaArvqZXM.mp3
ERROR: audio conversion failed: size=      63kB time=00:00:02.64 bitrate= 
195.0kbits/s speed=   5x


    


    YDL options :

    


     ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '192',
    }],
}


    


    I remember seeing something about "lame" too, but I'm not sure what that's about.