Recherche avancée

Médias (91)

Autres articles (45)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7159)

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