
Recherche avancée
Autres articles (102)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (6663)
-
Merge commit ’5b9c817dc7577b6d44acc94d73b9c77c52cda489’
5 octobre 2014, par Michael NiedermayerMerge commit ’5b9c817dc7577b6d44acc94d73b9c77c52cda489’
* commit ’5b9c817dc7577b6d44acc94d73b9c77c52cda489’ :
x11grab : Check XFixesGetCursorImage return valueConflicts :
libavdevice/x11grab.cSee : a65c0a3fe822386be30fd3371af9f0d008b02874
The warning with adjusted text is kept from a65c0a3fe822386be30fd3371af9f0d008b02874
but drawing the cursor is not disabled in case XFixesGetCursorImage() failsMerged-by : Michael Niedermayer <michaelni@gmx.at>
-
Download billboard hot 100 (but only 50) mp3 files
4 mars 2021, par AtlasYo yo yo. I got this insane idea to get 50 of the billboard hot 100 songs, download them into mp3 files, and then put them on private online radio.


Problem is, the way I do it doesn't download each file one by one, it puts all the music together in one mp3 file. Here's my code so far (terrible, I know... I just wanna throw this together really quickly)


const { getChart } = require("billboard-top-100");
const ffmpeg = require("fluent-ffmpeg");
const { mkdir } = require("fs");
const ytdl = require("ytdl-core");
const YT = require("scrape-youtube").default;

getChart('hot-100', (err, chart) => {
 if(err) console.log(err);
 chart.songs.length = 50;
 for (var i = 0; i < chart.songs.length; i++) {
 var song = chart.songs[i];
 song.artist = song.artist.replace("Featuring", "feat.");
 var name = `${song.artist} - ${song.title}`;
 YT.search(name).then(res => {
 downloadVideo(res.videos[0].link, name).then(_ => { console.log(""); }).catch(console.log);
 }).catch(err => console.log(err));
 };
});

function downloadVideo(url, name) {
 return new Promise((resolve, reject) => {
 var stream = ytdl(url, { filter: "audioonly", quality: "highestaudio" });
 var start = Date.now();

 ffmpeg(stream)
 .audioBitrate(128)
 .save(`${__dirname}/${new Date().getWeek()}/${name}.mp3`)
 .on("end", _ => {
 console.log(`Downloaded "${name}.mp3" - Took ${(Date.now() - start) / 1000} seconds.`);
 resolve(`${name}.mp3`);
 })
 .on("error", _ => reject("something went wong"));
 });
}

Date.prototype.getWeek = function() {
 var onejan = new Date(this.getFullYear(),0,1);
 return Math.ceil((((this - onejan) / 86400000) + onejan.getDay()+1)/7);
}



-
remuxing audio and videos (screen and presenter) captured at the same time does not synchronize
22 septembre 2014, par user28163trying to merge a screencast with a video (without sound) and a sound steam which has been captured separately using ffmpeg using a bash command. All the stream-capture were started at the same time and all ffmpeg processes killed at the same time (pkill). But when I remux them together, the screencast and video does not match, and thus sound does not synchronize either.
Where did I go wrong ? Any inputs appreciated from ffmpeg experts here. Thanks in advance.
Please find the ffmpeg output as follows :
- The ffmpeg log of two videos muxing (http://pastebin.com/XwnDSf5i)
- The ffmpeg log of remuxing the sound with the side-by side video as of 1 above (cannot paste as the pastebin limit exeeded :( ).
UPDATE :
After checking the lenght of the screencast, I figured out that the screen capture (though started and stopped at the same time as video and sound using a bash script), is shorter in lenght by 1m54s than video and audio (former 34:22 vs later 36:16). The video was captured in h264 mp4 wrapper at -r 30. So is screen capture but lossless
%ffmpeg -report -f x11grab -r 30 -s 1920x1080 -i :0.0 -qscale 0 -vcodec libx264 -threads 4 screen.m4v
Could that be the reason for the delay ? Is there any way to extend the screencast against the videos ? Thanks !