
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (33)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
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 -
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 (...)
Sur d’autres sites (3589)
-
Video out of LinkedList sequence
14 janvier 2020, par Marks GniteckisI just started working on a side project to learn JavaFX 13 and the idea is to play a sequence of frames like a video without saving the actual video or frames in temp folders. I’d like to buffer images and output them onto ImageView at 30fps. Here is what I’ve got so far :
The method that buffers images -
@FXML void takeVideo(ActionEvent event)
throws InterruptedException {
model.purgeBufferedVideo();
Timer timer = new Timer();
long startedAt = System.currentTimeMillis();
TimerTask task = new TimerTask() {
@Override public void run() {
while (System.currentTimeMillis() < startedAt + (1000 * Long.parseLong(s.getText()))) {
generateVideo(new Rectangle(Toolkit.getDefaultToolkit()
.getScreenSize()));
System.out.println(System.currentTimeMillis() != startedAt + (1000 * Long
.parseLong(s.getText())));
}
cancel();
System.out.println("Video buffered");
}
};
timer.schedule(task, 0L);
}Method to output images onto ImageView -
@FXML void playVideo(ActionEvent event) {
model.getBufferedVideo().forEach(i -> {
try {
preview.setImage(i);
Thread.sleep((60000 / Long.parseLong(s.getText()))/30);
preview.setImage(i);
} catch (InterruptedException e) {
e.printStackTrace();
}
});
}List population is working but only last image in the list is displayed in the ImageView and I can’t really get my head around why... Thanks in advance to everyone !
-
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"));
 });
};



-
Convert chapters from xml to ffmetadata ?
3 février 2021, par Soul SparkI wanted to add chapters to my encoded mkvs, but I get
*.xml
files when I download it from online. So is there any way to convert it toFFMETADATAFILE
so that when I encode it using ffmpeg I can add chapters to my mkv ??


Sample Input



<?xml version="1.0"?>



-<chapters>


-<editionentry>

<editionflagdefault>1</editionflagdefault>

<editionflaghidden>0</editionflaghidden>


-<chapteratom>

<chapteruid>95534594</chapteruid>

<chaptertimestart>00:00:00.000000000</chaptertimestart>

<chaptertimeend>00:01:30.000000000</chaptertimeend>

<chapterflaghidden>0</chapterflaghidden>

<chapterflagenabled>1</chapterflagenabled>


-<chapterdisplay>

<chapterstring>Chapter 1</chapterstring>

<chapterlanguage>und</chapterlanguage>

</chapterdisplay>

</chapteratom>



</editionentry>

</chapters>




Sample Output



;FFMETADATA1
title=bike\\shed
;this is a comment
artist=FFmpeg troll team

[CHAPTER]
TIMEBASE=1/1000
START=0
#chapter ends at 0:01:00
END=60000
title=chapter \#1
[STREAM]
title=multi\
line




By the way I use ffmpeg in cli mode only.