Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10391)

  • FFmpeg Easing function doesn't behave as expected [closed]

    11 juin 2024, par Alejandro Sanchez

    What is the simplest way to add an easing function to an animation ? I'm currently trying to animate a zoom value, but for some reason, it goes completely over the final zoom value i constrained it to (my easing function should output values between 0 and 1) : This is the part of a bigger expression which i just cannot understand :

    


    if(gt(in_time\,3.7999999046325685)\,3 - ((0.3) * (((exp((5*(it-3.80)) - 1))/(exp(5*0.80)-1))))\,3)

    


    Note : (exp((5*(it-3.80)) - 1))/(exp(50.80)-1))) are values between 0 and 1 for the animation duration of 0.8 seconds, however the resulting zoom goes way beyond 3-0.31 = 2.7, it just goes crazy in the end.

    


    I tried all kinds of easing functions, all of them behave similarly

    


  • Stop JavaCV playback warning

    18 janvier 2018, par Chaoslab

    Problem :
    Receiving a stream of command line warnings as video plays - deprecated pixel format used, make sure you did set range correctly

    Question :
    How can I stop the warnings from happening or being displayed ?

    Update - Fixed :
    The solution was too override the logging callback and don’t do anything in the logging call method. FFmpeg logging is then disabled.

    The reason for the message from FFmpeg is because it is grabbing frames from an old video format so is unavoidable if playing older videos.

    NOTE :
    This solution completely disables all output from FFmpeg. Even FFmpeg errors are muted.

    Code below (just frame grabbing, not timed playback).

    package test.javacv;

    import java.io.File;

    import org.bytedeco.javacv.CanvasFrame;
    import org.bytedeco.javacv.FFmpegFrameGrabber;
    import org.bytedeco.javacv.Frame;

    import org.bytedeco.javacv.CustomLogCallback;

    public class TestPlay implements Runnable {
    private static String      video_loc = null;
    private static CanvasFrame canvas    = new CanvasFrame("Test JavaCV player");

    public static void main(String[] args) { new Thread(new TestPlay(args[0])).start(); }

    static {
     CustomLogCallback.set();
    }

    public void run() { play_video(video_loc); }

    public TestPlay(String loc) {
     video_loc = loc;
     canvas.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
    }

    public static final void play_video(String vid_loc) {
     try {
      File               file      = new File(vid_loc);
      FFmpegFrameGrabber ffmpeg_fg = new FFmpegFrameGrabber(file.getAbsolutePath());
      Frame              frm;
      ffmpeg_fg.setAudioChannels(0);
      ffmpeg_fg.start();
      for(;;)
       if((frm = ffmpeg_fg.grab()) != null) canvas.showImage(frm);
       else {
        ffmpeg_fg.setTimestamp(0);
        break;
       }
      ffmpeg_fg.stop();
     } catch(Exception ex) { ex("play_video vid_loc:" + vid_loc, ex); }
    }

    public static final void ex(String txt, Exception ex)   {
     System.out.println("EXCEPTION: " + txt + " stack..."); ex.printStackTrace(System.out); }
    }

    Logging class

    // custom logger to override all logging output
    package org.bytedeco.javacv;

    import org.bytedeco.javacpp.BytePointer;

    import static org.bytedeco.javacpp.avutil.LogCallback;
    import static org.bytedeco.javacpp.avutil.setLogCallback;

    public class CustomLogCallback extends LogCallback {

    static final CustomLogCallback instance = new CustomLogCallback();

    public static CustomLogCallback getInstance() { return instance; }

    public static void set() { setLogCallback(getInstance()); }

    @Override
    public void call(int level, BytePointer msg) {}
    }
  • Ffmpeg - Concat two video file - Defining absolute path of video file not working

    9 juillet 2014, par Ghanshyam Dobariya

    I am using Ffmpeg to concate three mp4 files.

    I am following this article
    https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files

    Check topic Concat protocol

    I have 3 .ts files, now running following command that merges all 3 .ts files properly

    ffmpeg -i "concat:video1.ts|video2.ts|video3.ts" -c copy -bsf:a aac_adtstoasc output.mp4

    Now same command I want to run from php code, so I am giving absolute path of each file, and the command is as below.

    /home/pc-16/bin/ffmpeg -i "concat:|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video1.ts'|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video2.ts'|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video3.ts'" -c copy -bsf:a aac_adtstoasc "/var/temp/rt-web/web/video/iRec/HOKPINzHFS/final.mp4"

    This gives following error

    concat:|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video1.ts'|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video2.ts'|'/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video3.ts': No such file or directory

    Have also tried the same command by removing single quotes from file names

    /home/pc-16/bin/ffmpeg -i "concat:|/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video1.ts|/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video2.ts|/var/temp/rt-web/web/video/iRec/HOKPINzHFS/video3.ts" -c copy -bsf:a aac_adtstoasc "/var/temp/rt-web/web/video/iRec/HOKPINzHFS/final.mp4"

    but got the same error message.

    Can anybody tell me how to specify absolute file names in command.