Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (99)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (10134)

  • Looking for Javacpp FFMPEG CustomIO Example

    26 février 2017, par user1902291

    I am trying to get Custom IO working with JavaCPP FFMPEG. Has anyone succeeded at this ? Can you post your code ?

    Here is mine (Scala), which does not work. It compiles and runs, but does not seem to call my Read and Seek methods

    val readPtr = new Pointer()
    val seekPtr = new Pointer()
    val userDataPtr = new Pointer()
    val read = new Read_packet_Pointer_BytePointer_int(readPtr) {
     override def call(userDataPtr: Pointer, @Cast(Array("uint8_t*")) buf: BytePointer, buf_size: Int): Int = {
       super.call(userDataPtr, buf, buf_size)
     }
    }
    val seek = new Seek_Pointer_long_int(seekPtr) {
     @Cast(Array("int64_t")) override def call(userDataPtr: Pointer, @Cast(Array("int64_t")) offset: Long, whence: Int): Long = {
       super.call(userDataPtr, offset, whence)
     }
    }

    val bufferSize = 1024 * 1024
    val readBuffer = new BytePointer(bufferSize)

    val avioContext = avformat.avio_alloc_context(
     readBuffer,   // internal buffer
     bufferSize,   // and its size
     0,            // write flag (1=true,0=false)
     userDataPtr,  // user data, will be passed to our callback functions
     read,
     null,         // no writing
     seek
    )

    formatContext.pb(avioContext)
    formatContext.flags(formatContext.flags | avformat.AVFormatContext.AVFMT_FLAG_CUSTOM_IO)
    formatContext.iformat(avformat.av_find_input_format("mp4"))

    avformat.avformat_open_input(formatContext, null.asInstanceOf[String], null, null)
  • Use ffmpeg in android for playing video

    14 février 2017, par devxcon

    I am trying use ffmpeg in android. Here is the code so far. I took reference from this project. It just lets me convert video file. But I want to play a video file using ffmpeg. Is it possible ? If yes then how we can do that ?

       package com.ffmpeg;

    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    import android.widget.ImageView;

    import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;
    import com.github.hiteshsondhi88.libffmpeg.FFmpeg;
    import com.github.hiteshsondhi88.libffmpeg.LoadBinaryResponseHandler;
    import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegCommandAlreadyRunningException;
    import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegNotSupportedException;

    import org.apache.commons.io.FileUtils;

    import java.io.File;
    import java.io.IOException;

    public class MainActivity extends AppCompatActivity {


       Boolean loadedFlag = false;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);
           if (!loadedFlag) {
               FFmpegInitLoader();
           }
           decodeVideo();
       }

       public void FFmpegInitLoader() {
           FFmpeg ffmpeg = FFmpeg.getInstance(this);
           try {
               ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
                   @Override
                   public void onStart() {
                   }

                   @Override
                   public void onFailure() {
                   }

                   @Override
                   public void onSuccess() {
                       System.out.println("Successfully loaded FFmpeg!!!");
                       loadedFlag = true;
                   }

                   @Override
                   public void onFinish() {
                   }
               });
           } catch (FFmpegNotSupportedException e) {
               System.out.println("Whatever....this thing is not supported :::::::::::::::::::: ");
           }
       }

       public void decodeVideo() {
           FFmpeg ffmpeg = FFmpeg.getInstance(this);
           try {
               ffmpeg.execute(new String[]{"-y", "-i", "/storage/sdcard0/AVSEQ02.mp4", "-c:v", "libx264", "/storage/sdcard0/conv.mp4"}, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onStart() {
                       System.out.println("FFmpeg started for decoding");
                   }

                   @Override
                   public void onProgress(String message) {
                       System.out.println("progress message:::: " + message);
                   }

                   @Override
                   public void onFailure(String message) {
                       System.out.println("failure message:::: " + message);
                   }

                   @Override
                   public void onSuccess(String message) {
                       System.out.println("success message:::: " + message);
                   }

                   @Override
                   public void onFinish() {
                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               System.out.println("already running::::::");
           }
       }
    }
  • playing video in android using javacv ffmpeg

    20 février 2017, par d91

    I’m trying to play a video stored in sd card using javacv. Following is my code

    public class MainActivity extends AppCompatActivity {

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);
           playthevideo();
       }

       protected void playthevideo() {

          String imageInSD = "/storage/080A-0063/dama/" + "test3.mp4";

          FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(imageInSD);

          AndroidFrameConverter converterToBitmap = new AndroidFrameConverter();

          OpenCVFrameConverter.ToIplImage converterToipi = new OpenCVFrameConverter.ToIplImage();

              try {
                  Log.d("Tag", "try");
                  grabber.start();
                  Log.d("Tag", "started");

                  int i = 0;
                  IplImage grabbedImage = null;

                  ImageView mimg = (ImageView) findViewById(R.id.a);

                  grabber.setFrameRate(grabber.getFrameRate());
                  ArrayList<bitmap> bitmapArray = new ArrayList<bitmap>();
                  while (((grabbedImage = converterToipi.convert(grabber.grabImage())) != null)) {

                      Log.d("Tag", String.valueOf(i));

                      int width = grabbedImage.width();

                      int height = grabbedImage.height();

                      if (grabbedImage == null) {
                          Log.d("Tag", "error");
                      }

                      IplImage container = IplImage.create(width, height, IPL_DEPTH_8U, 4);

                      cvCvtColor(grabbedImage, container, CV_BGR2RGBA);

                      Bitmap bitmapnew = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);

                      bitmapnew.copyPixelsFromBuffer(container.getByteBuffer());

                      if (bitmapnew == null) {
                          Log.d("Tag", "bit error");
                      }

                      mimg.setImageBitmap(bitmapnew);

                      mimg.requestFocus();

                      i++;
                  }

                  Log.d("Tag", "go");

              }
              catch(Exception e) {

             }
        }
    }
    </bitmap></bitmap>

    just ignore the tags because those are only for my testing purposes..
    When I run this code the main activity layout is still loading while android monitor shows the value of "i" (which is current frame number) and suddenly after frame number 3671 code exits the while loop and the imageview shows a frame which is not the end frame of that video(it somewhere around staring of the video).
    I was unable to find a way to show the grabbed frames from ffmpegframegrabber so i decided to show the image in imageview in this way. Can anybody tell me why I’m getting this error or another error non path to play and show the video in android activity ?
    BTW javacv 1.3.1 is imported correctly into my android dev environment. Thanks.