Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (62)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (8693)

  • Anomalie #4751 : Refonte du jeu d’icônes : retours et commentaires

    1er mai 2021, par RastaPopoulos ♥

    yop ertational,

    pour quand il y aura le temps bien sûr, pas forcément pour l’alpha :)

    J’ai l’impression qu’au fil de la cohérence sur les épaisseurs (mieux !) il y a une régression sur la distinction avec du symbolique pur : de plus en plus d’icones n’ont plus de touche de couleur. Alors qu’on avait l’air plusieurs à être d’accord là dessus.

    tcharlss : Donc s’il y a à terme les 2, amha il ne faut pas trop s’empêcher d’utiliser de la couleur pour les icônes actuelles, et des formes un peu plus « compliquées » si ça marche bien.
    marcimat : une petite touche de couleur sur certaines icones était sympa (article, ou mot, a perdu sa touche de couleur par exemple)
    moi : je suis pour l’instant partisan que ces images doivent rester avec une touche de couleur + peuvent être un peu plus détaillées, que les actions symboliques
    erational : Je suis d’accord avec tcharlss sur l’orientation à donner aux icones avec 2 jeu distincts et une touche colorée.

    Pour référence, il semble que les menus "Publication" et "Maintenance" soient de bons exemples.

    Actuellement en monochrome, à remettre une petite touche colorée à priori :
    - L’icone de base des auteurs (celle là exceptionnellement pas forcément, pour la raison qu’il y a des variantes déclinées ensuite)
    - Article
    - Mot
    - Documents
    - Boite multimédia

  • ffmpeg doesn't work, when starting up it doesn't play music, it gives errors

    14 août 2024, par Оля Михеева
    import discord
from discord import FFmpegPCMAudio
import os
import random
from gtts import gTTS
import asyncio

TOKEN="***"
VOICE_CHANNEL_ID=11122224444

class Voice_Bot(discord.Client):
    def __init__(self):
        intents = discord.Intents.default()
        intents.message_content = True
        intents.voice_states=True
        super().__init__(intents=intents)
        print(os.getcwd())
        self.sounds_hello = os.listdir(os.path.join('sounds','hello'))
        self.sounds_bye = os.listdir('sounds\\bye')
        self.sounds = os.listdir('sounds\\nature')

    async def on_ready(self):        
        self.voice_channel = self.get_channel(VOICE_CHANNEL_ID) 
        if self.voice_channel == None:
            print('Не удалось подключиться к голосовому каналу.')
            return
        self.voice_client = await self.voice_channel.connect()
        print('Бот подключен к голосовому каналу')
        await self.text_to_speech("Lets play Guess the Tune")
        
    async def on_message(self,message):
        if message.author==self.user:
            return
        if message.content.startswith("game"):
            await self.text_to_speech("let's start the game guess the melody")
            music=os.listdir("sounds\\music")
            self.melody=random.choice(music)
            await self.play_sound(f"sounds\\music\\{self.melody}")
        elif message.content==self.melody[0:len(self.melody)-4]:
            if (self.voice_client.is_playing()):
                self.voice_client.stop()
            await self.text_to_speech(f"Congratulations, {message.author.name} answered correctly! To continue, type game")
        else:
            if (self.voice_client.is_playing()):
                self.voice_client.stop()
            await self.text_to_speech(f"Unfortunately, {message.author.name} did not guess. To continue, write game")


    async def on_voice_state_update(self,member,before,after):
        if member.id ==self.user.id:
            print('Someone entered or left the voice channel.')
        else:
            try:
                if before.channel == None:
                    print(f'{member.name} entered the voice channel {after.channel}.')
                    await self.play_sound(f'sounds\\hello\\{random.choice(self.sounds_hello)}')
                elif after.channel == None:
                    print(f'{member.name} left the voice channel {before.channel}.')
                    await self.play_sound(f'sounds\\bye\\{random.choice(self.sounds_bye)}')
            except Exception as e:
                print(f"Error in on_voise_state_update: {e}")

    async def text_to_speech(self,text):
        try:
            tts = gTTS(text=text, lang ="en")
            tts.save("text.mp3")
        except Exception as e:
            print(f"Error e: {e}")
        await self.voice_channel.send(text)
        await self.play_sound("text.mp3")

    def play_sound(self,path):
        print(path)
        source=discord.FFmpegPCMAudio(source=path, executable="ffmpeg\\bin\\ffmpeg.exe")
        if (self.voice_client.is_playing()):
            self.voice_client.stop()
        self.voice_client.play(source)                

client = Voice_Bot()
client.run(TOKEN)


    


    [enter image description here](https://i.sstatic.net/ys8Xza0w.jpg)

    


  • ffmpeg nvenc_h264 streaming uhd2160 rawvideo. Youtube buffering

    23 janvier 2019, par Alex Deroza

    I use this batch file for starting my stream :

    echo starting transocding from native uhd2160 to fhd format.. Host: YouTube
    ffmpeg ^
       -loglevel -8 ^
       -f rawvideo -s:v 1920x1080 -r 60 -pix_fmt nv12 ^
       -f dshow -i video="Game Capture 4K60 Pro Video 01":audio="Game Capture 4K60 Pro Audio 01" ^
       -c:v h264_nvenc ^
       -level:v 4.2 ^
       -profile:v high ^
       -preset:v hq ^
       -b:v 8.8M ^
       -color_range 2 ^
       -colorspace bt709 ^
       -bf 0 ^
       -g 60 ^
       -2pass 1 ^
       -rc:v cbr ^
       -coder cabac ^
       -acodec aac ^
       -ab 128k ^
       -movflags +faststart ^
       -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx && pause

    Stream on YouTube starts fine, and plays with good quality. But stream stops after when "Buffer Health" emptied. And in this situation Youtube says that "Video output low", "YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering."

    I can’t understand why it happens. Because I’ve a good ISP, and over 30 mbps inet to YT services within 90ms latency to them.

    YouTube is not receiving enough video to maintain smooth streaming. As
    such, viewers will experience buffering.

    Your encoder is sending data faster than realtime (multipleseconds of
    video each second). You must rate limit your livevideo upload to
    approximately 1 second of video each second.

    The stream’s current bitrate (5730.00 Kbps) is lower than the
    recommended bitrate. We recommend that you use a stream bitrate of
    4500 Kbps.