Recherche avancée

Médias (91)

Autres articles (45)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

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

Sur d’autres sites (9167)

  • ffmpeg build from source fails in docker container ?

    24 mars 2016, par John Allard

    I’m trying to make some changes to the ffmpeg source code (yes, I’m a masochist), and to start I booted an Arch Linux docker container, installed the requirements, downloaded ffmpeg source code, and tried to compile, but I’m getting some extremely odd errors.

    compile command :

    ./configure --bindidr=~/ffmpeg_build --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree

    Output :

    ./configure:unset:3338: no such has table element: mktemp
    pr: /tmp/ffconf.uQI7CeV.c: No such file or directory.
    pr: /tmp/ffconf.uQI7CeV.c: No such file or directory.
    pr: /tmp/ffconf.uQI7CeV.c: No such file or directory.
    pr: /tmp/ffconf.uQI7CeV.c: No such file or directory.
    ... (24 times)
    pr: /tmp/ffconf.uQI7CeV.c: No such file or directory.
    pr: /tmp/ffconf.r547UgWy.m: No such file or directory.
    ./configure:53378: parse error near '}'
    ==> ERROR" A failure occured in build()
       Aborting...
    The build failed.

    This doesn’t seem to be a problem with ffmpeg, more a problem with the container. If I check find /tmp -name ffconf\* I see that the files do exist and they contain

    extern int getrusage();
    int main(void){ getrusage(); }

    what in the hell is going on ? hash tabled ? mktemp not working ? files not being found ?

    edit-

    here is what is on the line numbers in the files that give the errors

    3338:configure - unset -f mktemp
    5338:configure - check_builtin gmtime_r time.g "time_t * time; strict tm*; gmtime_r(time, tm)"

    edit2 - Here’s the dockerfile (cloned from here https://hub.docker.com/r/greyltc/archlinux/ /dockerfile/)

    # Arch Linux baseline docker container
    # Generated on Sat Mar 19 14:26:28 GMT 2016 using code in this GitHub repo:
    # https://github.com/greyltc/docker-archlinux
    FROM scratch
    MAINTAINER Grey Christoforo <grey@christoforo.net>

    # copy in super minimal root filesystem archive
    ADD archlinux.tar.xz /

    # perform initial container setup tasks
    RUN setup-arch-docker-container

    # this allows the system profile to be sourced at every shell
    ENV ENV /etc/profile
  • Installing ffmpeg on Heroku with Go (Golang) app

    17 novembre 2015, par Kevin Cantwell

    I have a Go app that uses ffmpeg bindings that I’d like to deploy on Heroku. I am able to install ffmpeg successfully using ddollar’s multi buildpack in conjunction with shunjikonishi’s ffmpeg buildpack and kr’s go buildpack. However, no matter what I try, the app fails on the call to pkg-config with the following output :

    $ git push heroku master
    Counting objects: 22, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (20/20), done.
    Writing objects: 100% (22/22), 2.32 KiB | 0 bytes/s, done.
    Total 22 (delta 9), reused 0 (delta 0)
    remote: Compressing source files... done.
    remote: Building source:
    remote:
    remote: -----> Fetching set buildpack https://github.com/ddollar/heroku-buildpack-multi... done
    remote: -----> Multipack app detected
    remote: =====> Downloading Buildpack: https://github.com/shunjikonishi/heroku-buildpack-ffmpeg
    remote: =====> Detected Framework: ffmpeg
    remote: -----> Install ffmpeg
    remote:        DOWNLOAD_URL =  http://flect.github.io/heroku-binaries/libs/ffmpeg.tar.gz
    remote:        exporting PATH and LIBRARY_PATH
    remote: =====> Downloading Buildpack: https://github.com/kr/heroku-buildpack-go.git
    remote: =====> Detected Framework: Go
    remote: -----> Checking Godeps/Godeps.json file.
    remote: -----> Installing go1.5... done
    remote: -----> Running: godep go install -tags heroku ./...
    remote: # pkg-config --cflags libavcodec libavformat libavutil libswscale
    remote: Package libavcodec was not found in the pkg-config search path.
    remote: Perhaps you should add the directory containing `libavcodec.pc'
    remote: to the PKG_CONFIG_PATH environment variable
    remote: No package 'libavcodec' found
    remote: Package libavformat was not found in the pkg-config search path.
    remote: Perhaps you should add the directory containing `libavformat.pc'
    remote: to the PKG_CONFIG_PATH environment variable
    remote: No package 'libavformat' found
    remote: Package libavutil was not found in the pkg-config search path.
    remote: Perhaps you should add the directory containing `libavutil.pc'
    remote: to the PKG_CONFIG_PATH environment variable
    remote: No package 'libavutil' found
    remote: Package libswscale was not found in the pkg-config search path.
    remote: Perhaps you should add the directory containing `libswscale.pc'
    remote: to the PKG_CONFIG_PATH environment variable
    remote: No package 'libswscale' found
    remote: pkg-config: exit status 1
    remote: godep: go exit status 2
    remote:
    remote:  !     Push rejected, failed to compile Multipack app
    remote:
    remote: Verifying deploy...
    remote:
    remote: ! Push rejected to myvideoapp.
    remote:
    To https://git.heroku.com/myvideoapp.git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://git.heroku.com/myvideoapp.git'

    The command that fails is pkg-config --cflags libavcodec libavformat libavutil libswscale. However, when I run that command in a bash console it outputs -I/app/vendor/ffmpeg/include, which is what I’d expect.

    I believe that when the Go buildpack builds, it loses track of the ffmpeg package configuration information somehow. These are my config vars for the app :

    $ heroku config -s
    CGO_CFLAGS=-I/app/vendor/ffmpeg/include
    PKG_CONFIG_PATH=vendor/ffmpeg/lib/pkgconfig

    My question is : How do I get past this error ? Clearly the answer is related to the PKG_CONFIG_PATH variable, but I’m super confused on this one.

  • recording yuv data which is converted from a bitmap and images are changed constantly on this bitmap

    3 février 2016, par UserAx

    I am trying to record images which are changed at a set time interval. These are displayed on an imageview. (something like a movie maker)

    For this I am :

    1. Drawing these images on a bitmap, this method is repeated over a 50ms interval

      private void BitmapUpdate() {
            timer = new Timer();
      timer.scheduleAtFixedRate(new TimerTask() {
         public void run() {
             try {
                 new Task1().execute();
             } catch (Exception e) {
                 // TODO: handle exception
             }
         }
      }, 0, 50);
      }

      class Task1 extends AsyncTask {

      @Override
      protected void onPreExecute() {
         super.onPreExecute();
         clearBitmap();

      }

      @Override
      protected String doInBackground(Void... arg0) {

         onImageDisplayed();
         return null;
      }

      @Override
      protected void onPostExecute(String result) {
         super.onPostExecute(result);

      }
      }

      public void clearBitmap(){
      if (imageview != null){
      //All the 3 methods below give same error - can't call getpixels() on recycled bitmap
      imageview.setDrawingCacheEnabled(false);
      //OR
      imageview.destroyDrawingCache();
      //OR
      bitmap.recycle();

      }
        }



      public void onImageDisplayed(){

      if (imageview != null) {
         imageview.setDrawingCacheEnabled(true);
         imageview.buildDrawingCache();
         bitmap = imageview.getDrawingCache();
         System.out.println(bitmap.getByteCount() + " is bitmap size ");
         }
        }
    2. Using the bitmap data to convert it to yuv data
      By using getNV21 method :

    Convert bitmap array to YUV (YCbCr NV21)

    1. Finally this yuv data is passed FFmpeg recorder, through a method similar to onPreviewFrame, except that the data is from getNV21 method. This method is started by a button click.

    What I have achieved :

    1. If i dont use clearBitmap() ; i get only the first image recorded in the video, even on changing to next image only first image is present throughout the video.

    2. So After research on stack overflow many developers suggested clearing the previous imageCache for the next Image. But in my case if i use any of these methods, anywhere,

      imageview.setDrawingCacheEnabled(false);
      //OR
      imageview.destroyDrawingCache();
      //OR
      bitmap.recycle();

    I get the error ; mostly because the getNV21 method is running non stop, and always is expecting pixels flow from the Bitmap.

    1. If i try running the methods one after another, by stopping getpixels for a moment by a boolean, i only get a black screen.

    Kindly help...!

    THANKS.