
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (55)
-
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (6691)
-
FFMPEG on Linux (Mono)
28 novembre 2016, par Paulo AnjosI’m creating a Discord Bot and I’m using Dot.Net. So I downloaded the necessary libs (ffmpeg and opus [for Discord]) and I’m running the .exe with Mono.
I’m downloading a video file (mp4) and using FFMPEG to adjust the audio (16-bit, 48000Hz, PCM, 2 channels) and send it to the Discord Channel.
It works fine on Windows but it refuses to on Linux (Ubuntu 14.04).
It justs hangs and doesn’t do anything else like
this image shows.Same .exe but in Windows now (to compare if needed) : image link
I thought it was something with my Virtual Private Server but the same problem occured with my local Ubuntu 14.04 virtual machine.
Code to send the song to Discord (Dot.Net) :
async public void playAudio(Music m)
{
string path = "mp4" + Path.DirectorySeparatorChar + m.videoid + ".mp4";
Process mProcess = Process.Start(new ProcessStartInfo
{
FileName = "ffmpeg",
Arguments = //"-loglevel quiet " +
"-i " + (char)34 + path + (char)34 + " " +
"-f s16le -ar 48000 -ac 2 pipe:1",
UseShellExecute = false,
CreateNoWindow = false,
RedirectStandardOutput = true, //stdout of the process
RedirectStandardError = false,
Verb = "runas"
});
while (!Utils.isRunning(mProcess)) { await Task.Delay(500); }
while (true)
{
int blockSize = 3840;
byte[] buffer = new byte[blockSize];
int byteCount;
byteCount = mProcess.StandardOutput.BaseStream.Read(buffer, 0, blockSize);
if (byteCount == 0)
break;
if (stop_music)
break;
bot_audio.Send(buffer, 0, byteCount); //Send to Discord
}
...
}I find a little odd the
libavresample 3. 1. 0 / 3. 1. 0
at the image (missing lib maybe ?).Any thoughts ?
-
FFMPEG how to use https dynamic url as input for amovie filter
2 juillet 2020, par Johny SharmaBasically what i am trying to do is to calling a dynamic php url which is generating a audio file for me and just want to use that file as an input for amovie filter.
I hope you have understand my question.


What i have done so far ?


I have a FFMPEG code which is :


ffmpeg-y -i 'bg-file.mp3' -c copy -map 0:0 -map 1:0 -filter_complex "amovie='/auth.php?input=string&l=hi&f.mp3':loop=999[sc][mix];[0:a][sc]sidechaincompress=threshold=0.100:ratio=20,volume=10dB:precision=fixed[bg], [bg][mix]amix=duration=first" -c:a libmp3lame -ac 2 "save.mp3"



This line is calling my dynamic url for generating the required song.


"amovie='/auth.php?input=string&l=hi&f.mp3'



Everything is working if i check them apart. but when i use them together the ffmpeg is giving the following error.


[22] => [Parsed_amovie_0 @ 0x1378140] Failed to avformat_open_input '/auth.php?input=string&l=hi&f.mp3':loop=999'
[23] => [AVFilterGraph @ 0x1368ca0] Error initializing filter 'amovie' with args '/auth.php?input=string&l=hi&f.mp3':loop=999'
[24] => Error initializing complex filters.
[25] => No such file or directory



I dont know is it possible to put a dynamically generated url as an input for amovie filter or not ?
if i open my dynamic url in browser its works like a mp3 file and play similar to any mp3 file.


using this code to play that mp3 :


header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($path));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
ob_clean();
flush();
readfile($path);
exit;



This one looks similar to my query but slightly different and that's why i am still looking for a solution


How to use https input with ffmpeg "amovie" filter ?


-
Error (ERR_STREAM_DESTROYED) : Cannot call write after a stream was destroyed
3 avril 2021, par TTT Tobi Triple TalkI'm getting this error when I run my discord bot on my raspberry pi. It worked everytime when I run it on my windows machine. I installed FFmpeg with sudo apt-get install ffmpeg. I don't know if I need to install something else for ffmpeg on my raspberry pi
This is the error I'm getting


events.js:291
 throw er; // Unhandled 'error' event
 ^

Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
 at doWrite (_stream_writable.js:399:19)
 at writeOrBuffer (_stream_writable.js:387:5)
 at Socket.Writable.write (_stream_writable.js:318:11)
 at PassThrough.ondata (_stream_readable.js:718:22)
 at PassThrough.emit (events.js:314:20)
 at addChunk (_stream_readable.js:297:12)
 at readableAddChunk (_stream_readable.js:272:9)
 at PassThrough.Readable.push (_stream_readable.js:213:10)
 at PassThrough.Transform.push (_stream_transform.js:152:32)
 at PassThrough.afterTransform (_stream_transform.js:96:10)
Emitted 'error' event on FFmpeg instance at:
 at errorOrDestroy (internal/streams/destroy.js:108:12)
 at FFmpeg.onerror (_stream_readable.js:754:7)
 at FFmpeg.emit (events.js:314:20)
 at Socket.processError (node_modules/prism-media/src/core/FFmpeg.js:64:40)
 at Socket.emit (events.js:314:20)
 at errorOrDestroy (internal/streams/destroy.js:108:12)
 at onwriteError (_stream_writable.js:418:5)
 at onwrite (_stream_writable.js:445:5)
 at doWrite (_stream_writable.js:399:11)
 at writeOrBuffer (_stream_writable.js:387:5) {
 code: 'ERR_STREAM_DESTROYED'
}



Normally it should play an audio stream to a discord channel.
I don't think my code is wrong, because it's working on my other computer.
My code :


let stream;
//Meme.url is just a youtube link, like https://www.youtube.com/watch?v=dQw4w9WgXcQ
stream = ytdl(meme.url, {
 filter: "audioonly",
 opusEncoded: true,
 encoderArgs: ['-af', "dynaudnorm=f=150"]
}).on("error", (err) => {
 console.log(err);
});
 try {
 song_queue.connection.play(stream, { type: "opus" })
 .on('finish', () => {
 
 });
 } catch (err) {
 console.log(err);
 message.channel.send("Error while the meme song");
 }