
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (53)
-
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 -
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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (10928)
-
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"));
 });
};



-
Mac app crash : Termination Reason : Namespace CODESIGNING, Code 0x2 [closed]
29 janvier 2020, par dummyappsThe app always works fine, but it suddenly crashes this evening and report "Namespace CODESIGNING, Code 0x2", I have no idea why, the code worked for several year, it seems that certain certificate invalid.
This app use FFmpeg library to snapshot video, I did some test on it :
-
I rebuild the source code, It still crash.
-
It only crash on Mac OS 10.15, it works fine on 10.13
-
I use atos to analyse the crash report, the output of atos indicate that FFmpeg library failed, but it should not. The code works for several year, I don’t think the code has bug.
-
I submit a Technical Support to Apple developer, they also have no idea why.
System Integrity Protection : enabled
Crashed Thread : 3 Dispatch queue : com.dummyapps.videoBrowser.screenshot
Exception Type : EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes : 0x0000000000000032, 0x00000001134b5000
Exception Note : EXC_CORPSE_NOTIFYTermination Reason : Namespace CODESIGNING, Code 0x2
kernel messages :
VM Regions Near 0x1134b5000 :
CoreAnimation 00000001134ac000-00000001134b2000 [ 24K] rw-/rwx SM=PRV
— > VM_ALLOCATE 00000001134b5000-00000001134b6000 [ 4K] r-x/rwx SM=PRV
CoreAnimation 00000001134b6000-00000001134ba000 [ 16K] rw-/rwx SM=PRVThread 0: : Dispatch queue : com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff69f8625a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff69f865d0 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff327ead0b __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation 0x00007fff327e98e7 __CFRunLoopRun + 1695
4 com.apple.CoreFoundation 0x00007fff327e8bd3 CFRunLoopRunSpecific + 499
5 com.apple.HIToolbox 0x00007fff3133f65d RunCurrentEventLoopInMode + 292
6 com.apple.HIToolbox 0x00007fff3133f39d ReceiveNextEventCommon + 600
7 com.apple.HIToolbox 0x00007fff3133f127 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 com.apple.AppKit 0x00007fff2f9b0eb4 _DPSNextEvent + 990
9 com.apple.AppKit 0x00007fff2f9af690 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue :] + 1352
10 com.apple.AppKit 0x00007fff2f9a13ae -[NSApplication run] + 658
11 com.apple.AppKit 0x00007fff2f973775 NSApplicationMain + 777
12 libdyld.dylib 0x00007fff69e457fd start + 1Thread 1 :
0 libsystem_pthread.dylib 0x00007fff6a045818 start_wqthread + 0Thread 2 :
0 libsystem_pthread.dylib 0x00007fff6a045818 start_wqthread + 0Thread 3 Crashed: : Dispatch queue : com.dummyapps.videoBrowser.screenshot
0 ??? 0x00000001134b5000 0 + 4618670080
1 com.dummyapp.VideoBrowserLite 0x000000010f728510 0x10f6d9000 + 324880
-
-
lavfi : add an avgblur_vulkan filter
27 octobre 2019, par Lynne