
Recherche avancée
Autres articles (8)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
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 (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (4046)
-
FFMPEG concatinate audio file and add background music
2 mai 2018, par Swetanka JaiswalI want to concatenate 2 audio files and play the third audio in the background. I used below code
ffmpeg -i 1.mp3 -i 2.mp3 -i background.mp3 -filter_complex "[0:0][1:0]concat=n=2:v=0:a=1,volume=1dB[a0] ;[2]volume=0.5dB[a1] ;[a0][a1]amerge[a]" -map "[a]" -strict -2 -y final.mp3
suggested here ffmpeg : How to concat audio files and add background music in a single command ?
But it is giving error "The following filters could not choose their formats : Parsed_amerge_3 Consider inserting the (a)format filter near their input or output."
Please let me know what I’m doing wrong.
-
ffmpeg : How to concat audio files and add background music in a single command ?
1er mai 2018, par harishkumar329Need to concat audio files and add background music in a single command.
Right now I use the following commands to do so,
To concat :
ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp4 -i 5.mp4 -i 6.mp4 -i 7.mp4 -i 8.mp4 -i 9.mp4 -i 10.mp4 -filter_complex '[0:0][1:0]concat=n=10:v=0:a=1[out]' -map '[out]' -strict -2 -y 10_final.mp4
To add background music :
ffmpeg -i 10_final.mp4 -i music.mp4 -filter_complex "[0:a]volume=1dB[a0];[1:a]volume=0.5[a1];[a0][a1]amerge=inputs=2[a]" -map "[a]" -ac 1 -ab 32000 -ar 22050 -strict -2 -y 10_with_music.mp4
But his process is a quite time-consuming process as every time the file read/write happening to the output.
Is there a way I can merge these two above commands to a single so that the command should be optimized.
-
Doubts in the development of a music bot for discord, using DSharpPlus and ffmpeg
21 avril 2018, par VralagoI have been making a bot for Discord, and recently I thought about adding the music system. Well I even understand how it works but also have some things that I’m not understanding how I should do it (I’m using the DiscordSharpPlus api), for example putting the music on pause (bearing in mind that ffmpeg continues to read the music).
So I wanted to know if anyone can explain me or tell me how I should do it or how it works, given that it is my first time using ffmpeg and I do not know all the functions of the program.
If it is necessary, there is the code where the ffmpeg is and the sending of data to the discord.
public static async Task AddMusicFromYoutube(VoiceNextConnection vnc, CommandContext ctx, string url)
{
string fileName = "";
if (url.ToLower().Contains("youtube.com"))
{
fileName = await DownloadFromYouTube(url);
if (fileName == string.Empty) return;
await ctx.RespondAsync($"Playing for **Youtube** -> `{url}`");
await vnc.SendSpeakingAsync(true);
var ffmpeg_pro = new ProcessStartInfo
{
FileName = "Libs/ffmpeg",
Arguments = $@"-xerror -i ""{fileName}.mp3"" -ac 2 -f s16le -ar 48000 pipe:1",
RedirectStandardOutput = true,
UseShellExecute = false
};
var ffmpeg = Process.Start(ffmpeg_pro);
Stream ffout = ffmpeg.StandardOutput.BaseStream;
using (var ms = new MemoryStream())
{
await ffout.CopyToAsync(ms);
ms.Position = 0;
var buff = new byte[3840];
var br = 0;
while ((br = ms.Read(buff, 0, buff.Length)) > 0)
{
if (br < buff.Length)
for (var i = br; i < buff.Length; i++)
buff[i] = 0;
await vnc.SendAsync(buff, 20); // Send PCM date for discord
//tentativa de parar a musica
if (Program.IsPuased)
{
while (Program.IsPuased)
{
}
}
}
ms.Close();
}
await vnc.SendSpeakingAsync(false);
}
else
{
await ctx.RespondAsync($"{ctx.Member.Mention}, por agora só aceito link's do Youtube!");
return;
}
}