Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (69)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque 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 (...)

  • Les images

    15 mai 2013

Sur d’autres sites (4133)

  • TV Screen gittery while sending Stream using FFMPEG Android

    24 septembre 2019, par Arvind

    I am getting issue while i am sending the stream to wowza using FFMPEG on RTMP
    issue is stream working good sending to wowza but issue is while sending its making android tv screen gittery probable what i found this is because its taking time on transcoding and UI thread gets hang

    let me show you my command :

    -i - -strict experimental -acodec aac -ac 1 -ar 44100 -vcodec libx264 -pix_fmt yuv420p -g 8 -vb 26k -profile:v main -preset ultrafast -r 8 -f flv -threads 0 -async 1 -vsync 1 rtmp://origin.cdn.wowza.com:1935

    and below some log :

    D/From the FFMPEG: frame=   51 fps= 13 q=40.0 size=      85kB time=00:00:06.52 bitrate= 107.0kbits/s dup=6 drop=273 speed=1.61x    
    09-24 03:27:42.094 2189-2189/com.addwatchhdmi.app D/Execute onProgress: frame=   51 fps= 13 q=40.0 size=      85kB time=00:00:06.52 bitrate= 107.0kbits/s dup=6 drop=273 speed=1.61x    
  • avcodec/v4l2_m2m : handle v4l2 end of stream event

    1er avril 2020, par Ming Qian
    avcodec/v4l2_m2m : handle v4l2 end of stream event
    

    When flushing the capture buffers, the driver may send a V4L2_EVENT_EOS
    to notify that draining is completed. Currently, v4l2_m2m does not
    subscribe to this event, which can cause some devices (i.e. imx8qm) to
    hang at the end of encoding/decoding. Support for handling the event is
    added in this commit.

    Some devices may not signal V4L2_EVENT_EOS. This is logged as a warning
    message during initialization and not treated as a fatal error.

    Signed-off-by : Ming Qian <ming.qian@nxp.com>
    Signed-off-by : Andriy Gelman <andriy.gelman@gmail.com>

    • [DH] libavcodec/v4l2_context.c
    • [DH] libavcodec/v4l2_m2m_dec.c
    • [DH] libavcodec/v4l2_m2m_enc.c
  • ffmpeg buffering stdin when spawned from node

    3 juin 2020, par devneal17

    I'm trying to use node.js to write png data to ffmpeg to create video. I've verified that the following code works :

    &#xA;&#xA;

    let ffmpeg = spawn(&#xA;  "ffmpeg",&#xA;  [&#xA;    "-y",&#xA;    "-loglevel", "info",&#xA;    "-f", "image2pipe",&#xA;    "-c:v", "png",&#xA;    "-r", `${this.fps}`,&#xA;    "-i", "-",&#xA;&#xA;    "-an",&#xA;    "-vcodec", "libx264",&#xA;    "-pix_fmt", "yuv420p",&#xA;    "output.mp4",&#xA;  ],&#xA;);&#xA;ffmpeg.stdout.on(&#x27;data&#x27;, data => {&#xA;  console.log(`ffmpeg stdout: ${data}`);&#xA;});&#xA;ffmpeg.stderr.on(&#x27;data&#x27;, data => {&#xA;  console.log(`ffmpeg stderr: ${data}`);&#xA;});&#xA;&#xA;let bufs = [];&#xA;let p = Promise.resolve();&#xA;for (let i = 0; i &lt; this.frameData.length; i&#x2B;&#x2B;) {&#xA;  p = p.then(_ => new Promise(resolve => {&#xA;    this.renderFrame(i);&#xA;    this.renderer.domElement.toBlob(blob => {&#xA;      blob.arrayBuffer().then(arr => {&#xA;        console.log(&#x27;writing...&#x27;);&#xA;        let uInt8Arr = new Uint8Array(arr);&#xA;        // ffmpeg.stdin.write(uInt8Arr);&#xA;        bufs.push(uInt8Arr);&#xA;        resolve();&#xA;      });&#xA;    });&#xA;  }));&#xA;}&#xA;p = p.then(_ => {&#xA;  for (let buf of bufs) {&#xA;    ffmpeg.stdin.write(buf);&#xA;  }&#xA;  ffmpeg.stdin.end();&#xA;});&#xA;&#xA;

    &#xA;&#xA;

    Sorry if it seems complicated, the promises are used as a workaround for the fact that toBlob() runs asynchronously but the frames must be written in order.

    &#xA;&#xA;

    That code works correctly as written, but it's needlessly inefficient because it writes the frame data to an array only to write it to ffmpeg later. However if I uncomment ffmpeg.stdin.write(uInt8Arr); and comment the loop where the array data is copied to ffmpeg, ffmpeg will simply hang at the end without generating any video. If I then perform a "large enough" action like save a file or spawn a new process, ffmpeg will generate the video correctly.

    &#xA;&#xA;

    I suspect that there's some sort of buffering issue causing this, but I don't fully understand it or know how to fix it. I've already tried sending various signals with to ffmpeg with ffmpeg.kill() and running it through stdbuf as suggested here to no avail. Is there any workaround for this ?

    &#xA;