Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (103)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (11088)

  • Anomalie #3227 : Bug date de publication

    13 juin 2014

    Je confirme un bug sur la date. En base, 00XX-12-12 12:12 est enregistré 90XX-12-12 12:12

    En php 5.2.6 (spip 3.0.16) : la date est indiquée 1er janvier 1970 dans le privé et le public. L’article est classé comme le plus récent et il est visible dans le privé et le public mais là le bouton Admin "Prévisualiser" s’affiche.

    En php 5.4.4 (spip 3.0.16 et spip 3.1-dev) : la date indiquée est XX dans le privé et l’article est mis en post-publication. Dans le public, en mode préview, la date est OK mais l’article n’est (logiquement) pas publié.

  • Changing Video play back is really very slow process using FFMPEG android java pre compiled library

    16 juin 2016, par Amna Mirza

    I am processing video in android using FFMPEG android java library to change play back of speed. for 6 sec video to make it play back slow by 0.5 setpts , its taking more than 1 min.
    Here is my code

    public class TestFFMpegActivity {
           private static String cmd,
           private static FFmpeg ffmpeg;
           private static Context mContext;


           public static String getInternalDirectoryPath() {
               return Environment.getExternalStorageDirectory().getAbsolutePath();
           }

           public static void initiateFFmpeg(Context context, String path) {
               mContext = context;
               ffmpeg = FFmpeg.getInstance(context);  
               VideoIn = getInternalDirectoryPath() + "/Download/input.mp4";
               VideoOut = getInternalDirectoryPath() + "/Download/output.mp4";
               cmd = "-i "+VideoIn+" -vf setpts=2*PTS -strict -2 "+VideoOut;
               try {
                   ffmpeg.loadBinary(new LoadBinaryResponseHandler() {

                       @Override
                       public void onStart() {
                       }

                       @Override
                       public void onFailure() {
                       }

                       @Override
                       public void onSuccess() {
                       }

                       @Override
                       public void onFinish() {
                           processVideo();
                       }
                   });
               } catch (FFmpegNotSupportedException e) {
                   // Handle if FFmpeg is not supported by device
               }
           }
           private static void processVideo(){
           try {
               ffmpeg.execute(cmd ,
                       new ExecuteBinaryResponseHandler() {

                           @Override
                           public void onStart() {
                               //for logcat
                               Log.w(null,"processing started");
                           }

                           @Override
                   public void onProgress(String message) {
                       //for logcat
                       Log.w(null, "onProgress");
                   }

                   @Override
                   public void onFailure(String message) {
                       Log.w(null, message.toString());
                   }

                   @Override
                   public void onSuccess(String message) {
                       Log.w(null, message.toString());
                   }

                   @Override
                   public void onFinish() {

                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               Toast.makeText(mContext, "Video processing failed due to exception", Toast.LENGTH_LONG).show();

               // Handle if FFmpeg is already running
               e.printStackTrace();
               Log.w(null, e.toString());
           }
       }
    }

    This is the gradle build path for using above library

     compile 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5'
  • Is there a way to inherit ffmpeg_movie class in PHP ?

    27 juin 2012, par Danylo Mysak

    When I run the following code I get B as expected :

    class A {
       public function __construct($file){}
    }

    class B extends A {
       public function __construct() {
           parent::__construct('test.flv');
       }
    }

    $b = new B();
    print get_class($b);

    However, consider a slightly modified version of this code (here ffmpeg_movie class is a part of http://ffmpeg-php.sourceforge.net library) :

    class B extends ffmpeg_movie {
       public function __construct() {
           parent::__construct('test.flv');
       }
    }

    $b = new B();
    print get_class($b);

    It returns ffmpeg_movie instead of B. Furthermore, it turns out that methods defined in B class aren’t accessible when using $b object :

    class B extends ffmpeg_movie {
       public function __construct() {
           parent::__construct('test.flv');
       }

       public function test() {
           print 'ok';
       }
    }

    $b = new B();
    $b->test();

    Fatal error: Call to undefined method ffmpeg_movie::test() in .../test.php on line 13

    What exactly is going on here and is there a workaround ?