
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (47)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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 ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (6947)
-
Discord Bot Not Playing Audio discord.js v13
17 avril 2023, par ChronoAeroI'm trying to make a discord bot that can play mp3 files in a voice channel.. but it doesn't seem to work as intended



 connection = joinVoiceChannel({
 channelId: voice.channelId,
 guildId: interaction.guildId,
 adapterCreator: voice.channel.guild.voiceAdapterCreator,
 });
 
 
 let resource = createAudioResource(createReadStream(join(__dirname, 'resources/try.mp3')), {
 inlineVolume : true
 });

 resource.volume.setVolume(0.2);

 console.log(join(__dirname, 'resources/try.mp3'));
 
 const player = createAudioPlayer();

 connection.subscribe(player);
 player.play(resource)
 console.log("done");

 await interaction.reply('I have joined the voice channel!');



It successfully joined the voice channel, but it does not play any sound at all


The bot joined the voice channel


I have made sure that the directory name is correct by console.logging join(__dirname, 'resources/try.mp3')


I have also tried to check the required dependency for playing audios in discord.js v13


const { generateDependencyReport } = require('@discordjs/voice');

console.log(generateDependencyReport());



here's the output :


--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.6.0
- prism-media: 1.3.2

Opus Libraries
- @discordjs/opus: 0.5.3
- opusscript: not found

Encryption Libraries
- sodium: not found
- libsodium-wrappers: 0.7.9
- tweetnacl: not found

FFmpeg
- version: 4.4-essentials_build-www.gyan.dev
- libopus: yes
--------------------------------------------------



I think the discord.js v13 docs said that it only requires any one of each Core , Opus, Encryption, and FFmpeg Dependencies (Correct me if I'm wrong)


Did I miss anything ?


Thank you in advance


-
Streaming raw sound with FFMPEG
30 juin 2020, par Dr_ClickI'm using the ffmpeg library to decode / encode audio in JAVA, using the Process objets. The aim is to got the raw datas decoded by ffmpeg in my JAVA code and then, to send them back to ffmpeg to generate a stream or create a file.



As JAVA sounds only allow wav audio datas, I made a first try with this command line :



ffmpeg -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 "/home/dr_click/montest.wav"




It works. But, my goal is to get the frames on the fly and not a file. I thought about using a pipe but it seems it will work only with Linux and not with Windows (and no idea for MacOS)
So, I'd prefer to stream locally a wav file and to catch it with JAVA into a AudioInputStream.



I wrote this command :



ffmpeg -re -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp rtp://127.0.0.1:1234




It semms to work on the server side. But, when I enter the below command line on the server side :



ffplay rtp://127.0.0.1:1234




It doesn't work at all. I got this error :



- 

- [rtp @ 0x7f29c8000b80] Unable to receive RTP payload type 97 without an SDP file describing it





If I try the couple :



ffmpeg -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234




and



ffplay /home/dr_click/audio.sdp




I got the following error :



- 

- [rtp @ 0x7f7d00008040] Protocol 'rtp' not on whitelist 'file,crypto' ! if





And if I finally try :



fmpeg -protocol_whitelist file,http,rtp,tcp -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234




I still get the same error.



Which point do I miss to stream locally some raw datas and catch them back in the AudioInputStream ?



Thank you for all your replies.


-
Concatenate mp4 files in Android using halfninja ffmpeg
21 février 2015, par BudiusI’ve manage to compile halfninja ffmpeg scripts for Android NDK using NDK version r5c. (Unfortunately any attempt to compile with earlier NDK generated some error), also I’m not very knowledgeable on the whole NDK process, so it’s a bit hit-n-miss for me.
His scripts are compiling ffmpeg version N-30996-gf925b24 (the specific commit he did the scripts for)
Moving forward to my actual app.
I manage to trim videos without problems, now I need to join/concatenate them but any attemp at using any and several combinations of the commands found on those 3 links (link1, link2, link3) generate errors such ascat is not valid
,> is undefinined
,unknown option filter_complex
or trying to override some of the input files.Does anyone know if it’s possible and (how to do it), to join/concatenate mp4 videos (all same codec, size, quality, etc) using half-ninja compile of ffmpeg on Android, or how to compile/get a ffmpeg for Android using latest source codes ?
I’ve also gave a quick try on the mp4Parser without much success.
ultimately I was trying to get this pseudo-method to work :
public static File concatenate(String[] inputPaths, String outputPath){
// ... do stuff do generate ffmpeg commands....
VideoKit v = new VideoKit();
v.run(cmds);
File f = new File(outputPath);
return f;
}