Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (34)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (11015)

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

  • Undefined reference to av_log

    12 novembre 2017, par Dana Prakoso

    I am cross-compiling FFMPEG source in Linux for Windows using i686-w64-mingw32 using this script :

    ../ffmpeg/configure --disable-ffmpeg --disable-ffprobe --disable-ffplay --disable-shared --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-cross-compile

    And it generates all static library files with extension *.a inside "lib" folder. Then I try to link those libraries with my own source, with this script :

    i686-w64-mingw32-gcc -m32 -c videoplayer.c -o videoplayer.o -w $(INCLUDEDIR) -Wl,--add-stdcall-alias
    i686-w64-mingw32-gcc -static -m32 -o libvideoplayer.dll videoplayer.o -Wl,--out-implib,libvideoplayer_dll.lib -Wl,--add-stdcall-alias -L../../ffmpeg/lib -lavdevice -lavformat -lavcodec -lavutil -lwsock32 -lswresample ../../ffmpeg/lib/libWs2_32.lib

    And I got this bunch of error messages :

    ../../ffmpeg/lib/libavformat.a(rtpproto.o): In function `rtp_resolve_host':
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:140: undefined reference to `_imp__getaddrinfo@16'
    ../../ffmpeg/lib/libavformat.a(rtpproto.o): In function `rtp_parse_addr_list':
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:282: undefined reference to `_imp__freeaddrinfo@4'
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:277: undefined reference to `_imp__freeaddrinfo@4'
    ../../ffmpeg/lib/libavformat.a(tcp.o): In function `tcp_open':
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:112: undefined reference to `_imp__getaddrinfo@16'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:114: undefined reference to `_imp__getaddrinfo@16'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:177: undefined reference to `_imp__freeaddrinfo@4'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:192: undefined reference to `_imp__freeaddrinfo@4'

    How do I resolve this ? Do I miss something in my script ? Big thanks for someone replying.

  • ffmpeg fails to read header of audio while creating video at 1080p@24fps

    15 juillet 2016, par asad

    I am trying to create video by merging rawvideo frames from opengl, .m4a audio file and .png image(logo). With videos of small duration (2-3 min) at 108p@24fps, following code works fine. But if the video is larger (10 min), code fails. FFmpeg gives following error log :

    ffmpeg version N-80097-g89e9393 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
     configuration: --prefix=/home/ec2-user/ffmpeg_build --extra-cflags=-I/home/ec2-user/ffmpeg_build/include --extra-ldflags=-L/home/ec2-user/ffmpeg_build/lib --bindir=/home/ec2-user/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 43.100 / 57. 43.100
     libavformat    57. 37.100 / 57. 37.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 46.100 /  6. 46.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, rawvideo, from 'pipe:0':
     Duration: N/A, start: 0.000000, bitrate: 314818 kb/s
       Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 854x480, 314818 kb/s, 24 tbr, 24 tbn
    Input #1, png_pipe, from '/home/ec2-user/logo-watermark-green_tpd.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba(pc), 287x185, 25 tbr, 25 tbn
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b71d00] error reading header
    /home/ec2-user/decryptedData/audios/Blrt_Decrypt_tfss-29882287-c1d5-4c54-b674-87e9de4a9e38-audio.m4a: Invalid data found when processing input
    "rjRoYZaDA1_854x480@24fps_1468547071.txt"

    Code i am using is following :

    /home/ec2-user/bin/ffmpeg \
    -framerate 24 -f rawvideo -pixel_format rgb32 -video_size 854x480 -i pipe:0 \
    -i /home/ec2-user/logo-watermark-green_tpd.png \
    -i /home/ec2-user/decryptedData/audios/Blrt_Decrypt_tfss-29882287-c1d5-4c54-b674-87e9de4a9e38-audio.m4a \
    -filter_complex "[0:v]vflip[main];[1:v]scale=854/10:-1[si], \
    [main][si]overlay=main_w-overlay_w:main_h-overlay_h:format=rgb,format=yuv420p" \
    -c:v libx264 \
    -c:a copy /home/ec2-user/videos/rjRoYZaDA1_854x480@24fps_1468563244030.mp4 \
    2> /home/ec2-user/logs/rjRoYZaDA1_854x480@24fps_1468563244.txt

    Is it related to any memory ?