
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (67)
-
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 (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...) -
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 (...)
Sur d’autres sites (5543)
-
Convert MP4 File to M3U8(only m3u8 file No ts file) [closed]
28 février 2024, par Ayan AnsariI'm a beginner working on a content streaming app (like Netflix) where i want to add feature of quality control of the content (like switch to 480p, 720p, 1080p etc). I'm using Exoplayer for video player and the app is almost ready. But the problem i've been facing is that all the files are either mp4, mkv etc file but i need m3u8 file. So I tried converting video using FFmpeg tools which worked but it gives me LOTS OF TS file which i need to upload along with the m3u8 file. After doing some more research i was able to reduce it to 1 m3u8 and 1 TS file. Is it possible to Create only 1 m3u8 file no TS file ? Here are what i've tried.


ffmpeg -i input.mp4 -c:a aac -strict -2 -c:v libx264 -preset ultrafast -crf 28 -maxrate 2M -bufsize 4M
-hls_time 6 -hls_playlist_type vod -hls_flags single_file -f hls output.m3u8



I also thought i will upload all the video in different quality manually, but as a broke 17 Y/O teenager, noobie who don't know how to use AWS or cloud Servers and also AWS or Google Cloud doesn't accept Indian Debit Card(Rupay) for free trial.
Please also suggest some where i can store these data for free i guess( i don't care about where i upload, i just need the link which i can put in my database.)
Thank You :)


-
node.js - Error : ENOENT : no such file or directory, unlink
10 août 2020, par necrofaceI have the function below to convert a
.wav
file to.mp3
. As you can see, before using theffmpeg
module to convert the audio file, I already check if the file exists or not, then upon conversion, I only keep the new file and delete the old one. But occasionally the console throws me the errorError: ENOENT: no such file or directory, unlink
, which means that Iunlink
(delete) a non-existing file. I cannot understand why, because I already have an existence check even before the conversion, so it is supposed to have existed to be unlinked.


module.exports.convertAndMoveElastic = async (calllog) => {
 let { start, sip_uri, direction, source, destination } = calllog;
 const VNtimezoneOffset = 7 + new Date().getTimezoneOffset() / 60;
 const startTime = new Date(start + VNtimezoneOffset * 3600000 - 60000);
 const date = startTime.getDate() < 10 ? `0${startTime.getDate().toString()}` : startTime.getDate().toString();
 const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
 const month = months[startTime.getMonth()];
 const year = startTime.getFullYear().toString();
 sip_uri = sip_uri || (direction === 'outgoing' ? source : destination);
 const [extension, domain_name] = sip_uri.split("@");
 return new Promise(async (resolve, reject) => {
 const links = await getLinkWithElastic(calllog);
 if (!links) { return reject(); }
 let file_id, filepath;
 for (let link of links) {
 const { callid, sipCallid, uuid, record_path } = link._source;
 if (record_path) {
 let recordPathArr = record_path.split('/');
 file_id = recordPathArr[recordPathArr.length - 1].split('.')[0];
 filepath = path.resolve(base_directory, domain_name, 'archive', year, month, date, `${file_id}.wav`);
 }
 if (!file_id || !fs.existsSync(filepath)) {
 file_id = callid;
 filepath = path.resolve(base_directory, domain_name, 'archive', year, month, date, `${file_id}.wav`);
 }
 if (!file_id || !fs.existsSync(filepath)) {
 file_id = uuid;
 filepath = path.resolve(base_directory, domain_name, 'archive', year, month, date, `${file_id}.wav`);
 }
 if (fs.existsSync(filepath)) { break; }
 }
 if (!fs.existsSync(filepath)) { return reject(); }
 ffmpeg(filepath)
 .audioCodec('libmp3lame')
 .on('error', function (error) {
 reject(error);
 })
 .on('end', function () {
 resolve({ recordUrl: `${host}/record/download/${file_id}.mp3` });
 fs.unlinkSync(filepath);
 })
 .toFormat('mp3')
 .saveToFile(path.resolve(dest_directory, file_id + ".mp3"));
 });
};



-
FFMPEG not supporting emoji text
23 décembre 2019, par walt3rwhiteI need to add text that can contain emoji icons over an image. I need to implement this thing in JavaScript. I am thinking to use FFMPEG bash commands. However, it just displays square boxes.
ffmpeg -i 1.png -vf "drawtext=text='