Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

  • Anomalie #1701 (Fermé) : mauvais tri dans boucles de forum

    27 juin 2011, par cedric -

    Produit la requete normale SELECT forum.date_thread, id_thread, forum.id_thread, forum.id_forum FROM spip_forum AS ’forum’ WHERE (forum.statut = ’publie’) AND (forum.id_parent = 0) GROUP BY id_thread ORDER BY forum.date_thread DESC Je ne vois pas de bug, et si je test j’ai bien une date_thread (...)

  • Monitor HLS and ICY streams metadata with ffmpeg

    4 juillet 2021, par Кирилл Зайдулин

    Do anyone know is it possible to continuously output the name of playing song for the HLS or ICY streams ?

    


    For ICY streams I found the possible solution : ffmpeg -i "http://media-ice.musicradio.com/CapitalMP3" output.aac -v trace — with "-v trace" option it will output a lot of extra information + updates of metadata.
But for HLS this approach is not working, metadata is not refreshing when song changed.

    


    Any help would be nice. Thanks !

    


  • ydl erroring on download only getting partial download and an error on ydl.download([url])

    11 septembre 2022, par newtboot

    building an audio stream bot command for my custom discord bot but it keep throwing errors on ydl.download([url]) and only fetches a partial download assuming it disconnects from server before finishing download i'm not sure how to fix this error or if its just a syntax thing

    


    import discord
import aiohttp
import random
import youtube_dl
import os
from discord.ext import commands

@bot.command()
async def play(ctx, url : str):
    song_there = os.path.isfile("song.mp3")
    try:
        if song_there:
            os.remove("song.mp3")
    except PermissionError:
        await ctx.send("wait for current audion to finish or use the 'stop' command")
        return

    voiceChannel = discord.utils.get(ctx.guild.voice_channels, name='moosic')
    voice = discord.utils.get(bot.voice_clients, guild=ctx.guild)
    if voice is None or not voice.is_connected():
        await voiceChannel.connect()
    ydl_opts = {
        'format': 'bestaudio/best',
        'postprocessors': [{
            'key': 'FFmpegExtractAudio',
            'preferredcodec': 'mp3',
            'preferredquality': '192',
        }],
    }
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        ydl.download([url])
    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            os.rename(file, "song.mp3")
    voice.play(discord.FFmpegPCMAudio("song.mp3"))