
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (14)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (4168)
-
Restrict FFmpeg/FFserver stream to logged user
11 juillet 2018, par Homero BonominiI have a live feed setup with FFmpeg streaming audio/video from a webcam through a FFserver. Also, I have a Apache server running a website with a login page, all on the same machine.
The question is : how can I protect this live stream over a user authentication, so that my camera doesn’t go public ?
The goal is to provide the resource over
http://myexternalip/camera-for-auth-user
, for example. The login routes are working fine, but anyone with the stream link (e.g.http://myexternalip:1099/camera.webm
) can watch the stream.In the website adding a video element with a local reference, after a user authentication :
<video controls="controls">
</video>obviously fails, since the remote client tries to access the resource on itself. However, I think some sort of local redirect, or maybe don’t use FFServer at all, would meet my needs, but I couldn’t manage to find out how.
-
ffmpeg reduce mp4 size errors : 'Unknown encoder libx264' and 'Unable to find a suitable output format for'
25 juillet 2018, par martinsI am quite new to ffmpeg and video editing. I try to reduce the size of various mp4 files. I followed a pretty straightforward tutorial (link) and also copy the audio. In Terminal (Mac user) I write :
ffmpeg -i inputfile.mp4 -c:a copy -c:v libx264 -crf 24 outputfile.mp4
The error here is :
Unknown encoder 'libx264'
and even when I omit the ’libx264’ from the code above, it still gives me the following error :[NULL @ 0x7f9a21814c00] Unable to find a suitable output format for '24' 24: Invalid argument
As long as I know, 24 is a totally valid value for crf. Of course I tried with others (20, 14, 30) and the error is still there.
I would very much appreciate a bit of guidance. Thanks for your time in advance.
-
How to add an album cover to an mp3 stream using FFmpeg ?
29 décembre 2022, par Daniel LAPIDESI'm having a bit of an issue and I'd really appreciate it if I could get some insights.



What I am trying to do is to add an album cover to the mp3 file that will be downloaded from the front-end.



Context



I'm downloading a video stream from YouTube and converting it to mp3 using
fluent-ffmpeg
.

To get the video I use theytdl
npm module.


I then pipe this stream to the front-end.



What I've found



fluent-ffmpeg
offers eitherpipe()
orsaveToFile()
.


What I figured is that when I use the
saveToFile()
function and actually save my stream into an mp3 file, it works, I do get the album cover.


But when I pipe the stream to front-end or even into a file, the song is saved properly into a file but without the album cover.



Here is my code



Back-end (NodeJS)



let video = ytdl(`http://youtube.com/watch?v=${videoId}`, {
 filter: (format) => format.container === 'mp4' && format.audioEncoding,
 quality: 'lowest'
});

let stream = new FFmpeg()
 .input(video)
 .addInput(`https://i.ytimg.com/vi/${videoId}/default.jpg`)
 .outputOptions([
 '-map 0:1',
 '-map 1:0',
 '-c copy',
 '-c:a libmp3lame',
 '-id3v2_version 3',
 '-metadata:s:v title="Album cover"',
 '-metadata:s:v comment="Cover (front)"'
 ])
 .format('mp3');




And then piping it to my front-end.



stream.pipe(res);
stream
 .on('end', () => {
 console.log('******* Stream end *******');
 res.end.bind(res);
 })
 .on('error', (err) => {
 console.log('ERR', err);
 res.status(500).end.bind(res);
 });




Front-end (React)



axios.get(url)
 .then(res => {
 axios(`${url}/download`, {
 method: 'GET',
 responseType: 'blob'
 })
 .then(stream => {
 const file = new Blob(
 [stream.data],
 { type: 'audio/mpeg' });
 //Build a URL from the file
 const fileURL = URL.createObjectURL(file);
 })
 .catch(err => {
 console.log('ERROR', err);
 });
 })
 .catch(err => {
 console.log('ERROR', err);
 });