Recherche avancée

Médias (91)

Autres articles (38)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5739)

  • Youtube live stream with dynamic content

    6 octobre 2019, par Arturek

    I’m trying to create a live stream with changing data in real-time on youtube.

    Let’s say I want to show the current Bitcoin price in real-time. For instance, using python and sending requests to some public APIs, I can very easily get current prices of Bitcoin. But I have no idea how to create such a live stream, which will be automatically updated with fresh data.

    I know that I can use ffmpeg to stream on youtube, but how would I change the content of my stream ?

    # To make sure you know what I mean, I created a basic sample.

    import requests
    import json
    import time

    createYtLiveStream()

    while(True):
     response = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json').json()
     price = response['bpi']['USD']['rate']

     updateYtLiveStream(price)

     time.sleep(20)

    I want to do it on Ubuntu. Can you tell me how can I do it, please ?
    Thanks.

  • Streaming 4K video file to YouTube on a Raspberry Pi 4 using FFMPEG

    25 mai 2021, par martijn

    I'm trying to stream a 4K video file to YouTube on a raspberry pi4 using FFMPEG (version : Linux raspberrypi 5.10.17-v7l+ #1414 SMP Fri Apr 30 13:20:47 BST 2021 armv7l GNU/Linux, 8gb).
I know you cannot do that with older Pi-versions.
I didn't find the proper ffmpeg commands yet, so I cannot test it right now. But before I give it a try, is it basically possible to stream 4K in this way with this version of the Pi ?

    


  • discord.py - Playing the same audio stream in several voice channels

    13 juillet 2020, par Cyxo

    I made a Discord bot using the discord.py library which aims at playing a web radio in several voice channels. Basically it's the same audio stream for every channel.

    


    What I'm doing right now is :

    


    voice_channel.play(discord.FFmpegPCMAudio(stream_url))


    


    However every FFmpegPCMAudio uses about 10% of my CPU and there's one for each vc so eventually my bot crashed a lot when playing in 10 channels (which isn't a lot).

    


    Since it's the same stream, I tried the following :

    


    player = FFmpegPCMAudio(stream_url)
for voice_channel in vcs:
    voice_channel.play(player)


    


    But the sound was stuttering a lot (maybe it was playing the sound a bit to each sequentially like the way threading works)

    


    Can you think of any other way I could reduce the load on the CPU since it is the same audio stream playing ? Either a discord.py trick or a FFmpeg trick maybe, like manually running one FFmpeg and using it for each channel ?