Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (65)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6680)

  • Youtube-dl and Ffmpeg

    25 juin 2022, par Joksy

    i have made a music bot with discord.py, but i get this info thing and it doesnt work anymore error [youtube] QxYdBvB8sOY: Downloading webpage 985104597242773505 [2022-06-25 07:45:51] [INFO    ] discord.player: Preparing to terminate ffmpeg process 37580. [2022-06-25 07:45:51] [INFO    ] discord.player: ffmpeg process 37580 has not terminated. Waiting to terminate... [2022-06-25 07:45:51] [INFO    ] discord.player: ffmpeg process 37580 should have terminated with a return code of 1. this is my code

    


    import discord
import os
import asyncio
import youtube_dl
from discord import *

token = "token is here"
prefix = "j!"
blocked_words = ["blocked words are here"]

voice_clients = {}

yt_dl_opts = {'format': 'bestaudio/best'}
ytdl = youtube_dl.YoutubeDL(yt_dl_opts)

ffmpeg_options = {'options': "-vn"}

intents = discord.Intents.default()
intents.message_content = True

client = discord.Client(intents=intents)


programmer_role = "987018590152699964"
            


@client.event
async def on_ready():
    print(f"Bot logged in as {client.user}")

@client.event
async def on_message(msg):
    if msg.author != client.user:
        if msg.content.lower().startswith(f"{prefix}info"):
            await msg.channel.send(f"Hi, Im JoksysBot Made By Joksy!")

        for text in blocked_words:
            if text in str(msg.content.lower()):
                await msg.delete()
                await msg.channel.send("Hey, Dont Say That!")
                return
        if msg.content.startswith(f"{prefix}play"):

            try:
                voice_client = await msg.author.voice.channel.connect()
                voice_clients[voice_client.guild.id] = voice_client
            except:
                print("error")

            try:
                url = msg.content.split()[1]

                loop = asyncio.get_event_loop()
                data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=False))

                song = data['url']
                player = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe")

                voice_clients[msg.guild.id].play(player)

            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}pause"):
            try:
                voice_clients[msg.guild.id].pause()
            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}resume"):
            try:
                voice_clients[msg.guild.id].resume()
            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}stop"):
            try:
                voice_clients[msg.guild.id].stop()
                await voice_clients[msg.guild.id].disconnect()
            except Exception as err:
                print(err)

client.run(token)



    


    its weird since all the other code in my bot works fine like the !info command, so it must be an error with either youtube-dl or ffmpeg. But then again it doesnt join the voice call in the first place so that might be the error. i added ffmpeg to path but i still wrote the path to it here player = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe"). i followed this tutorial for the bot https://www.youtube.com/watch?v=Q8wxin72h50&t=1040s i did everything he did but it didnt work. My discord.py version is 2.0.0 my Python version is 3.10.5 and my youtube_dl version is 2021.12.17 my ffmpeg download is ffmpeg-2022-06-16-git-5242ede48d-full_build. I tested it on discord.py 1.73 and it worked fine. This was in intellij though whilst my main program is in Visual Studio Code but i couldnt see it making any big difference so it could be the intents that makes the program not work.I couldnt see any mistakes in the code but im new to discord.py, youtube_dl and ffmpeg stuff so unless visual studio code showed me what i did wrong, i wouldnt notice. But what did i do wrong and how can i fix it ?

    


  • ffmpeg how mkv to mp4 with attachment in subtitle [closed]

    17 juillet 2022, par SoonHiru

    i have trouble,,
how re-encode MKV to MP4 with attachment font in substitles, before im muxing font using mkvmerge

    


    
Stream #0:0 : Video : h264 (High), yuv420p(tv, bt709, progressive), 848x480 [SAR 160:159 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata :
      ENCODER : Lavc58.134.100 libx264
      BPS : 266289
      DURATION : 00:23:40.044000000
      NUMBER_OF_FRAMES : 34047
      NUMBER_OF_BYTES : 47267933
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn) : Audio : aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata :
      BPS : 128000
      DURATION : 00:23:40.108000000
      NUMBER_OF_FRAMES : 61159
      NUMBER_OF_BYTES : 22721748
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(ind) : Subtitle : ass (default) (forced)
    Metadata :
      BPS : 1126
      DURATION : 00:23:30.250000000
      NUMBER_OF_FRAMES : 1596
      NUMBER_OF_BYTES : 198591
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3 : Attachment : none
    Metadata :
      filename : ABELBECKER-LIGHT_0.TTF
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:4 : Attachment : none
    Metadata :
      filename : Leander_0.ttf
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:5 : Attachment : none
    Metadata :
      filename : OvertheRainbowFlipped_0.ttf
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:6 : Attachment : none
    Metadata :
      filename : QlassikBold_TB - Copy_0_0.ttf
      mimetype : font/otf
      title : Imported font from sha202.ass
Unsupported codec with id 0 for input stream 3
Unsupported codec with id 0 for input stream 4
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6


    


    I try using script

    


    ffmpeg -i input.mkv -vf subtitles=input.mkv output.mp4


    


    when finished, only the subtitles, not with attachments fonts

    


  • Process in c# freezes up

    12 juillet 2022, par Quicksoapy

    environment : Rider 2022.1.2, .NET 6.0, Windows 10

    


    The following piece of code should copy the musicFile that is given and add a cover to the copy, then place it as name : title - artist.extension in the same directory, for example never gonna give you up - rick astley.mp3

    


    When debugging, if i copy-paste what is saved in the variable p.StartInfo.Argumentsin a CMD terminal, it works perfectly, but in my c# code the program freezes up at p.WaitForExit();.

    


    What could i be doing wrong ?

    


     using (Process p = new Process())
    {
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.CreateNoWindow = true;
        p.StartInfo.RedirectStandardOutput = true;
        p.StartInfo.FileName = "CMD.exe";
        p.StartInfo.Arguments = "ffmpeg -i \""+ musicFile +"\" -i  \""+  albumInfo.Image.Uri.ToString() +"\" -map 0:a -map 1 -codec copy -metadata:s:v title=\"Album cover\" -metadata:s:v comment=\"Cover (front)\" -disposition:v attached_pic \"" + directoryFile + "\\" + title + " - " + artist + "." + formatName + "\"";
        p.Start();
        p.WaitForExit();
    }