
Recherche avancée
Autres articles (44)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (6282)
-
Discord bot not playing any audio
7 mars 2023, par MarkixI'm making a discord music bot with Discord.js v14,
@discordjs/voice
, and Typescript and I have this play command but it doesn't seem to be working. It successfully joins, throws no exceptions but... no audio.

This is my code :


import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import { joinVoiceChannel, createAudioPlayer, getVoiceConnections, StreamType, AudioPlayerStatus } from "@discordjs/voice";
import { createAudioResource } from "@discordjs/voice";
import ytdl from 'ytdl-core';

module.exports = {
 data: new SlashCommandBuilder()
 .setName('play')
 .setDescription('Play příkaz')
 .addStringOption(option => 
 option
 .setName("link")
 .setDescription("Youtube link!")
 .setRequired(false)
 ),

async execute(interaction: CommandInteraction) {
 const link = interaction.options.get('link')?.value?.toString();
 const player = createAudioPlayer();
 const resource = createAudioResource(ytdl(`${link}`, { filter: "audioonly" }), { inlineVolume: 1.0, inputType: StreamType.WebmOpus });

 player.play(resource);

 const connection = joinVoiceChannel({
 channelId: "775815628619251743",
 guildId: "775761665786511370",
 adapterCreator: interaction.guild?.voiceAdapterCreator,
 selfMute?: false,
 selfDeaf: false
 });

 const subscription = connection.subscribe(player);
 interaction.reply("Now playing: .-.");
}



This is
"dependencies"
in my package.json

"dependencies": {
 "@discordjs/builders": "^1.2.0",
 "@discordjs/rest": "^1.5.0",
 "@discordjs/voice": "^0.14.0",
 "@types/express": "^4.17.14",
 "discord.js": "^14.4.0",
 "dotenv": "^16.0.2",
 "express": "^4.18.1",
 "ffmpeg": "^0.0.4",
 "ffmpeg-static": "^5.1.0",
 "libsodium-wrappers": "^0.7.11",
 "opusscript": "^0.0.8",
 "sequelize": "^6.23.2",
 "sqlite3": "^5.1.2",
 "ts-node": "^10.9.1",
 "ytdl-core": "^4.11.2"
 }



(And yes I also have ffmpeg installed globally)


markix@pop-os-lenovo-laptop:~$ apt list --installed | grep -i ffmpeg 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

chromium-codecs-ffmpeg-extra/jammy,now 1:85.0.4183.83-0ubuntu2 amd64 [installed,upgradable to: 1:85.0.4183.83-0ubuntu2.22.04.1]
ffmpeg/jammy-security,jammy-updates,now 7:4.4.2-0ubuntu0.22.04.1 amd64 [installed,automatic]



What am I doing wrong ?


-
The Fastest Way To Learn Assembly Language
4 septembre 2011, par Multimedia Mike — ProgrammingI saw an old StackOverflow thread linked from Hacker News asking how to whether it’s worthwhile to learn assembly language and how to go about doing so. I’d like to take a stab at the last question.
The fastest way to learn an assembly language is to reverse engineer something. Seriously, start with something that you know (like a C program that you wrote yourself) and take it apart. The good news is that assembly language is very simple and you will get a lot of practice in a short amount of time with RE.
So here’s how you do it :
- Take a simple program in C and build it with your tool chain, whether GNU gcc on Linux, Xcode on Mac, or MSVC on Windows. Also, make sure to turn on debugging symbols during compilation (this will help annotate the disassembly).
- On Linux, use objdump :
objdump -d program_binary
- On Mac, use otool :
otool -tV program_binary
- On Windows : I admit, I’m a bit fuzzy on this one– I’m quite certain there’s a standard MSVC tool that prints the assembly listing.
Anyway, look at the disassembled code and find the main() function. Work from there. Whatever the first instruction is, look it up on Google. You’ll likely find various CPU manuals that will explain the simple operation of the instruction. Look up the next unfamiliar instruction, then the next. Trust me, you’ll become an ASM expert in no time.
Good luck !
-
Install ffmpeg on Windows server 2008 [closed]
23 mars 2013, par Tamer SherifI need to install ffmpeg on windows server 2008 with IIS 7, I have a php script "Youtube Clone" and i need to use this script to upload and encode videos.I have searched the internet but i couldn't find a good tutorial for this.