
Recherche avancée
Autres articles (71)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (4390)
-
Discord.js Music bot "TypeError" when playing audio with dispatcher
21 février 2020, par Cole PerryI’m new to Discord.js and I’m trying to have the bot join a voice channel and play an audio file on my computer. I have been following this guide : https://discord.js.org/#/docs/main/stable/topics/voice . Here is the Index.js page :
Colesbot.on('message', message=>{
if (message.content === '/join') {
// Only try to join the sender's voice channel if they are in one themselves
if (message.member.voiceChannel) {
message.member.voiceChannel.join().then(connection => {
message.reply('I have successfully connected to the channel!');
// To play a file, we need to give an absolute path to it
const dispatcher = connection.playFile('C:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\Assets\Glory.mp3');
dispatcher.on('end', () => {
// The song has finished
console.log('Finished playing!');
});
dispatcher.on('error', e => {
// Catch any errors that may arise
console.log(e);
});
dispatcher.setVolume(0.5); // Set the volume to 50%
}).catch(console.log);
} else {
message.reply('You need to join a voice channel first!');
}
}
});
exports.run = (client, message, args) => {
let user = message.mentions.users.first || message.author;
}FFMPEG is installed and I have set the environment path for it. When I type FFMPEG in the command line I get the proper response.
Some have said I need to install the ffmpeg binaries but when I run npm install ffmpeg-binaries I get an error message that is here
So then I tried installing an older version and I’m now using ffmpeg-binaries@3.2.2-3 but when I type /join I get the error
[ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
-
How to change or modify pitch of audio file (music etc like .mp3 file)using FFMPEG ?
18 octobre 2022, par syed kashifullahI want to change and modify pitch an .mp3 audio file using FFMPEG.
But I am unable to use FFMPEG to change or modify pitch of that sound.
what command (exact command) should be exactly use for changing pitch of an audio file ?


String outPutPath = new File("/storage/emulated/0/Share it Application/Over_the_HorizonTemp.wav").getPath();
 
 String[] strFfmpeg = {"ffmpeg","-i" ,strInputPath,"-af", "rubberband=tempo=1.0:pitch=1.5:pitchq=quality" ,outPutPath};
 execffmpegBinary(strFfmpeg);



execffmpegBinary Function :


public void execffmpegBinary(String[] command) {
 Config.enableLogCallback(new LogCallback() {
 @Override
 public void apply(LogMessage message) {
 Log.e(Config.TAG, message.getText());
 Log.e("TAG", "apply: " +message.getText());
 }
 });
 Config.enableStatisticsCallback(new StatisticsCallback() {
 @Override
 public void apply(Statistics statistics) {

 }
 });

 long executionId = FFmpeg.executeAsync(command, new ExecuteCallback() {
 @Override
 public void apply(long executionId, int returnCode) {
 if (returnCode == RETURN_CODE_SUCCESS) {
 
 Log.e("1TAG", "apply:return code "+returnCode );
 Log.e("1TAG", "apply:execution Id "+executionId );
 Log.e("1TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));


 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.e("2TAG", "apply:return code "+returnCode );
 Log.e("2TAG", "apply:execution Id "+executionId );
 Log.e("2TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

 } else {
 Log.e("3TAG", "apply: returnCode"+ returnCode);
 Log.e("3TAG", "apply:return code "+returnCode );
 Log.e("3TAG", "apply:execution Id "+executionId );
 Log.e("3TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

 }
 }
 });
}



-
Http 400 error : requesting https site with ip instead of hostname Android
8 novembre 2016, par David BarishevIm am developing an android application using xamarin.android.
In my application i use ffmpeg as a static library, from here.In my app i try to access a https site, but i was getting a dns error until i read the documentation, it stated that :
A limitation of statically linking glibc is the loss of DNS
resolution. Installing
nscd through your package manager will fix this or you can use
"ffmpeg -i http://<ip address="address" here="here">/"</ip>
instead of"ffmpeg -i http://example.com/"
So i tried to lookup the ip address and just replace the hostname. Here is the code i have written :
...
//part of main program
if (inputUrl.StartsWith("http"))
{
var splits = inputUrl.Split('/');
var hostName = splits[2];
var ip = GetIpForHost(hostName);
splits[2] = ip;
inputUrl= string.Join("/",splits);
}
//calling ffmpeg with the new url
...
private static string GetIpForHost(string hostname)
{
System.Net.IPHostEntry host = System.Net.Dns.GetHostEntry(hostname);
return host.AddressList.First().ToString();
}The code works fine, but now i’m getting different error, here is the ffmpeg log :
[https @ 0xb2b08e0] HTTP error 400 Bad Request
The original url i tried :
https://r8---sn-ivuoxu-ua8l.googlevideo.com/videoplayback?pl=26&itag=22&mt=1478622247&ms=au&ei=Mv0hWLWEAs-VW7zch6AB&mv=m&upn=DLluZN9oSzo&mn=sn-ivuoxu-ua8l&expire=1478644114&mm=31&ratebypass=yes&id=o-AC_NwrGbkh5OVe-ypJh2WaxzMBK5grMVsSYyG_wMQVZI&ip=5.29.246.6&pcm2cms=yes&key=yt6&lmt=1478408938763105&dur=229.575&initcwndbps=2682500&ipbits=0&gcr=il&requiressl=yes&sparams=dur,ei,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pcm2cms,pl,ratebypass,requiressl,source,upn,expire&mime=video/mp4&source=youtube&signature=0E47DFC7FBBDBCD6F36B56FB9871ED3B0DF4D12A.103BAB44FFEE918B78C7D076243B45AF69C444EC
//Modifed url
https://213.57.23.19/videoplayback?ratebypass=yes&ipbits=0&pl=26&requiressl=yes&mime=video/mp4&expire=1478643396&pcm2cms=yes&mt=1478621598&upn=mUgYIoXd3Dc&itag=22&mm=31&mn=sn-ivuoxu-ua8l&key=yt6&ip=5.29.246.6&dur=229.575&source=youtube&lmt=1478408938763105&ei=ZPohWKzbFoG9cpGGsIgH&id=o-AFbYd2BFoMp37bNWC1c0mtfqEwcwbQaNXrF2WraCeK2W&ms=au&gcr=il&mv=m&sparams=dur,ei,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pcm2cms,pl,ratebypass,requiressl,source,upn,expire&initcwndbps=2657500&signature=BFB25E20CD92AA3B85D115DB878F0BC2E94A1BF4.C36FBD7733D2CAF1E277FF3B625BED432822C012: Server returned 400 Bad RequestI have no problem accessing the original url through the browser, at the time i ran the program(There is a expired tag in the url,since i’m generating it at runtime).
I speculate that it’s not possible to connect via https through ip ?
Is there another way to connect to the url without the hostname, since android does have build in dns resolution, since i am able to view the url through the browser ?