Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (12812)

  • how use pipe instead of save method in fluent-ffmpeg ?

    27 juin 2019, par Mohsen Rahnamaei

    I gonna use fluent ffmpeg to write something on video
    I use this cod

    var proc = ffmpeg(req.filePath). videoFilters(
     {
       filter: 'drawtext',
       options: {
         text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
         fontsize: 36,
         fontcolor: 'white',
         x: '(main_w/2-text_w/2)',
         y: '(text_h/2)+15',
         shadowcolor: 'black',
         shadowx: 2,
         shadowy: 2
       }}

    )
    // use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
    .on('end', function() {
     console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
     console.log('an error happened: ' + err.message);
    }).save('/home/gheidar/Desktop/ffmpeg_test/rt.ts');

    and everything is correct
    but I want to export this output to stream for the response of the request
    means that I want to use pipe() instead of save method

    something like this :

    var proc = ffmpeg(req.filePath). videoFilters(
     {
       filter: 'drawtext',
       options: {
         text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
         fontsize: 36,
         fontcolor: 'white',
         x: '(main_w/2-text_w/2)',
         y: '(text_h/2)+15',
         shadowcolor: 'black',
         shadowx: 2,
         shadowy: 2
       }}

    )
    // use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
    .on('end', function() {
     console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
     console.log('an error happened: ' + err.message);
    }).pipe(res)

    its just change in the last line
    and I get this error :

    an error happened: ffmpeg exited with code 1: pipe:1: Invalid argument

    how can export this ffmpeg command to stream response ????

  • How to save video recording(webcam) and screen recording to directly Mp4 in windows ?

    10 juillet 2019, par SaddamBinSyed

    I have an applicaiton which running as a windows service which is responsible for Recording the video/audio and screen capture as well.

    now I am using DirectX lib and Aforge dll to save recorded file to AVI format which is not supported by HTML 5 so I am then converting the same to mp4 using NVideoConverter dll.

    now I am facing high CPU utilization (30% -recording service) FFmpeg (30% conversion task).

    So I wanting a solution/method to directly record as an MP4 format to get rid of conversion part as well as CPU utilization.

    I couldn’t use FFmpeg directly to the record since when user logoff/signout the current recording will get corrupted.

    So How can I record as an Mp4 in windows 7 and 10 ?

    also, I came across that win10 default camera application is saving the recording directly as Mp4 file which is playing well in both IE and chrome.

    so it means there is a way in windows 10.

    If anyone implemented/knows about the same please advise me.

    help highly appreciated.

    thanks.

  • save row ffmepg data packets as a video

    7 août 2019, par MattéoLuci

    I have modified the muxing.c ffmpeg example program to be able to save a video from the PC or on an RTSP stream, and it works quite good.
    I would like to make the video saving as fast and efficient as possible by saving directly the packets without changing them into AVFrames (I don’t need to print them).

    I tried to save the AVPacket coming from av_read_frame(InFmtCtx, &packet) with av_write_frame(OutFmtCtx, &packet).

    AVPacket packet;
    static int count = 0;
    while (av_read_frame(InFmtCtx, &packet)>=0) {
      if(packet.stream_index == videoStream) {

          packet.dts = count;
          packet.pts = count++;

          av_packet_rescale_ts(&packet, ost->enc->time_base,
                                            ost->st->time_base);
          packet.stream_index = ost->st->index;
          if (av_write_frame(OutFmtCtx, &packet) < 0) {
             fprintf(stderr, "Error writing video frame: \n");
             exit(1);
          }
          ost->enc->frame_number++;
      }
    }

    The program runs correctly and the video file has the right size and the right duration.
    When I run it with VLC or ffmpeg it shows no error message, the time runs correctly, but no image is printed