
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (69)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (7839)
-
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);
 });



-
Change Video File Thumbnail/Poster/Image/Cover Art ffmpeg in CMD [on hold]
15 décembre 2018, par SebachtianI want to change my video file’s cover art(image1) to (image2) using ffmpeg in cmd with thumbnail/poster/image i choose. Something like this :
Here i use ffmpeg and use it on cmd, but the cover art didnt change to the image file instead to default.
ffmpeg -i D:\1.mkv -i D:\f1.jpg -c:a copy -c:v copy -map 0 -map 1:0 D:\2.mkv
What did i do wrong ?
-
How to add cover art to MP4 ?
27 décembre 2018, par CeetchI’m trying to find an effective way to update the metadata for my MP4 files that I plan to put on a DLNA server. First thing, I want to have the video files have a cover art.
I’m specifically using
640x360
JPG files to be the cover art.
I might also want to add some other tags, like media type or update the Title. Please let me know what can be done.If code suggestions are available, please know I have the file name details in a variable
%file%
to handle things. The JPG has the same name as the source MP4 file, so it’s easy enough to get the file type and remove the extension, which is what I’ve done so far.My goal is to be able to simply drop the MP4 file on the following batch file and know its filename and full path, the JPG file, and attach it to the orgininal MP4 file. Apparently
ffmpeg.exe
won’t write to the file it pulled from, so I have it go to a temp file and then use MOVE to replace the old file with the fixed file.@ECHO OFF
set arg=%1
set file=%arg:~1,-5%
ffmpeg -i "%file%.mp4" -i "%file%.jpg" -acodec copy -vcodec copy -map 0 -map 1:0 "%file%WIP.mp4"
move /Y "%file%WIP.mp4" "%file".mp4"This code did not seem to work. It doesn’t show up in Windows as the cover art, so I’d say it failed.