Recherche avancée

Médias (91)

Autres articles (82)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (4622)

  • errors of 'vaGetDisplay' and `vaGetDisplayDRM'

    30 août 2016, par Kindermann

    After updating my ubuntu OS from 14.04 to 16.04, I installed the ffmpeg library using the following configurations :

    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
     --prefix="$HOME/ffmpeg_build" \
     --pkg-config-flags="--static" \
     --extra-cflags="-I$HOME/ffmpeg_build/include" \
     --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
     --bindir="$HOME/bin" \
     --enable-gpl \
     --enable-libass \
     --enable-libfdk-aac \
     --enable-libfreetype \
     --enable-libmp3lame \
     --enable-libopus \
     --enable-libtheora \
     --enable-libvorbis \
     --enable-libvpx \
     --enable-libx264 \
     --enable-nonfree
    PATH="$HOME/bin:$PATH" make
    make install

    It seemed to me the installation process was ok. After that, I tried to compile my own C source code with the following Makefile :

    EDITTED(adding -lva-drm -lva-x11 at line 10)

    FFMPEG_LIBS=    libavdevice                        \
                   libavformat                        \
                   libavfilter                        \
                   libavcodec                         \
                   libswresample                      \
                   libswscale                         \
                   libavutil                          \

    TARGET = video_analysis
    LIBS = -lva -lX11 -lvdpau -lm -lva-drm -lva-x11
    CC = gcc
    CFLAGS += -O2 -g -O0
    CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
    LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)

    .PHONY: default all clean

    default: $(TARGET)
    all: default

    OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
    HEADERS = $(wildcard *.h)

    %.o: %.c $(HEADERS)
           $(CC) $(CFLAGS) -c $< -o $@

    .PRECIOUS: $(TARGET) $(OBJECTS)

    $(TARGET): $(OBJECTS)
       $(CC) $(OBJECTS) $(LDLIBS) $(LIBS) -o $@

    clean:
       -rm -f *.o
       -rm -f $(TARGET)

    However, my compiler complained the following errors :

    /root/ffmpeg_build/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
    /home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:896: undefined reference to `vaGetDisplay'
    /home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:917: undefined reference to `vaGetDisplayDRM'
    collect2: error: ld returned 1 exit status
    Makefile:30: recipe for target 'video_analysis' failed
    make: *** [video_analysis] Error 1

    My question is : in which library do ’vaGetDisplay’ and `vaGetDisplayDRM’ exist ? It’s for sure that libva functions properly. I have no clue how to fix the bugs...Thank you in advance !

  • How do I run a shell script through a "for" or "foreach" loop in order to batch convert ?

    28 mars 2013, par jerdiggity

    Assuming I had a bunch of videos sitting inside the directory /home/user/videos/awaiting_conversion how would I go about using cron to run a script similar to this one to batch convert each video into a different format ?

    /bin/sh -c $'nice /usr/bin/ffmpeg -i \044'\'$'/home/user/videos/awaiting_conversion/video_file_1.mp4'\'$' -s \044'\'$'480x320'\'$' -vcodec libx264 -acodec libmp3lame -ab \044'\'$'64k'\'$' -vpre fast -crf \044'\'$'30'\'$' -ar \044'\'$'22050'\'$' -f flv -y \044'\'$'/home/user/videos/converted/video_file_1.flv'\'$''

    The above script works fine for a single conversion, but :

    1. It assumes that the name of the video is static/known (which will not be the case when batch converting).
    2. It assumes that there is only one video to convert (which may or may not be the case), i.e. there's no "loop".
    3. It leaves the original file in place instead of deleting it (which is what I would want to happen to prevent duplicate conversions).

    The ultimate question would be how do I run that script for each video that exists inside /home/user/videos/awaiting_conversion, passing the file name as a variable ?

  • FFpyplayer installation on Raspberry Pi 3

    2 décembre 2017, par id911

    first, I’m quite new to posting questions.

    I’m trying to install FFPyplayer on Raspberry Pi 3 for the past few weeks, and it keeps failing. I’m frustrated beyond words with myself now. If someone can lend a hand, point me in right direction or tell me what steps I’m missing, I’d be very very grateful.
    Below are the steps I followed.

    • sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev python-dev
    • mkdir /ffmpeg_sources
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$HOME/ffmpeg_build/lib

    • sudo apt-get -y install yasm

    • cd /ffmpeg_sources
    • wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
    • tar xzf yasm-1.3.0.tar.gz
    • cd yasm-1.3.0
    • ./configure —prefix="$HOME/ffmpeg_build" —bindir="$HOME/ffmpeg_build/bin"
    • make
    • make install

    • sudo apt-get -y install nasm

    • cd /home/pi/ffmpeg_sources
    • wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.xz
    • tar xf nasm-2.13.01.tar.xz
    • cd nasm-2.13.01
    • ./configure —prefix="/home/pi/ffmpeg_build" ---
      bindir="/home/pi/ffmpeg_build/bin"
    • make
    • make install

    • sudo apt-get -y install libx264-dev

    • cd /ffmpeg_sources
    • wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
    • tar xjf last_x264.tar.bz2
    • cd x264-snapshot*

    • PATH="$HOME/ffmpeg_build/bin :$PATH" ./configure —prefix="$HOME/ffmpeg_build" —bindir="$HOME/ffmpeg_build/bin" —enable-shared —extra-cflags="-fPIC" ;

    • PATH="$HOME/ffmpeg_build/bin :$PATH" make

    • make install

    • sudo apt-get -y install libmp3lame-dev

    • sudo apt-get -y install nasm
    • cd /ffmpeg_sources
    • wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
    • tar xzf lame-3.99.5.tar.gz
    • cd lame-3.99.5
    • ./configure —prefix="$HOME/ffmpeg_build" —enable-nasm —enable-shared
    • make
    • make install

    • sudo apt-get -y install libass-dev libfreetype6-dev libtheora-dev libvorbis-dev

    • cd /ffmpeg_sources
    • wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
    • tar xjf ffmpeg-snapshot.tar.bz2
    • cd ffmpeg

    • PATH="$HOME/ffmpeg_build/bin :$PATH" -
      PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure —prefix="$HOME/ffmpeg_build" —extra-cflags="-I$HOME/ffmpeg_build/include -fPIC" —extra-ldflags="-L$HOME/ffmpeg_build/lib" —bindir="$HOME/ffmpeg_build/bin" —enable-gpl —enable-libass —enable-libfreetype —enable-libmp3lame —enable-libtheora —enable-libvorbis —enable-libx264 —enable-shared ;

    • PATH="$HOME/ffmpeg_build/bin :$PATH" make

    • make install

    • pip install —upgrade cython nose

    • pip install ffpyplayer

    Reference I used :

    http://matham.github.io/ffpyplayer/installation.html