
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 (77)
-
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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
Sur d’autres sites (7489)
-
find the timestamp of a sound sample of an mp3 with linux or python
23 juin 2020, par cardamomI am slowly working on a project which where it would be very useful if the computer could find where in an mp3 file a certain sample occurs. I would restrict this problem to meaning a fairly exact snippet of the audio, not just for example the chorus in a song on a different recording by the same band where it would become more some kind of machine learning problem. Am thinking if it has no noise added and comes from the same file, it should somehow be possible to locate the time at which it occurs without machine learning, just like grep can find the lines in a textfile where a word occurs.


In case you don't have an mp3 lying around, can set up the problem with some music available on the net which is in the public domain, so nobody complains :


curl https://web.archive.org/web/20041019004300/http://www.navyband.navy.mil/anthems/ANTHEMS/United%20Kingdom.mp3 --output godsavethequeen.mp3



It's a minute long :


exiftool godsavethequeen.mp3 | grep Duration
Duration : 0:01:03 (approx)



Now cut out a bit between 30 and 33 seconds (the bit which goes la la la la..) :


ffmpeg -ss 30 -to 33 -i godsavethequeen.mp3 gstq_sample.mp3



both files in the folder :


$ ls -la
-rw-r--r-- 1 cardamom cardamom 48736 Jun 23 00:08 gstq_sample.mp3
-rw-r--r-- 1 cardamom cardamom 1007055 Jun 22 23:57 godsavethequeen.mp3



This is what am after :


$ findsoundsample gstq_sample.mp3 godsavethequeen.mp3
start 30 end 33



Am happy if it is a bash script or a python solution, even using some kind of python library. Sometimes if you use the wrong tool, the solution might work but look horrible, so whichever tool is more suitable. This is a one minute mp3, have not thought yet about performance just about getting it done at all, but would like some scalability, eg find ten seconds somewhere in half an hour.


-
Using ffmpeg to get a passthrough stream and create an audio resource for discordjs/voice ?
5 novembre 2022, par Zer0I have access to an hls manifest file which i can use to download a song.
I use the following command to download it/pipe it to stdout :

ffmpeg -i 'https://api.someurl.com/1/2/3/stream.ismd/manifest.m3u8' -vn -sn -f flv -c copy -|ffmpeg -i - -b:a 192k -f mp3 -
.

I am successfully able to output a playable mp3 from this command.


I am looking for a way to get the same kind of result in nodejs and get a readable stream from the final download and then pipe it to
createAudioResource()
to make it playable in a discord voice channel.

There is a nodejs module called
m3u8stream
which i tried using with the code mentioned below but i couldnt get it to work as my knowledge of nodejs streams is limited and the documentation is confusing to understand.

const stream = new PassThrough()
let resource
const stream = m3u8stream('https://api.someurl.com/1/2/3/stream.ismd/manifest.m3u8', {parser : 'm3u8',
requestOptions : {headers : {"content-type" : "video/mp4"}}
}).pipe(stream)
stream.on('data', d=>{resource = createAudioResource(d)})
player.play(resource)



This code did not work and i am assuming this has something to do with
m3u8stream
itself because piping the stream tofs.createWriteStream('file.mp4')
as shown in their example results in a zero kb mp4 file.

I am sure there is be a better tool or a way to get a stream from the manifest and get it to play on discord and i would be happy to know about them as i am not bound to use ffmpeg for this.
Any help to make this work is appreciated. Thanks !


-
After a while of being idle, my bot, hosted on CentOS 7, can no longer find ffmpeg and requires a restart
14 août 2019, par Liam McMillen-MeyersSo I have a discord bot running with discord.js on a CentOS 7 machine. After a while (I’m not exactly sure how long) it will start throwing errors when I try to play a song, saying it can’t find ffmpeg, except that ffmpeg is installed. After I quickly restart the bot it works fine again.
I genuinely have no idea what causes this, I have a little experience with CentOS but I’m by no means an experienced user, is it something I did when it installed ? I have tried searching for answers online but I can’t find anything
Error : FFMPEG not found
at Function.selectFfmpegCommand (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:46:13)
at new FfmpegTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:7:37)
at new MediaTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/MediaTranscoder.js:10:19)
at new Prism (/user/DiscordBot/folder1/node_modules/prism-media/src/Prism.js:5:23)
at new VoiceConnection (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/VoiceConnection.js:46:18)
at Promise (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:63:22)
at new Promise ()
at ClientVoiceManager.joinChannel (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:45:12)
at VoiceChannel.join (/user/DiscordBot/folder1/node_modules/discord.js/src/structures/VoiceChannel.js:130:30)
at execute (/user/DiscordBot/folder1/bot.js:467:40)