
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (75)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie 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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (11897)
-
Discord bot transmitting audio not working
24 avril 2024, par R5B3NBBthis discord bot is supposed to join the users voice channel and play music, everything works except for it not transmitting audio. from what I can gather the error is happening somewhere between it playing the audio file and it being transmitted. any helps appreciated and I'm sure it's not on the discord bot side since I gave it admin permissions and it still didn't work.
should also be mentioned that im not a veteran when it comes to JavaScript so if the error s obvious sorry.


const { Client, GatewayIntentBits, SlashCommandBuilder, MessageEmbed } = require("discord.js");
const { joinVoiceChannel, createAudioPlayer, NoSubscriberBehavior, createAudioResource } = require('@discordjs/voice');
const { token } = require("./config.json");
const fs = require('fs');

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions] });

client.once("ready", () => {
 console.log("Bot active.");

 const ping = new SlashCommandBuilder()
 .setName('ping')
 .setDescription('Replies with pong!');

 const hello = new SlashCommandBuilder()
 .setName('hello')
 .setDescription('Says hello!')
 .addUserOption(option =>
 option
 .setName('user')
 .setDescription('The user to say hi to')
 .setRequired(false)
 );

 const echo = new SlashCommandBuilder()
 .setName('echo')
 .setDescription("Echo's a message")
 .addStringOption(option =>
 option
 .setName('text')
 .setDescription('The text to repeat')
 .setRequired(true)
 );

 const mata = new SlashCommandBuilder()
 .setName('mata')
 .setDescription('Green, ma-ta is here!');

 const eddy = new SlashCommandBuilder()
 .setName('eddy')
 .setDescription('Original reggae music!')
 .addStringOption(option =>
 option
 .setName('local_audio')
 .setDescription('Provide the name of the local audio file')
 .setRequired(true)
 );

 const disconnect = new SlashCommandBuilder()
 .setName('disconnect')
 .setDescription('Disconnects the bot from the voice channel');

 const commands = [ping, hello, echo, mata, eddy, disconnect];

 commands.forEach(command => client.guilds.cache.forEach(guild => guild.commands.create(command)));


});

client.on('interactionCreate', async interaction => {
 console.log("Interaction received.");
 
 if (!interaction.isCommand()) {
 console.log("Not a command interaction.");
 return;
 }

 const { commandName, options, member, guild } = interaction;
 console.log("Command name:", commandName);

 if (commandName === 'ping') {
 console.log("Ping command executed.");
 await interaction.reply("Pong!");
 } else if (commandName === 'hello') {
 console.log("Hello command executed.");
 let user = options.getUser('user') || member.user;
 await interaction.reply(`Hello ${user.username}!`);
 } else if (commandName === 'echo') {
 console.log("Echo command executed.");
 const text = options.getString('text');
 await interaction.reply(text);
 } else if (commandName === 'mata') {
 console.log("Mata command executed.");
 const embed = new MessageEmbed()
 .setColor('#00FF00')
 .setTitle('This is mata!')
 .setDescription('She is very ugly!')
 .setImage('https://scottbarrykaufman.com/wp-content/uploads/2011/08/pig-ugly-woman-fat-face.jpg');

 await interaction.reply({ embeds: [embed] });
 } else if (commandName === 'eddy') {
 console.log("Eddy command executed.");

 const voiceChannel = member.voice.channel;
 if (!voiceChannel) {
 await interaction.reply("You need to be in a voice channel to use this command.");
 return;
 }

 const connection = joinVoiceChannel({
 channelId: voiceChannel.id,
 guildId: guild.id,
 adapterCreator: guild.voiceAdapterCreator,
 });

 connection.on('stateChange', (state) => {
 console.log(`Connection state changed to ${state.status}`);
 });

 connection.on('error', (error) => {
 console.error('Connection error:', error);
 });

 const localAudioFile = options.getString('local_audio');
 const filePath = `./audio/Gorillaz.mp3`;

 console.log("File path:", filePath);

 if (!fs.existsSync(filePath)) {
 console.log("File does not exist.");
 await interaction.reply("The specified local audio file does not exist.");
 return;
 }

 const audioPlayer = createAudioPlayer({
 behaviors: {
 noSubscriber: NoSubscriberBehavior.Pause,
 },
 });

 const stream = fs.createReadStream(filePath);
 const resource = createAudioResource(stream);
 audioPlayer.play(resource);

 connection.subscribe(audioPlayer);

 console.log("Audio playback started.");
 await interaction.reply("Now playing audio in your voice channel!");
 } else if (commandName === 'disconnect') {
 console.log("Disconnect command executed.");
 const voiceChannel = member.voice.channel;

 if (!voiceChannel) {
 await interaction.reply("The bot is not in a voice channel.");
 return;
 }

 const connection = joinVoiceChannel({
 channelId: voiceChannel.id,
 guildId: guild.id,
 adapterCreator: guild.voiceAdapterCreator,
 });

 connection.on('stateChange', (state) => {
 console.log(`Connection state changed to ${state.status}`);
 });

 connection.on('error', (error) => {
 console.error('Connection error:', error);
 });

 if (connection) {
 connection.destroy();
 console.log("Disconnected from the voice channel.");
 }
 }
});

client.login(token);



-
Revision 3febf9707d : Default superblock skip flag to 32x32 for skip-blocks. This is identical to the
30 janvier 2013, par Ronald S. BultjeChanged Paths : Modify /vp9/encoder/vp9_rdopt.c Default superblock skip flag to 32x32 for skip-blocks. This is identical to the later decisions made in encode_superblock(). This commit doesn't actually change anything, but makes the mbmi state more consistent between the RD loop and the final (...)
-
How to create video from multiple gallery images store in array flutter ffmpeg
26 janvier 2023, par AmmaraI select images from gallery using multi_image_picker in flutter and store all images in array.


try {
 resultList = await 
 MultiImagePicker.pickImages(
 maxImages: 300,
 enableCamera: true,
 selectedAssets: images,
 materialOptions: MaterialOptions(
 actionBarTitle: "Photo Editor and Video 
 Maker App",
 ),
 );
 }



User can select images from gallery and store in resultlist array.
Now I want to pass this array to ffmpeg to create video from all these images.


I try a lot and search almost all sites but fail. Here is my code.


Future<void> ConvertImageToVideo () async{
const String BASE_PATH = '/storage/emulated/0/Download/';
const String AUDIO_PATH = BASE_PATH + 'audiio.mp3';
const String IMAGE_PATH = BASE_PATH + 'image002.png';
const String OUTPUT_PATH = BASE_PATH + 'output02.mp4';
// final FlutterFFmpeg _flutterFFmpeg = FlutterFFmpeg();
if(await Permission.storage.request().isGranted){
 List<asset> resultlist = <asset>[];
 String commandToExecute =
 '-r 15 -f mp3 -i ${AUDIO_PATH} -f image2 -i ${resultlist} -y ${OUTPUT_PATH}';
 await FFmpegKit.execute(commandToExecute).then((session) async {
 final returnCode = await session.getReturnCode();
 final state = await session.getState();
 if (ReturnCode.isSuccess(returnCode)) {
 print("ruuning "+state.toString());
 print("video created " + returnCode.toString());
 } else if (ReturnCode.isCancel(returnCode)) {
 print("video cancel " + returnCode.toString());
 } else {
 print("error " );
 }
 });
}else if (await Permission.storage.isPermanentlyDenied) {
 openAppSettings();
}
</asset></asset></void>


}