Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (66)

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

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (11042)

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