
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (80)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (10028)
-
FFMPEG.wasm Cannot Add Album Cover To MP3 File
5 juillet 2022, par Shaan Khanfor a project I'm working on I'm trying to split a video into multiple audio clips whilst adding metadata for each individual track. Whilst doing this, whilst I've added most of the metadata including title & artist, I'm unable to add an album cover via FFMPEG.wasm. Whilst my command works fine with regular FFMPEG.wasm, I'm unable to get it to work via the webassembly version.


I'm aware that my album cover is correctly being assigned via FS.readfile and that my command in theory should work, but I'm unable to figure out why it isn't working. Is this a FFMPEG.wasm limitation and if so, is there any workaround for this ?


- 

- Normal FFMPEG Command




ffmpeg -i "song.mp3" -i albumCover.jpg -map 0:0 -map 1:0 -y -codec:a libmp3lame -ac 2 -ar 48000 -ab 320k -ss 00:00:00 -t 00:00:20 -id3v2_version 3 -metadata title="SongOne" -metadata album_artist="Artist Name" -metadata album="Youtube Name" -metadata track="1" "output.mp3"



- 

- FFMPEG WASM Implementation




let commandArray = [
 "-i",
 "song.mp3",
 "-i",
 "albumCover.jpg",
 "-map",
 "0:0",
 "-map",
 "1:0",
 "-y",
 "-codec:a",
 "libmp3lame",
 "-ac",
 "2",
 "-ar",
 "48000",
 "-ab",
 "320k",
 "-ss",
 startTime.toString(),
 ];

 if (duration != "-1") {
 commandArray.push("-t", duration.toString());
 }

 commandArray.push(
 "-id3v2_version",
 "3",
 "-metadata",
 `title="${title}"`,
 "-metadata",
 `album_artist="${artist}`,
 "-metadata",
 `album="${albumInfo.name}"`,
 "-metadata",
 `track="1"`,
 `${timestamp.songName} - ${timestamp.artistName}.mp3`
 );



-
ffmpeg processes pile up until they crash
9 mars 2021, par Ultra CookieI am coding a bot which streams music using ytdl and @discordjs/opus. It uses ffmpeg for that and when I end the dispatcher the process doesn't get killed. After a while this piles up and the process list looks like this :


0 0 27864 27863 20 0 120348 14380 sock_a Sl+ pts/2 0:01 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1
0 0 27887 1 20 0 120104 13496 sock_a Sl+ pts/2 0:00 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1
0 0 27893 1 20 0 120040 13676 sock_a Sl+ pts/2 0:00 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1
0 0 27900 1 20 0 120048 13676 sock_a Sl+ pts/2 0:00 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1
0 0 27906 1 20 0 120048 13676 sock_a Sl+ pts/2 0:00 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1
0 0 27913 1 20 0 103740 13792 sock_a S+ pts/2 0:00 /root/bot/node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -f s16le -ar 48000 -ac 2 pipe:1




This is just a preview the actual list is much longer... I don't know how I can prevent this.


Code that might be helpful :


Play:
connection.play(ytdl(song.url, { quality: "highestaudio", highWaterMark: 1024 * 1024 * 30, type: "opus" })).on("finish", () => {play next song});

Skip:
connection.dispatcher.end();



-
Mp3 file not showing in any media player after creating through ffmpeg
4 mai 2019, par Aashit ShahMp3 file not showing in any application after the mp3 file is saved . After 15 odd minutes it is automatically shown . if i manually change the name from file manager it will be instantly shown . How to solve this problem .
Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
String[] projection = {
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.DATA,
MediaStore.Audio.Media.DISPLAY_NAME,
MediaStore.Audio.Media.DURATION,
MediaStore.Audio.Media.ALBUM_ID
};
String sortOrder = MediaStore.Audio.Media.DISPLAY_NAME
Cursor c = getContentResolver().query(uri,projection,null,null,sortOrder);
if(c.moveToFirst())
{
do {
String title = c.getString(c.getColumnIndex(MediaStore.Audio.Media.TITLE));
String data = c.getString(c.getColumnIndex(MediaStore.Audio.Media.DATA));
String name = c.getString(c.getColumnIndex(MediaStore.Audio.Media.DISPLAY_NAME));
String duration = c.getString(c.getColumnIndex(MediaStore.Audio.Media.DURATION));
String albumid= c.getString(c.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID));
Songs song = new Songs(title,data,name,duration,albumid);
songs.add(song);
title1.add(name);
}while (c.moveToNext());
}Output file path :
Environment.getExternalStorageDirectory()+ "/Trim"+".mp3";
This is my command :
"-y","-ss", start,"-i", input_path,"-t", end,"-metadata","title=Trim","-acodec", "copy","-preset", "ultrafast",output_path