Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (100)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (11333)

  • How to maximize ffmpeg crop and overlay thousand block in same time ?

    22 juin 2022, par yuno saga

    I try to encrypt a frame of video to random of 16x16 block. so the result will be like artifact video. but exactly it can be decode back. only the creation that know the decode algorithm. but my problem is ffmpeg encode so slow. 3 minutes video, 854x480 (480p) https://www.youtube.com/watch?v=dyRsYk0LyA8. this example result frame that have been filter https://i.ibb.co/0nvLzkK/output-9.jpg. each frame have 1589 block. how to speed up this things ? 3 minutes only 24 frame done. the vido have 5000 thousand frame, so for 3 minutes video it takes 10 hours. i dont know why ffmpeg only take my cpu usage 25%.

    


    const { spawn } = require('child_process');
const fs = require('fs');

function shuffle(array) {
    let currentIndex = array.length,  randomIndex;
  
    // While there remain elements to shuffle.
    while (currentIndex != 0) {
  
      // Pick a remaining element.
      randomIndex = Math.floor(Math.random() * currentIndex);
      currentIndex--;
  
      // And swap it with the current element.
      [array[currentIndex], array[randomIndex]] = [
        array[randomIndex], array[currentIndex]];
    }
  
    return array;
  }

function filter(width, height) {
    const sizeBlock = 16;
    let filterCommands = '';
    let totalBlock = 0;
    const widthLengthBlock = Math.floor(width / sizeBlock);
    const heightLengthBlock = Math.floor(height / sizeBlock);
    let info = [];

    for (let i=0; i < widthLengthBlock; i++) {
        for (let j=0; j < heightLengthBlock; j++) {
            const xPos = i*sizeBlock;
            const yPos = j*sizeBlock;
            filterCommands += `[0]crop=${sizeBlock}:${sizeBlock}:${(xPos)}:${(yPos)}[c${totalBlock}];`;

            info.push({
                id: totalBlock,
                x: xPos,
                y: yPos
            });

            totalBlock += 1;
        }   
    }

    info = shuffle(info);

    for (let i=0; i < info.length; i++) {
        if (i == 0) filterCommands += '[0]';
        if (i != 0) filterCommands += `[o${i}]`;

        filterCommands += `[c${i}]overlay=x=${info[i].x}:y=${info[i].y}`;

        if (i != (info.length - 1)) filterCommands += `[o${i+1}];`;     
    }

    return filterCommands;
}

const query = filter(854, 480);

fs.writeFileSync('filter.txt', query);

const task = spawn('ffmpeg', [
    '-i',
    'C:\\Software Development\\ffmpeg\\blackpink.mp4',
    '-filter_complex_script',
    'C:\\Software Development\\project\\filter.txt',
    '-c:v',
    'libx264',
    '-preset',
    'ultrafast',
    '-pix_fmt',
    'yuv420p',
    '-c:a',
    'libopus',
    '-progress',
    '-',
    'output.mp4',
    '-y'
], {
    cwd: 'C:\\Software Development\\ffmpeg'
});

task.stdout.on('data', data => { 
    console.log(data.toString())
})


    


  • Nodebots Day Sydney 2014 (take 2)

    25 juillet 2014, par silvia

    Nodebots Day Sydney 2014 (take 2)

    Category : Array
    Uploaded by : Silvia Pfeiffer
    Hosted : youtube

    The post Nodebots Day Sydney 2014 (take 2) first appeared on ginger’s thoughts.

  • ffmpeg audio is stuttering when converting from h264 to mpeg2

    9 février 2019, par user11038211

    I want to convert from h264 stream source (streamlink) to mpeg2 video and send it to a DVB-T modulator (Hides UT100C). So far, I have managed to play the video smoothly, but audio is jerky. It sounds like parts are missing. I think that some parameters are not set perfectly :

    $streamlink -O https://zattoo.com/watch/orf-2 best | ffmpeg -re -i pipe:0 -vcodec mpeg2video -s 720x576 -r 30 -b:v 10M -b:a 64k -acodec mp2 -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 -mpegts_service_id 1 -mpegts_pmt_start_pid 1000 -mpegts_start_pid 1001 -metadata service_provider="HOME" -metadata service_name="IPTV" -muxrate 10M -f mpegts -y tspipe | sudo ./tsrfsend tspipe 0 578000 8000 4 1/2 1/4 8 0 0

    [cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/orf-2
    [cli][info] Available streams: 600k_alt (worst), 600k, 900k, 1500k (best)
    [cli][info] Opening stream: 1500k (hls)
    Input #0, mpegts, from 'pipe:0':
     Duration: N/A, start: 45236.000000, bitrate: N/A
     Program 1
       Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 128 kb/s

    Open /dev/usb-it950x0 ok
    g_ITEAPI_TxDeviceInit ok
    1 Devices
    g_ITEAPI_GetDrvInfo ok
    DriverInfo.DriverVerion  = v16.11.10.1
    DriverInfo.APIVerion     = 1.3.20160929.0
    DriverInfo.FWVerionLink  = 255.39.2.0
    DriverInfo.FWVerionOFDM  = 255.9.11.0
    DriverInfo.Company       = ITEtech
    DriverInfo.SupportHWInfo = Eagle DVBT
    DriverInfo.ProductID     = 0x9507
    Frequency = 578000 KHz
    Bandwidth = 8000 MHz
    Constellation: QPSK
    Code Rate: 1/2
    Interval: 1/4
    Transmission Mode: 8K
    Output #0, mpegts, to 'tspipe':
     Metadata:
       service_provider: HOME
       service_name    : IPTV
       encoder         : Lavf57.56.101
       Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 10000 kb/s, 30 fps, 90k tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.64.101 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/10000000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
       Metadata:
         encoder         : Lavc57.64.101 mp2
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
     Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
    Channel Capacity is 4976172 bps
    MinGain: -52, MaxGain: 5
    frame=    3 fps=0.0 q=2.0 size=      63kB time=00:00:00.38 bitrate=1337.3kbits/s

    Tsrfsend is the application that sends the generated ts stream over a named pipe to the USB modulator.

    I also tried various audio bitrates such as 64, 192, 384k but all is very similar.