Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (33)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk 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 2013

    Puis-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, par

    Lorsque 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 Gniteckis

    I 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 necroface

    I have the function below to convert a .wav file to .mp3. As you can see, before using the ffmpeg 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 error Error: ENOENT: no such file or directory, unlink, which means that I unlink (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 Spark

    I 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 to FFMETADATAFILE so that when I encode it using ffmpeg I can add chapters to my mkv ??

    



    Sample Input

    



    &lt;?xml version="1.0"?>&#xA;&#xA;&#xA;&#xA;-<chapters>&#xA;&#xA;&#xA;-<editionentry>&#xA;&#xA;<editionflagdefault>1</editionflagdefault>&#xA;&#xA;<editionflaghidden>0</editionflaghidden>&#xA;&#xA;&#xA;-<chapteratom>&#xA;&#xA;<chapteruid>95534594</chapteruid>&#xA;&#xA;<chaptertimestart>00:00:00.000000000</chaptertimestart>&#xA;&#xA;<chaptertimeend>00:01:30.000000000</chaptertimeend>&#xA;&#xA;<chapterflaghidden>0</chapterflaghidden>&#xA;&#xA;<chapterflagenabled>1</chapterflagenabled>&#xA;&#xA;&#xA;-<chapterdisplay>&#xA;&#xA;<chapterstring>Chapter 1</chapterstring>&#xA;&#xA;<chapterlanguage>und</chapterlanguage>&#xA;&#xA;</chapterdisplay>&#xA;&#xA;</chapteratom>&#xA;&#xA;&#xA;&#xA;</editionentry>&#xA;&#xA;</chapters>&#xA;

    &#xA;&#xA;

    Sample Output

    &#xA;&#xA;

    ;FFMETADATA1&#xA;title=bike\\shed&#xA;;this is a comment&#xA;artist=FFmpeg troll team&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0&#xA;#chapter ends at 0:01:00&#xA;END=60000&#xA;title=chapter \#1&#xA;[STREAM]&#xA;title=multi\&#xA;line&#xA;

    &#xA;&#xA;

    By the way I use ffmpeg in cli mode only.

    &#xA;