
Recherche avancée
Autres articles (50)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 : (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (5455)
-
Correct ffmpeg scale command syntax
10 novembre 2015, par user3132858I am new to ffmpeg and need some help with the correct syntax for a scale command I found here.
Below is my code :
$width=300;
$height=200;
$aspect=$width/$height;
$command = "/usr/local/bin/ffmpeg -y -i 1.mp4 -vf scale=min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (gte(a\,".$aspect.")*".$width." + \
lt(a\,".$aspect.")*((".$height."*iw)/ih)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*iw : \
min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (lte(a\,".$aspect.")*".$height." + \
gt(a\,".$aspect.")*((".$width."*ih)/iw)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*ih -b 1200k -acodec aac -strict -2 2.mp4 ";Video is successfully converted however, the scaling does not go trough.
The code is copied word for word, I only make two changes :
- removed the " before
scale
word and from the end - replaced the $FW with $width, $FH with $height and $FA with $aspect.
Any suggestion at what might be wrong ?
- removed the " before
-
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;
}
} -
ffmpeg to cut beginning and fade in audio
31 juillet 2024, par cannyboyI've got a bunch of spoken word mp3 files, which all have the same intro talking and music, and then the real content begins. So it goes roughly like this :


00:00 Standard intro spoken word
00:20 Standard intro music
00:35 The content



The timings are not always the same (can vary by 5 secs). So I'd to cut the first 25 seconds and then fade in the next five seconds. And then output the file in the same mp3 format. Is this possible with ffmpeg ?