Recherche avancée

Médias (91)

Autres articles (69)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7119)

  • How to stop recording dynamically in FFMPEG CLI Wrapper java

    14 décembre 2017, par user2237529

    https://github.com/bramp/ffmpeg-cli-wrapper/issues/13

    public class ScreenCaptureFFMPEG {

       public static void record(String outputVideo, String time) throws Exception
       {
           RunProcessFunction func = new RunProcessFunction();

           FFmpeg ffmpeg = new FFmpeg("C:\\FFMPEG\\ffmpeg.exe");
           FFmpegBuilder builder = new FFmpegBuilder()
                   .addExtraArgs("-rtbufsize", "1500M")
                   .addExtraArgs("-r", "30")
                   .setFormat("dshow")
                   .setInput("video=\"screen-capture-recorder\"")
                   .addOutput(outputVideo)
                   .setFormat("mp4")
                   .addExtraArgs("-crf", "0")
                   .setVideoCodec("libx264")
                   //.addExtraArgs("-ac", "1")
                   .addExtraArgs("-y")
           //overwrite file name

                   // .setAudioCodec("libmp3lame")
                   // .setAudioSampleRate(FFmpeg.AUDIO_SAMPLE_44100)
                   //  .setAudioBitRate(1_000_000)

                   //.addExtraArgs("-ar", "44100")
                   .addExtraArgs("-t", time)

                   //.setVideoPixelFormat("yuv420p")
                   //.setVideoResolution(426, 240)
                   //.setVideoBitRate(2_000_000)
                   //.setVideoFrameRate(30)
                   //.addExtraArgs("-deinterlace")
                   //.addExtraArgs("-preset", "medium")
                   //.addExtraArgs("-g", "30")
                   .done();
           FFmpegExecutor executor = new FFmpegExecutor(ffmpeg);

           executor.createJob(builder).run();


       }

       public static void capture(String name) throws Exception
       {
           BufferedImage image = new Robot().createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
           ImageIO.write(image, "png", new File(name));

       }

       public static void main(String[]args) throws Exception {

           capture("start.png");
           //record("TC_test.mp4", "00:00:10");
           capture("end.png");
           Thread t = new Thread(new Runnable() {
               @Override
               public void run() {
                   // Insert some method call here.
                   try {
                       record("TC_test.mp4", "00:00:10");
                   }
                   catch(Exception e)
                   {
                       System.out.println("hello");
                   }
               }
           });
           Thread.sleep(5000);

           t.interrupt();

       }
    }

    I am trying to stop the recording by killing the subprocess or if there is any other method its fine too. But I am unable to do that. I know its supported according to the github link. How do I kill a subprocess please ?

    PS : THis is the first time i post a question on stackoverflow so If I made any mistakes please excuse me and provide details on how i can improve

  • fate/vcodec : stop using the deprecated v308 codec

    14 octobre 2024, par James Almer
    fate/vcodec : stop using the deprecated v308 codec
    

    stddev and PSNR values change by the removal of format conversion and because
    of the added sws_flags. Either or will have the same effect even on their own.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] tests/fate/vcodec.mak
    • [DH] tests/ref/vsynth/vsynth1-v308
    • [DH] tests/ref/vsynth/vsynth2-v308
    • [DH] tests/ref/vsynth/vsynth3-v308
    • [DH] tests/ref/vsynth/vsynth_lena-v308
  • ffmpeg stop the process after generating thumbnail

    5 octobre 2016, par arjun

    I have installed the ffmpeg in linux server for generating the video thumb nail
    installed ffmpeg using following commands

    sudo add-apt-repository ppa:mc3man/trusty-media
    sudo apt-get update
    sudo apt-get install ffmpeg

    installed in /usr/bin/ffmpeg location

    Here i am calling ffmpeg in my java code

    thumbnail videoThumbTaker = new thumbnail("/usr/bin/ffmpeg");

    videoThumbTaker.getThumb(uploadedFileLocation,  thumbnailimagepath,originalLocation, 900, 900, 0, 0, 1);

    Thumbnail is successfully generated,the problem is after generating the thumbnail,ffmpeg process is continuously running,its not stoped.How can achive this !!