Recherche avancée

Médias (91)

Autres articles (11)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (2471)

  • 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 set FFmpeg to send a signal to java code when it's done with its job ?

    23 juin 2016, par Elaheh

    I have a java servlet which waits for an httprequest, when it arrives, it calls the FFmpeg to do mixing two videos. Java code needs to send the mixed video back to the requester when the FFmpeg finished its job.
    How can I set the FFmpeg to inform the java servlet when the mixed video is ready ?
    My code in current shape, starts sending the video while FFmpeg is not completely done.

    I can use thread.sleep() or similar methods, but since we need to measure the processing time for a research work, I cannot use that.

    I appreciate if you can help me on this.
    this is part of the code :

    String videoId=req.getParameter("id");        
            String ad= "/var/Videos/ads/angrybirds-adv.mp4";  
            String url="http://"+RequesterIP+"/"+videoId;
            System.out.println("url: "+url);
            String output= new SimpleDateFormat("yyyyMMddhhmm'.mp4'").format(new Date());
            String videoPath = "/var/Videos/"+output;
            List<string> cmds =  new ArrayList&lt;>();
            cmds.add("ffmpeg");
            cmds.add("-i");
            cmds.add(url);
            cmds.add("-i");
            cmds.add(ad);
            cmds.add("-filter_complex");
            cmds.add("[0:v][1:v] overlay");
            cmds.add(videoPath);
            ProcessBuilder pb = new ProcessBuilder(cmds);
            Process p = pb.start();

            /** Terminal **/
          final InputStream inStream = p.getErrorStream();
            new Thread(new Runnable() {
            public void run() {          
                    InputStreamReader reader = new InputStreamReader(inStream);
                    Scanner scan = new Scanner(reader);
                    while (scan.hasNextLine()) {
                        System.out.println(scan.nextLine());
                    }
                }
            }).start();      

    // send the mixed video to the requester
    File downloadFile = new File(videoPath);
    ...
    </string>

    More details :
    the ad video is the overlay video located in the same machine as FFmpeg, the original video is located on a public folder in the requester machine, and is accessible using this url : http://requester-IP/videoId

  • ffmpeg does not get installed on windows 32 bit

    13 octobre 2016, par Simer

    I have installed ffmpeg on windows 32 bit and I got following error when I try executing ffmpeg.exe therefore it is not installed and neither shows up in my localhost :

    the procedure entry point could not be located in the dynamic link
    library kernel32.dll

    Where as it get installed on 64 bit easily.
    I am downloading ffmpeg from -zeranoe. I have tried with static and shared builds.