Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (111)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (7223)

  • outOfMemoryError from javacv

    14 février 2018, par Maharjun M

    We are using javacv library for creating thumbnails out of videos. We are able to create thumbnails. But when we upload more videos (20 to 30 of 10MB to 40MB) the application is throwing outOfMemoryError.

    We are using 1.3.1 version of javacv.
    Here is the pom.xml file.

       <dependency>
           <groupid>org.bytedeco</groupid>
           <artifactid>javacv</artifactid>
           <version>1.3.1</version>
       </dependency>

    Here is the code

    public BufferedImage generateThumbnail(File outputVideoFile) throws IOException {
         BufferedImage bufferedImage = null;
       try {
           FFmpegFrameGrabber frameGrabber = new FFmpegFrameGrabber(outputVideoFile);
           frameGrabber.start();
           Frame grabKeyFrame = frameGrabber.grabKeyFrame();
           Java2DFrameConverter java2DFrameConverter = new Java2DFrameConverter();
           bufferedImage = java2DFrameConverter.convert(grabKeyFrame);
           frameGrabber.stop();
       } catch (Exception e) {
           throw new RuntimeException(e);
       }
       return bufferedImage;
    }

    Here is the error

    java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes = 3G > maxPhysicalBytes = 3G
    org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:562)
    org.bytedeco.javacpp.Pointer.init(Pointer.java:121)
    org.bytedeco.javacpp.avcodec$AVPacket.allocate(Native Method)
    org.bytedeco.javacpp.avcodec$AVPacket.<init>(avcodec.java:1696)
    org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:471)
    org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:462)
    org.bahmni.module.bahmnimsf.extension.PatientDocumentThumbnailGenerator.generateThumbnail(PatientDocumentThumbnailGenerator.java:40)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
    </init>

    I tried to upgrade the version to 1.4 though it’s not working.
    Somebody told me to use System.gc() that also not working.

    Can someone suggest the solution ? thanks in advance.

  • ffmpeg fluent live streaming to youtube not working

    18 octobre 2020, par Ricky

    I am learning how to using ffmpeg fluent and I am having trouble getting it to stream live to Youtube

    &#xA;&#xA;

    here is the command I have tried :

    &#xA;&#xA;

    let streamYT = (YTrtmpKey) => {&#xA;  var proc3 = new ffmpeg({ source: inputURL, timeout: 0 })&#xA;    .addOption(&#x27;-vcodec&#x27;, &#x27;libx264&#x27;)&#xA;    .addOption(&#x27;-acodec&#x27;, &#x27;aac&#x27;)&#xA;    .addOption(&#x27;-crf&#x27;, 26)&#xA;    .addOption(&#x27;-aspect&#x27;, &#x27;640:360&#x27;)&#xA;    .withSize(&#x27;640x360&#x27;)&#xA;    .on(&#x27;start&#x27;, function(commandLine) {&#xA;    console.log(&#x27;Query : &#x27; &#x2B; commandLine);&#xA;    })&#xA;    .on(&#x27;error&#x27;, function(err) {&#xA;    console.log(&#x27;Error: &#x27; &#x2B; err.message);&#xA;    })&#xA;    .output(&#x27;rtmp://a.rtmp.youtube.com/live2/&#x27; &#x2B; YTrtmpKey, function(stdout, stderr) {&#xA;    console.log(&#x27;Convert complete&#x27; &#x2B;stdout);&#xA;  });&#xA;  }&#xA;

    &#xA;&#xA;

    this doesn't throw any errors but also doesn't do anything

    &#xA;

  • FFMPEG Doesn't Finish Compressing [duplicate]

    11 février 2018, par MBJH

    This question already has an answer here :

    I have this code which executes a ffmpeg command to compress a video file to .mp4

    Process ffmpeg=Runtime.getRuntime().exec(cmdLine, null, cd);

    And the ffmpeg command works just fine & everything compresses. But I need to trigger some code once it is finished. I tried this :

    try {
       ffmpeg.waitFor();
    } catch(InterruptedException ex) {
       ex.printStackTrace();
    } finally {
       new Update_Delete(con).compressed(Integer.parseInt(path.substring(path.lastIndexOf("\\")+5, path.lastIndexOf("\\")+6)));
       System.gc();
       new File(path).delete();  
    }

    And this :

    while (ffmpeg.isAlive()) {

    }
    new Update_Delete(con).compressed(Integer.parseInt(path.substring(path.lastIndexOf("\\")+5, path.lastIndexOf("\\")+6)));
    System.gc();
    new File(path).delete();

    But the file does not finish compressing. I waited a whole 20 minutes but the 54 second file did not compress. It also does not throw an InterruptedException. Please leave me the code I can use to do this. Thanks